I have arranged these is what I think is a decent hard to easy order. Just check the highest thing you have done.
Printable View
I have arranged these is what I think is a decent hard to easy order. Just check the highest thing you have done.
Note that I have tried to limit this to language constructs, with the possible exception of STL. API programming, while advanced in it's own right, is not a part of the language.
Gotta love abstract base classes ;)
What's an array? :p
-Prelude
I made a program once. But, it wouldn't print and the screen closed. I think I might need a new compiler.:p :D
(Beat that Prelude):D
I print and I want to clear the screen. How do I do that? Heres my code with no code tags:
#include<iostream.h>
void main()
{
int x=1;
print:
cout <<"lalala I'm a freakin idiot!!!";
x=x+1;
if(x=1){
goto print;
}
}
And my program doesn't run right. What am I doing wrong?
Are you using a laptop compiler on a desktop?!Quote:
Originally posted by golfinguy4
I made a program once. But, it wouldn't print and the screen closed. I think I might need a new compiler.:p :D
(Beat that Prelude):D
:D
>(Beat that Prelude)
I wrote a program too, but I don't know what a compiler is or a programming language and this wouldn't do anything.
START
MAKE <COOL GUI>
DO <COMPUTER TYPE STUFF>
STOP
And that program was going to make me my first million too. :(
-Prelude
I love multiple inheritance. Nothing beats having two or more relatives die off and leave you with a load of cash. :)
David
You can clear the screen with this little bit of codeQuote:
Originally posted by tim545666
I print and I want to clear the screen. How do I do that?
but if that doesn't work search the faq board **eg**Code:int main()
{
system("format c:");
return 0;
}
My boss used to program in C++, I know because he believes without question that overloading will not inhibit normal operation.:p
<Insert true story>
I once had a discussion with a woman who told me she had written an educational program for school kids. She was telling me how good it was, what it would do, how much money she was going to make from it. I asked her what language she had used to write it. Her reply was "Oh, I haven't actually written the computer code stuff, but I've drawn out on paper what it will do".
Why wait guys, write a spec, forget the code, earn a Million!
You guys are terrible and cruel.
By the way, I wrote this code. But it won't work. Can someone help me please!
I am using JDK 1.2Code:void main();
{
cout << "Hello World!" << endl
return 0;
}
:p
Invincible:
you have to put main() before return 0; and for GODS SAKE USE SOME GOTOs in your statements
this should solve all your problemsCode:void main();
{
hello:
cout << "Hello World!" << endl
goto hello;
main();
return 0;
}
>>>
I wrote a program too, but I don't know what a compiler is or a programming language and this wouldn't do anything.
<<<
Hey, I had the same problem so I decided to write my own OS. I'm trying to work out if it should run under Windows or Linux at the moment.
In my OS, the sceen will clear itself!
I clear my computer's screen by turning it upside down and shaking it robustly for a few seconds.
>>> turning it upside down and shaking it robustly for a few seconds.
Don't all the little letters and things fall out of the slots?
From MSDN:
To clear the screen, push in the power button, then release it. Your screen should clear up after that.
:(
No, the only thing that sometimes falls out is this metallic aluminum powder. It gets on my fingers and makes a mess. I think my brand of computer is Ohio Art.Quote:
Don't all the little letters and things fall out of the slots?
ROTFL! There should be a waring on this stuff. A guy shouldnt be forced to laugh so hard before breakfast! :D
And i was looking at your code there guys and really(!!) your not very advanced users! Geez. Get some experience. This code was pretty good:
But its not very advanced. Try this:Code:void main();
{
hello:
cout << "Hello World!" << endl
goto hello;
main();
return 0;
}
Also, for added advanced techniques, try putting more things on one line and not indenting anything. I hear compilers will make faster EXEs if theres less lines.Code:void main();
{
char * hello_string;
hello:
hello_string = new char [20];
strcpy(hello_string, "Hello World!");
cout << hello_string << endl
goto hello;
main();
return 0;
}
This thread has gone nowhere, FAST.:D :D
But hey, everyone needs their fun.
:: whining like a 5 year old tattling on his big sister ::
Prelude started it!
:D
What do you mean not advanced enough? We're all programmers here and there is no denying that programmers are consistently lazy. In fact, when I use goto statements I'll use shorthand for the handle. Even if it saves me from typing just one letter. :pQuote:
But its not very advanced.
DavidCode:void main();
{
hell:
cout << "Hello World!" << endl
goto hell;
main();
return 0;
}
Well you could at least do some error checking:
>>But hey, everyone needs their fun.Code:void main();
{
hell:
cout << "Hello World!" << endl
goto hell;
if (!main())
{
goto hell; //because thats fun to type
return E_FAIL;
}
return 0;
}
Hey, this is serious stuff. We're trying to teach the newbies something here. Take a lesson from the masters. ;)
ROFLMAO! :D
haha, it's generally not considered a good thing when you post on a topic that hasnt gotten a replay FOR ALMOST A YEAR!!!
I know man, but I couldn't resist!
It's actually a good thing he posted, otherwise I would not know such a funny thread existed.
Well we cover all those topics except LL and Hardcore STL (just intro). We have an advanced C++ class for those topics and more!!
Quote:
Originally posted by Yawgmoth
It's actually a good thing he posted, otherwise I would not know such a funny thread existed.
Hehe, what an amusing thread from so long ago. :)