learning C++

General chitchat, advertisements for other services, and other non-Cantr-related topics

Moderators: Public Relations Department, Players Department

User avatar
ushol
Posts: 1254
Joined: Thu Dec 15, 2005 5:11 pm
Location: Real World

Postby ushol » Tue Jun 06, 2006 10:43 am

I can say one thing... Dev-C++ from Bloodshed is good. I did'n have any problems on that.

getchar() will finish the case in my opinion... you can try

system "PAUSE";

but i don't like that
Image
Image
Federacja RP
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Tue Jun 06, 2006 11:13 am

ushol wrote:I can say one thing... Dev-C++ from Bloodshed is good. I did'n have any problems on that.

getchar() will finish the case in my opinion... you can try

system "PAUSE";

but i don't like that


Dev-C++ from Bloodshed is excellent. I got C++BuilderX from a book tutorial, free, and now it's no longer distributed.
Laptop has Borland, desktop has Dev-C++. I use the laptop to learn the code and the desktop to do everything besides that when I'm actually allowed on the desktop.
Nakranoth's "evil" character says:
"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."


http://www.sylorn.com - Free MMORPG in development.. need help.
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Tue Jun 06, 2006 11:23 am

does that have it record what is typed into other programs? (like when a freind comes over and wants to play runescape on my computer I could start running it and find out what his password is? Muhaha :twisted: )
The following statement is not true.

The previous statement is not true.
Gender
Posts: 208
Joined: Tue Mar 14, 2006 9:02 am

Postby Gender » Tue Jun 06, 2006 11:41 am

On most computers that I have seen you have to press Ctrl+Alt+Del before logging in...

*wonders, why somebody put such kind of inconvenience into OS...*

:wink:
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Tue Jun 06, 2006 11:48 am

That's illegal but yes C++ can register keystrokes.

However, that will be far beyond your skill for a long time, and what makes it even more useless to program is that there are hundreds of keystrole recorders you can download. That means, when someone presses a key on your computer, it records it. Set it up when your friend comes over... but don't be cruel and steal his money because imagine if your Runescape account was just stolen one day... it wouldn't be a lot of fun.

And who plays runescape these days anyways lol? I started playing that 7 or something years ago (possibly more)... and played it for four years after that until I found other games...
Nakranoth's "evil" character says:

"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."





http://www.sylorn.com - Free MMORPG in development.. need help.
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Tue Jun 06, 2006 11:50 am

Gender wrote:On most computers that I have seen you have to press Ctrl+Alt+Del before logging in...

*wonders, why somebody put such kind of inconvenience into OS...*

:wink:


a) It is mainly used on networked computers in businesses and schools, not most computers unless you have windows NT :D :P lol which I HATE!

b) And it may be an inconvenience, (god yeah!) but it is there to prevent accidental key typing and other things.
Nakranoth's "evil" character says:

"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."





http://www.sylorn.com - Free MMORPG in development.. need help.
Gender
Posts: 208
Joined: Tue Mar 14, 2006 9:02 am

Postby Gender » Tue Jun 06, 2006 11:53 am

N-Aldwitch wrote:
Gender wrote:On most computers that I have seen you have to press Ctrl+Alt+Del before logging in...

*wonders, why somebody put such kind of inconvenience into OS...*

:wink:


a) It is mainly used on networked computers in businesses and schools, not most computers unless you have windows NT :D :P lol which I HATE!

b) And it may be an inconvenience, (god yeah!) but it is there to prevent accidental key typing and other things.


Hm... I was being sarcastic.... :roll:
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Tue Jun 06, 2006 12:03 pm

Haha okay.
I don't see the relevance of telling us that you can press ctrl+alt+delete after talking about getting runescape passwords so I thought you were making a joke lol.. :wink:
Nakranoth's "evil" character says:

"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."





http://www.sylorn.com - Free MMORPG in development.. need help.
Gender
Posts: 208
Joined: Tue Mar 14, 2006 9:02 am

Postby Gender » Wed Jun 07, 2006 7:07 am

:wink:
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Fri Jun 09, 2006 12:17 pm

If I wanted to run a program then once the program is done to start over how would I do that?
The following statement is not true.



The previous statement is not true.
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Fri Jun 09, 2006 1:27 pm

Use a loop?

It's fairly difficult to implement a program to close then reopen, if not impossible without imbedding some data in the RAM or hidden application that will tell the program to reopen.

Depends on what you want to do really, but using a loop will cost you something like 2+ lines (plus the code inbetween), while making it so when the program closes, it reopens, will cost you 50+ (at least it'd cost me that!! :D so shuddup you programmer elites!! :D )
Nakranoth's "evil" character says:

"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."





http://www.sylorn.com - Free MMORPG in development.. need help.
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Fri Jun 09, 2006 1:45 pm

sorry, I wasn't clear, I just want it to show the first line of text again and start over in that way when a certain command is given.
The following statement is not true.



The previous statement is not true.
User avatar
Birdsall007
Posts: 118
Joined: Tue Nov 30, 2004 12:40 pm
Location: Northampton, England

Postby Birdsall007 » Fri Jun 09, 2006 9:41 pm

Another option is to use Microsoft Visual C++. You can download the Express edition for free from http://msdn.microsoft.com/vstudio/express/visualc/.

A very good site to get lots of stuff from is http://www.codeproject.com although some of the stuff might be a lot more advanced than you need right now, but there is a section for beginners at http://www.codeproject.com/cpp/#Beginners.
Even if the voices aren't real...They have some pretty good ideas!
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Fri Jun 09, 2006 11:53 pm

is it free? did they do a good job on it? (the problem with windows is that people can see right in)
The following statement is not true.



The previous statement is not true.
User avatar
fishfin
Posts: 490
Joined: Mon Mar 20, 2006 12:38 pm
Location: Nanning, China

Postby fishfin » Sat Jun 10, 2006 5:58 am

I'm having some rouble with the or command (||) do you do this:
(x > 7 || < 52 )
or:
(x > 7 ) || ( x < 52 )
or what? :?:
The following statement is not true.



The previous statement is not true.

Return to “Non-Cantr-Related Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest