| View previous topic :: View next topic |
| Author |
Message |
guernica Grandmaster Cheater Supreme
Reputation: 0
Joined: 20 Jun 2007 Posts: 1211
|
Posted: Sun Jan 27, 2008 10:07 pm Post subject: [C++]Help |
|
|
my friend recommended me to a video tut that deals with an older version of microsoft visual C++(version 6) so i downloaded version 6, watched a few chapters of the tut, made a program, it compiled fine, it ran fine, it executed fine from the compiler, but when i try to run it outside of the compiler, it just displays the data real fast and closes in less than a second. i think it has to do with the endl command. should i just download the newest version of MS visual C++ and get a more up to date tut?
_________________
| georgezilka wrote: | | im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ? |
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Jan 27, 2008 10:13 pm Post subject: |
|
|
cin.ignore();
cin.get();
use those to make the program pause until you hit enter. The endl makes it so that the next line will be down one. Example:
So say i wanted
a new line right here
cout << "So say i wanted"<<endl<<"a new line right here";
little example thingy
eidt: get the new vs
_________________
|
|
| Back to top |
|
 |
guernica Grandmaster Cheater Supreme
Reputation: 0
Joined: 20 Jun 2007 Posts: 1211
|
Posted: Sun Jan 27, 2008 10:29 pm Post subject: |
|
|
alright thanks a lot. is everything that i know so far still going to be able to be applied to the vs or am i going to need an up to date tut?
_________________
| georgezilka wrote: | | im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ? |
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Jan 27, 2008 10:59 pm Post subject: |
|
|
it will be fine for what you're doing now.
_________________
|
|
| Back to top |
|
 |
guernica Grandmaster Cheater Supreme
Reputation: 0
Joined: 20 Jun 2007 Posts: 1211
|
Posted: Sun Jan 27, 2008 11:12 pm Post subject: |
|
|
I think 'll find an up to date tut anyways... I already downloaded 9.0 it and some of the headers that I've been using aren't even in the version 9.0 library. and I've been using void main() and I've heard that causes some problems in later versions. is cplusplus.com any good?
_________________
| georgezilka wrote: | | im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ? |
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jan 28, 2008 6:06 am Post subject: |
|
|
im curious what headers you were using?
and yes it is.
_________________
|
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Mon Jan 28, 2008 6:12 am Post subject: |
|
|
By using these two, it'll cover the most basic stuff I guess.
| Code: | #include <iostream>
#include <windows.h> |
Also, if you're using cout you must declare it in the header file, unless you use something else.
ex for .h file: using namespace std;
_________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Mon Jan 28, 2008 6:20 am Post subject: |
|
|
or if you dont want to use that namespace you have to use std::cout or std::cin
std:: infront of the api
_________________
|
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Mon Jan 28, 2008 6:33 am Post subject: |
|
|
| blankrider wrote: | or if you dont want to use that namespace you have to use std::cout or std::cin
std:: infront of the api |
I strongly recommend using namespace to clean up code, don't let him use stuff that fucks up his vision :3
_________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Jan 28, 2008 2:31 pm Post subject: |
|
|
| blankrider wrote: | cin.ignore();
cin.get(); |
Think you ment:
| Code: | std::cin.sync();
std::cin.ignore(); |
_________________
- Retired. |
|
| Back to top |
|
 |
guernica Grandmaster Cheater Supreme
Reputation: 0
Joined: 20 Jun 2007 Posts: 1211
|
Posted: Mon Jan 28, 2008 7:09 pm Post subject: |
|
|
not if you use "using namespace std;"
thanks for the help everyone.
_________________
| georgezilka wrote: | | im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ? |
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Jan 28, 2008 10:15 pm Post subject: |
|
|
| guernica wrote: | not if you use "using namespace std;"
thanks for the help everyone. |
No I mean he used get() instead of sync().
_________________
- Retired. |
|
| Back to top |
|
 |
guernica Grandmaster Cheater Supreme
Reputation: 0
Joined: 20 Jun 2007 Posts: 1211
|
Posted: Mon Jan 28, 2008 10:22 pm Post subject: |
|
|
my bad. ill never correct someone again.
_________________
| georgezilka wrote: | | im looking for experience (EXP) hacks for maple story are there any where it can give instant level up ? |
|
|
| Back to top |
|
 |
|