Jump to content

Featured Replies

  • Replies 87
  • Views 711
  • Created
  • Last Reply

Top Posters In This Topic

  • Author
u think u own me with everything u say...get over urself....the world does not circle around u....
im 15 years old and guess what? im way better than you at programming, that and everything else in the universe. so cltr-alt-delete, select dark_urza's life, and press "End Process" kthxbye
  dark_urza said:
u think u own me with everything u say...get over urself....the world does not circle around u....

 

It revolves around me moreso than you because I'm right.

  megafighterx said:
It revolves around me moreso than you because I'm right.

 

hey! wtf! i thought it revolved around me!

  • Author
  imascatman said:
im 15 years old and guess what? im way better than you at programming, that and everything else in the universe. so cltr-alt-delete, select dark_urza's life, and press "End Process" kthxbye

 

 

better then me at everything? really? u know, all the things uve ever posted in the programming section never involved a single bit of actual codes....

  • Author
  imascatman said:
hey! wtf! i thought it revolved around me!

 

if the world revolved around u, y do u argue with a noob?

  dark_urza said:
better then me at everything? really? u know, all the things uve ever posted in the programming section never involved a single bit of actual codes....

 

actually

 

  Quote

for(int i = 0; i < 15; i++)

cout << "dark_urza is a fucking idiot";

 

and many others are infact, considered code, so one more time, feel free to kill yourself, id love to hear about you in CBC news kthxbye

nice double post gook. Save yourself some face... shut... up... please. You've established yourself as a jackass and a fucktard. END YOUR PAIN CHILD!
  • Author
actual codes tat can be compiled...not some 2 line loop tat tells me wat it should look like.....end ur life now....

Oh, you want us to write the programs for you? Why didn't you say so?

 

 

//begin code

 

#include <iostream>

using namespace std;

 

int main()

{

cout << "Hello world. I'm dark_urza. You may know me from such threads as \n";

cout << " \"Languages\", \"diff between C++ / VC++\" and \"vb - C++ \" \n";

cout << endl << "What can be gathered from this?" << endl;

cout << "\t-I'm a moron. myg0t pw3nz me. I'm going to /endlife now. \n";

cout << "*sniff sniff* Goodbye cruel world... " << endl << endl;

 

for(int i = 0; i < 10; i++)

cout << "CUTTING MYSELF IS FUN! *CUTCUTCUT*" << endl;

return 0;

}

 

There you go. a "Hello world" program that should work.

  • Author
the program works...but y dont u change return 0 to cin.get(); so ppl can actually see if wat the wording says
ROFL!!!! dark_urza i almost feel sorry for you... bcuz u have to live with urself

whoops.. forgot one thing in there. my bad...

 

system("pause")

Works better than cin.get(), as it instructs you to hit a button to continue.

  • Author

cin.get(); waits for enter to be pressed....system("pause")

Works better than cin.get(), as it instructs you to hit a button to continue....

 

wat if someone pressed the wrong button?....doesnt make a difference anyways...you just wanna read the program...u know tat once u press it, it will exit....the point is to keep the program open....not to teach a noob wat to do to close it

  dark_urza said:
cin.get(); waits for enter to be pressed....system("pause")

Works better than cin.get(), as it instructs you to hit a button to continue....

 

wat if someone pressed the wrong button?....doesnt make a difference anyways...you just wanna read the program...u know tat once u press it, it will exit....the point is to keep the program open....not to teach a noob wat to do to close it

 

 

shut yo mouth

  • Author
tellin me to shut up now eh?? just to tell u i aint flaming u...just pointing out tat it makes more sense to use cin.get(); since u know it holds the program open...

some people might not get the blinking cursor means to hit enter. A lot of people are stupid.

 

you can hold the program open just as long with the system("pause"). It's called "being user friendly."

  • Author
the main point of me using cin.get(); is to keep the program open to read it...not for someone else...
Wait a minute, I may not know much, but a cin.get();and system("PAUSE"); are completely different from returning a value... why would you want to replace return 0; with cin.get();? Wouldn't you just want to add it before?
Java > c++? are u a nigga?

shut up nazi. you have no lines. /stfu Joobinabox 1

 

a function that has a datatype other than void should return a value, even if it's 0. What fucking c++ tutorial are you not following?

  dark_urza said:
u dont need it...

 

WTF??? YOU ARE AN IDIOT!!! A METHOD MUST RETURN A VALUE YOU DIPWEED. IT SAYS "INT" therefore it must return a INT.

 

IDIOT!

  • Author

im following a tutorial from cprogramming.com some of the source codes have a return 0; at the end....some don't....dunno y but either way wen i do it, it wouldnt make a difference

 

[EDIT]Most of the tutorials dont have a return

Guest
This topic is now closed to further replies.