|
Thread: Os?
-
Oct 27th, 2005, 06:03 AM
#41
Banned
Re: Os?
spin soem? what is that?
he has some code i can give you. he asked me to port it fro him, nearly finished
public Class UserInput
{
public static double GetUserNum(string prompt double def, double lower, double upper, bool include, bool AllowErrMsg)
{
string temp;
double test = 0;
Console
temp = Console.ReadLine();
{try
test = double.Parse(temp); //convert the string into a double
}
catch(Exception e)
{
if(AllowErMsg)
{
Console.Writ testtesttesreturn ttesttesttest;
else
{
//if the user's number is out of range
if()
Console.WriteLine("That number is outside the program's operational parameters. The range of acceptable input is: {0} - {1}.\nDefaulting to {2}.", lower.ToString(), upper.ToString(), def.ToString());
return //exit with default result
}
}
else /*the OK range is outside lower to upper
{
if((test < lower) || (test > upper)) //if user outside the EXclusion zone 
retu
//if the user's number is out of range
if(AllowErrMsg)
Console.WriteLine("That number is outside the program's operational parameters. The range of illegal input is: {0} - {1}.\nDefaulting to {2}.", upper.ToString(), lower.ToString(), def.ToString());
return def; */exit with default result
}
-
Oct 27th, 2005, 06:11 AM
#42
Banned
Re: Os?
Eh, ok. What did you port it from? Binary code?
-
Oct 27th, 2005, 06:31 AM
#43
I don't live here any more.
-
Oct 27th, 2005, 11:23 AM
#44
Re: Os?
wha? that doesn't make any sense... What's it written in? QB#++.NET?
-
Oct 27th, 2005, 11:51 AM
#45
Fanatic Member
Re: Os?
A good basis for building unix apps is python, if you want to work at your own OS you might as well make your own programming language to accompany it.
Start With Python
Then Goto Assembly
Then Work On File Structures
The rest is over my head, I wouldnt know how to get it to read the hardware properly, then read and write properly, search properly. Have it read on board components like ram, get the video card to read properly so you can even SEE.
Honestly your tutor sounds like an idiot. Linux shell isnt that hard, and the fact that he says all unix was programmed in QBasic is retarded. QBasic like thatoneguy said is an Intel based application...
So why does RedHat, Solaris(Sun processing), Whoppix, KnoppixSTD, SUSE, etc... run on Intel and AMD based processors?
-
Oct 27th, 2005, 01:19 PM
#46
Banned
Re: Os?
My tuter is no idiot, he taught me to write a "Hello World' program today. He remember all the code in his head and typed itall in at one try, did not even crash first time .
-
Oct 27th, 2005, 01:27 PM
#47
Re: Os?
What you mean... like this ??
Private Sub Form_Activate()
Me.Print "Hello World"
End Sub
Indeed he is a super-coder...
-
Oct 27th, 2005, 01:30 PM
#48
Banned
Re: Os?
me.print doesn't work for me, he didnt do it like this.
he used a massagebox.show(hello world")
-
Oct 27th, 2005, 01:38 PM
#49
Fanatic Member
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Oct 27th, 2005, 01:39 PM
#50
Banned
-
Oct 27th, 2005, 01:51 PM
#51
Hyperactive Member
Re: Os?
 Originally Posted by vbcooler
in what lenguage do you build an operation system?
does any1 knows on any really googd links to sites that got lots of info about how can i build my own os? i know it might take hard work but i really want to try any ideas links? thx
You have to realize that pretty much all languages (that are not JIT or Scripting), are compiled to binary.
You can use assembly (the lowest level language, which is basically a symbolic representation of the actual step by step CPU calculations), to make an OS if you're good enough.
But to answer your question, I would imagine mostly C and C++.
"I like to run on treadmills, because at least I know I'm getting nowhere."
- Me
-
Oct 27th, 2005, 01:58 PM
#52
Re: Os?
JIT compilers do compile to binary, just in time as it were.
-
Oct 27th, 2005, 02:34 PM
#53
Re: Os?
 Originally Posted by ~teh_pwn3rz~
whatever
When i pass this class ill know more tahn you. but now I need to begin leasrning the codes for writting things on the cosole window then i can write a cool program like grep and then seach all the file.
I think I just passed an elephant, and I know one thing.....
My usual boring signature: Nothing
 
-
Oct 27th, 2005, 03:04 PM
#54
Re: Os?
Anyone that knows the first thing about a language can write a Hello World app.
I did it with Net the first day I tried. I used a messagebox, and was told that it was not a traditional app as it didn't write to a console window.
-
Oct 27th, 2005, 03:11 PM
#55
Re: Os?
 Originally Posted by dglienna
Anyone that knows the first thing about a language can write a Hello World app.
I did it with Net the first day I tried. I used a messagebox, and was told that it was not a traditional app as it didn't write to a console window.
Its the only code i know in VB.NET
VB Code:
MessageBox.Show("Hello World","Hello World", System.Windows.MessageBoxButtons.Ok)
-
Oct 27th, 2005, 03:22 PM
#56
Frenzied Member
Re: Os?
was it hello world app or was it
as a 'OS' dos hell world?
-
Oct 27th, 2005, 04:41 PM
#57
Re: Os?
 Originally Posted by thegreatone
Its the only code i know in VB.NET
VB Code:
MessageBox.Show("Hello World","Hello World", System.Windows.MessageBoxButtons.Ok)
That's one big reason why I hate .NET. Too much freaking typing/seaching for commands. I can do that in VB6 a whole lot faster and shorter:
VB Code:
MsgBox "Hello World", vbOk, "Hello World"
-
Oct 27th, 2005, 06:08 PM
#58
Re: Os?
Even with that, the OK button is default,so you don't even need it...
-
Oct 27th, 2005, 06:13 PM
#59
Fanatic Member
Re: Os? theGreatOne
ThegreatOne
THATS WAY UNFAIR!!!!!!!!
TAKE IT OFF!!!!!!!! AND I DONT MEAN YOU F**KIN CLOTHES EITHER..
NOT FUNNY....
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Oct 28th, 2005, 02:06 AM
#60
Re: Os?
M$ will crush you before you even started
-
Oct 28th, 2005, 02:44 AM
#61
Frenzied Member
Re: Os?
 Originally Posted by ~teh_pwn3rz~
My tuter is no idiot, he taught me to write a "Hello World' program today. He remember all the code in his head and typed itall in at one try, did not even crash first time .
No your tutor is verifiable genius. What primary school do you go to?
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Oct 28th, 2005, 02:51 AM
#62
Re: Os?
 Originally Posted by Jacob Roman
That's one big reason why I hate .NET. Too much freaking typing/seaching for commands. I can do that in VB6 a whole lot faster and shorter:
VB Code:
MsgBox "Hello World", vbOk, "Hello World"
We all eagerly await the beautiful and elegant solution to this problem that LF will bring.
how about a
command 
Hey!! VBF needs [LightFusionCode]...[/LightFusionCode] tags
I don't live here any more.
-
Oct 28th, 2005, 02:59 AM
#63
-
Oct 28th, 2005, 03:12 AM
#64
Frenzied Member
Re: Os?
OOP is for idiots, girls, and noobies.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Oct 28th, 2005, 07:30 AM
#65
Re: Os?
oop is the future, it was designed by qbasic
-
Oct 28th, 2005, 08:43 AM
#66
Frenzied Member
Re: Os?
'oop' is a subset of 'oops' which says it all really
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Oct 28th, 2005, 09:02 AM
#67
Re: Os?
Oh YEAH!! Well VB is BV backwards so there.
pwnd.
-
Oct 28th, 2005, 09:14 AM
#68
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|