| View previous topic :: View next topic |
| Author |
Message |
servila Advanced Cheater
Reputation: 0
Joined: 24 Feb 2007 Posts: 85
|
Posted: Tue Aug 26, 2008 9:17 am Post subject: run |
|
|
well i want to learn c++ cause i heard its the best virus code
but i just started so i dont no anything
http://www.cplusplus.com/doc/tutorial/program_structure.html
thats the website i was looking at, i got the programs
*vim
*dev-c++
on the website it says
// my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
all it should say is hello world but i dont no how to run it, when i put it in dev c++ and compile and run it compiles then cmd propt comes up for 1 second then closes and nothing happens.
so how do i make the program run _________________
i would if i could but i cant so i dont
care to share |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Aug 26, 2008 9:20 am Post subject: |
|
|
cin.sync();cin.ignore();
between the cout and return. you're not pausing execution, so it will just run and exit. _________________
|
|
| Back to top |
|
 |
servila Advanced Cheater
Reputation: 0
Joined: 24 Feb 2007 Posts: 85
|
Posted: Tue Aug 26, 2008 9:41 am Post subject: |
|
|
what is a better compiler to use i click compile and run and it does nothing i dont no y, so whats a good free program _________________
i would if i could but i cant so i dont
care to share |
|
| Back to top |
|
 |
Typhoon808 Expert Cheater
Reputation: 0
Joined: 27 Mar 2008 Posts: 175 Location: Wales
|
Posted: Tue Aug 26, 2008 9:56 am Post subject: |
|
|
| I'm sure 95% of people here would recommend Visual Studio/Visual C++ Express Edition. |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Aug 26, 2008 10:01 am Post subject: |
|
|
Get MS Visual Studio 2008 Express Edition. _________________
|
|
| Back to top |
|
 |
Fuzz Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2006 Posts: 531
|
Posted: Tue Aug 26, 2008 11:05 am Post subject: |
|
|
// my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
cin.sync();
cin.ignore();
} |
|
| Back to top |
|
 |
TeNsIOn Advanced Cheater
Reputation: 0
Joined: 10 Jun 2008 Posts: 66
|
Posted: Mon Sep 01, 2008 4:05 pm Post subject: |
|
|
| Fuzz wrote: | // my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
cin.sync();
cin.ignore();
} |
Wtf? gay...
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
//This is way easier
system("PAUSE")
return 0;
} _________________
Respect List
- DarkByte
- x0r
- Wiccaan
_________________
My Projects
_________________
- Combat Arms D3D Hook (Just need a bypass)
- Maple Story Trainer
- WarRock D3D Hook (needs bypass) |
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Mon Sep 01, 2008 5:01 pm Post subject: |
|
|
Fuzz's code will work perfect.
Tension's will add an unnecessary line and use more unneeded resources, but will still work. _________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Mon Sep 01, 2008 5:19 pm Post subject: |
|
|
Fuzz's code will not work at all.. becasue the program returns and he gives it more commands after it already returned.. meaning what he did is impossible to compile and run. _________________
|
|
| Back to top |
|
 |
Wintermoot Expert Cheater
Reputation: 0
Joined: 08 Nov 2007 Posts: 198
|
Posted: Mon Sep 01, 2008 5:32 pm Post subject: |
|
|
| Fuzz wrote: | // my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
cin.sync();
cin.ignore();
return 0;
} |
Fixed.
| TeNsIOn wrote: |
Wtf? gay...
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
//This is way easier
system("PAUSE")
return 0;
} |
This is slow and, an abuse to C++. |
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Mon Sep 01, 2008 5:35 pm Post subject: |
|
|
and no i would just use.
printf("press any key to exit\n");
getchar();
and wait until you press any button on keyboard then it will go to next line aka return.. and exit.. yah.. _________________
|
|
| Back to top |
|
 |
|