| View previous topic :: View next topic |
| Author |
Message |
adamezra Advanced Cheater
Reputation: 0
Joined: 14 Feb 2007 Posts: 73
|
Posted: Sat Oct 27, 2007 7:02 pm Post subject: [C++] Two lame things i made |
|
|
i started just yesterday ...
but still im proud of the things i managed to make by myself
i know theyre amazingly simple but please rate them from 1-10
(if u dont see the attachment press F5)
_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat Oct 27, 2007 7:11 pm Post subject: |
|
|
I see two exe files but no cpp files
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
Hackerdevelopment Advanced Cheater
Reputation: 0
Joined: 11 Oct 2007 Posts: 55
|
Posted: Sat Oct 27, 2007 7:23 pm Post subject: |
|
|
These r just the exe's not really the cpp files.
_________________
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Oct 27, 2007 7:23 pm Post subject: |
|
|
| Wiccaan wrote: | Congratulations, your eyes work!
@adamezra: Nice job for just starting out  |
You are missing the point. You shouldn't post programs in the programming section without the source.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sat Oct 27, 2007 8:38 pm Post subject: |
|
|
when you post source other people can use it and other people can give you tips to improve your program.
_________________
|
|
| Back to top |
|
 |
adamezra Advanced Cheater
Reputation: 0
Joined: 14 Feb 2007 Posts: 73
|
Posted: Sun Oct 28, 2007 11:14 am Post subject: |
|
|
Sorry! i didnt know i need to put source...
uhm here it is:
edit:can someone also recommend a C++ compiler? the one im using is terrible...
_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Mon Oct 29, 2007 6:49 am Post subject: |
|
|
| adamezra wrote: | | edit:can someone also recommend a C++ compiler? the one im using is terrible... | http://forum.cheatengine.org/viewtopic.php?t=86090
info gather.cpp:
| Quote: | ./a.out
Hi welcome to to info gatherer.
What is your first name? test
Whats you last name? test
What street you live in? test
What number of street? test
What is your phone number? test
What is your favorite cereal? test
Hi so your name is test
Your lastname is test
You street adress is test test
Your phone number is test
Oh, i almost forgot your favorite cereal is test
Your fullname is test test
sh: pause: command not found |
- Note the bold/underline ^
- Layout of the code could be improved.
- You're destroying one of the nice c++ features (compared to c); namespaces.
- 0 isn't EXIT_SUCCESS on all the operating systems -> use return EXIT_SUCCESS;
- Mixing both '\n' and std::endl :/ You just could use one of them.
Pin.cpp:
- All the same as info gather.cpp
- Make sure the given input is an integer!
PS.
- address, not adress :)
- "Oh, I almost forgot your favorite cereal is test"
|
|
| Back to top |
|
 |
adamezra Advanced Cheater
Reputation: 0
Joined: 14 Feb 2007 Posts: 73
|
Posted: Mon Oct 29, 2007 1:05 pm Post subject: |
|
|
gawd >.>
i didnt understand what did u even mean in 70% of what u said...
this is like half assed basic beginning ... ._.
_________________
...............................
.............................
............................
...........................
.........................
asagvsfdhg |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Mon Oct 29, 2007 10:28 pm Post subject: |
|
|
Jani, he's using "system("PAUSE")" assuming the system is windows, in which that is how to stop the terminal from closing itself ><.
Perhaps he change it to
| Code: | #ifdef WIN32
system("pause");
#endif | if he is concerned with compatability.
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Mon Oct 29, 2007 10:52 pm Post subject: |
|
|
| nog_lorp wrote: | Jani, he's using "system("PAUSE")" assuming the system is windows, in which that is how to stop the terminal from closing itself ><.
Perhaps he change it to
| Code: | #ifdef WIN32
system("pause");
#endif | if he is concerned with compatability. |
Better yet:
| Code: | std::ignore();
std::cin.get(); |
|
|
| Back to top |
|
 |
seeplusplus Grandmaster Cheater
Reputation: 0
Joined: 28 Oct 2007 Posts: 562 Location: cracking accounts
|
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Mon Oct 29, 2007 11:57 pm Post subject: |
|
|
| seeplusplus wrote: | I'm teaching myself C++ right now, I'm reading up to pointers in the tutorial, i get that, what kind of programs should i be working on, I've made a simple Calculator in DEV C++, but thats about it.
Any ideas?  |
I heard Dev is bad... but I'm not one to talk. C and any subset of C = not my thing.
_________________
|
|
| Back to top |
|
 |
Hackerdevelopment Advanced Cheater
Reputation: 0
Joined: 11 Oct 2007 Posts: 55
|
Posted: Tue Oct 30, 2007 1:08 pm Post subject: |
|
|
Its like its stalks ppl lol!
_________________
|
|
| Back to top |
|
 |
|