Login Register


Starting Out: C++ (What I've Learned So Far) filter_list
Author
Message
Starting Out: C++ (What I've Learned So Far) #1
As some of you may know/remember, I was learning C++ in College once, but now we're doing it again! This is a great thing for me, I've always wanted to learn this language and seen as though I HAVE to do it for college, there's no geting out of it for me, and I can sit down and learn the language without loosing interest and not going back to it again (like I've done with so many languages). So here I am, sharing with you one of my first programs I've made while at home, I've done a few at college, but this was a practice program to brush up on the code, to try and make it stick! Enjoy!

The code (big picture):
Spoiler:
[Image: H3bqm.png]
I was cout'ing answer for a test. That's no longer there.



The Preview:
Spoiler:
[Image: hOTfi.png]



The Program:
Code:
http://speedy.sh/5TKTq/Practice.exe
[Image: F4Z9Dqw.png]

Reply

RE: Starting Out: C++ (What I've Learned So Far) #2
Typecast your variables. Looks neater, prevents errors/exploits.

Reply

RE: Starting Out: C++ (What I've Learned So Far) #3
What do you mean by "typecast"?
[Image: F4Z9Dqw.png]

Reply

RE: Starting Out: C++ (What I've Learned So Far) #4
(01-18-2013, 06:27 AM)BreShiE Wrote: What do you mean by "typecast"?

http://en.wikipedia.org/wiki/Type_conversion
[Image: 7uhCgFS.jpg?1]

Reply

RE: Starting Out: C++ (What I've Learned So Far) #5
Thanks Phytrix. I don't really see any problems with my code, especially as I'm just starting out with C++ really.
[Image: F4Z9Dqw.png]

Reply

RE: Starting Out: C++ (What I've Learned So Far) #6
Like this.
I have been coding C++ for about a year. I stopped for 3 months, and am just starting again for Malware Development and Game Development.

Code:
double d; long l; int i; if (d > i) d = i; if (i > l) l = i; if (d == l) d *= 2;

Reply

RE: Starting Out: C++ (What I've Learned So Far) #7
The hell is that source code, that is ugly and doesn't work at all.

Reply

RE: Starting Out: C++ (What I've Learned So Far) #8
(02-03-2013, 08:38 AM)w00t Wrote: The hell is that source code, that is ugly and doesn't work at all.

What is ugly and what doesn't work at all?
[Image: F4Z9Dqw.png]

Reply

RE: Starting Out: C++ (What I've Learned So Far) #9
I tried C++ once, but I quickly lost interest. Not a bad starting program though.

Reply

RE: Starting Out: C++ (What I've Learned So Far) #10
Looking good so far Smile
I'm needing to start learning C++

Reply







Users browsing this thread: 1 Guest(s)