Be a Supporter!

C++ Programming

  • 921 Views
  • 19 Replies
New Topic Respond to this Topic
sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
C++ Programming 2005-09-29 21:13:44 Reply

Im taking an online course in C++, if anyone knows the language or has any ideas on where to go from there, email me (sidetalker_ksu@yahoo.com), im thinking about moving onto Java when I am done learning C++

thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++ Programming 2005-09-29 21:56:52 Reply

At 9/29/05 09:13 PM, sidetalker wrote: Im taking an online course in C++, if anyone knows the language or has any ideas on where to go from there, email me (sidetalker_ksu@yahoo.com), im thinking about moving onto Java when I am done learning C++

Get a book, like The C++ Programming Language by Bjarne Stroustrup, amazing book.

At 9/29/05 09:39 PM, JesusCyborg wrote: Little wolf skin boots.
And clove cigarettes.
An erotic funeral.
For witch she's dressed.
Her perfume smells like.
Burning leaves.
Everyday is Halloween.

!


omg.
Playstation Network tag: muffin-noodle
the empty set

sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-09-30 17:38:05 Reply

I already have a book... The Art and Science of C (by Eric S. Roberts)

Its a great book and gives you examples and stuff for everything

Craige
Craige
  • Member since: Jul. 17, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to C++ Programming 2005-09-30 18:55:14 Reply

I have tried C++ and found it to be difficult to master. Infact I quit for a while, and then just this last week I got back into it when I was in the hospital with nothing to do(my mom brought some of my computer books over earlier). But with detication it is possible.

As for books I want to wark you to stay away from the book titled C++: A Beginers Guide. That is the bookI I currently have and I do not recomend reading it. Although all the facts(as far as i can tell) in it are correct, it provides boring examples that make you want to fall asleep. It is not very good reading.

I have read abit of C++ The Programming language, and although it is more technical, so far I have found it is a pretty good book. So if any, I would suggest it.

Craige
Craige
  • Member since: Jul. 17, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to C++ Programming 2005-09-30 19:01:50 Reply

At 9/30/05 05:38 PM, sidetalker wrote: I already have a book... The Art and Science of C (by Eric S. Roberts)

Its a great book and gives you examples and stuff for everything

Shoot! Sorry I didn't see that post.

But in regards to it and your origonal post, C is not C++. C++(origonally called "C with classes") is an increment of the C language(hence the ++). Although C++ was built on the C language, C++ is different. The reasion C++ was made was because C lacked things that were put into the C++ language, such as Classes.

Wether you choose to learn C, or C++, do not confuse one for the other.

Aggravated-a-salt
Aggravated-a-salt
  • Member since: May. 10, 2003
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to C++ Programming 2005-09-30 20:32:41 Reply

I'm somwhat familiar with C++, and a good move from there is probably web design, because i've noticed that javascript is like C++ in a lot of respects, but it lets you cheat, like with converting data types...like a character can become a number...really handy for making games. i hope that helps a bit? i don't know, my whole programming career is on hold till i'm out of the air force, so...good luck? heh

Scottc1988
Scottc1988
  • Member since: Jan. 27, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to C++ Programming 2005-09-30 21:13:31 Reply

It baffles me as to why you would learn C++ and then step down to java.

thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++ Programming 2005-09-30 21:54:29 Reply

At 9/30/05 09:13 PM, Scottc1988 wrote: It baffles me as to why you would learn C++ and then step down to java.

It baffles me as to why someone would make an entire post dedicated to saying how inferior one language is to another, maybe we should use your language instead -- oops, you haven't written one.


omg.
Playstation Network tag: muffin-noodle
the empty set

Craige
Craige
  • Member since: Jul. 17, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to C++ Programming 2005-09-30 22:00:28 Reply

At 9/30/05 09:13 PM, Scottc1988 wrote: It baffles me as to why you would learn C++ and then step down to java.

There is nothing saying what one should learn first. Maybe he wants to learn C++(or C) first so learning a(some may say "lesser" dependign on their experience) language that is identicle in many way's would be easier.

Ravens-Grin
Ravens-Grin
  • Member since: Jun. 3, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to C++ Programming 2005-10-01 00:06:18 Reply

Can C++ run on various hardware without recompiling the source code? I think not...

Scottc1988
Scottc1988
  • Member since: Jan. 27, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to C++ Programming 2005-10-01 00:31:19 Reply

At 10/1/05 12:06 AM, Ravens_Grin wrote: Can C++ run on various hardware without recompiling the source code? I think not...

Note how that hinders optimization. In C++ you write code that is OS specific, unless you use a Lib that easily ports (sdl for example). Its able to be optimized for that OS, rather than being dumbed down to work on all Operating Systems.

sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-10-01 11:49:27 Reply

sorry for the confusion, this post is not supposed to be about people hating C or C++ of Java, or whatever they want to hate. Right now I am learning C as a foundation language becuase i was told that it was a good language to begin with. When i am finished, i have breezed through this 90 day course in under 3 weeks, I will be moving up to C++, and from there to Java... While Java language may be inferior as one of you posted, im not trying to learn the biggest and the best programming languages, im simply trying to learn many of them so i have a wide range of options when i graduate college, after that i will choose what is best for me and most likely come into a career using that knowledge. Im very young to even be learning any programming language (im a freshman).

thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++ Programming 2005-10-01 11:55:10 Reply

At 10/1/05 12:31 AM, Scottc1988 wrote: Note how that hinders optimization. In C++ you write code that is OS specific, unless you use a Lib that easily ports (sdl for example). Its able to be optimized for that OS, rather than being dumbed down to work on all Operating Systems.

Note how that each operating system has it's own version of the Java Virtual Machine which translates the exact same bytecode into platform specific code that works on that specific arcitecture which is almost the exact same thing. The Virtual Machine translates it appropriately to fit well for the most current system that the bytecode is being written on, rather than being dumbed down so that you have to recompile it. That, and with Java JIT compilation after the virtual machine loads, Java is up there with C and C++.


omg.
Playstation Network tag: muffin-noodle
the empty set

sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-10-02 14:26:00 Reply

im having some trouble with strings

i define the strings at the begginning of the program with

string st1,st2; (it could be anything)
i have the user enter a word and then...
st1=GetLine();
this stores st1 as whatever the user put in
from here i want to make the program do a certain thing depending on what i put in...
all i can think of to do is
if(st1=flower) (again, flower is just an example)
and then it would put out whatever i put down here
thats how i do it with numbers and it works fine but i dont know how to make it work with words

(following is the program base i made that doesnt work)

main()
{
string cube,cylinder,box;
int cs,cb,s1,s2,h,bx,r,h1,c;
printf("Enter either cube, cylinder, or box\n");
cube=GetLine();
cylinder=GetLine();
box=GetLine();
if(cube="cube")
{
printf("Enter the side length of the cube ");
cs=GetInteger();
cb=(cs*cs*cs);
printf("The volume of a cube with a side of %d, is: %d\n",cs,cb);
}
if(box="box")
{
printf("Enter the first side of the box ");
s1=GetInteger();
printf("Enter the second side of the box ");
s2=GetInteger();
printf("Enter the height of the box ");
h=GetInteger();
bx=s1*s2*h;
printf("The volume of a box with a side1 of %d, a side2 of %d, and a height of %d is: %d\n",s1,s2,h,bx);
}
if(cylinder="cylinder")
{
printf("Enter the radius of the cylinder ");
r=GetInteger();
printf("Enter the height of the cylinder ");
h1=GetInteger();
c=(pi)*(r*r)*h1;
printf("The volume of a cylinder with a radius of %d and a height of %d is: %d\n",r,h1,c);
}
}

(This program should take in the text either cube, box, or cylinder and then give them the volume of it, but it work)

sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-10-07 16:09:00 Reply

if anyone has any interesting programs or websites with good games made using some form of C tell me

Scottc1988
Scottc1988
  • Member since: Jan. 27, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to C++ Programming 2005-10-08 04:14:42 Reply

Please don't speed through your course as fast as possible, play around, test things out, make things work, take your time.

Ytangon
Ytangon
  • Member since: Mar. 18, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to C++ Programming 2005-10-08 14:37:40 Reply

At 9/29/05 09:13 PM, sidetalker wrote: Im taking an online course in C++, if anyone knows the language or has any ideas on where to go from there, email me (sidetalker_ksu@yahoo.com), im thinking about moving onto Java when I am done learning C++

If it doesn't cost anything would you mind posting the link to this course, the book I have always has me fading in and out...


Visit my blog and click my ads! Link
If your IQ was any lower, you would trip over it.

BBS Signature
sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-10-17 16:49:50 Reply

im not speeding through my course...

i have basically nothing else to do because my parents have some belief that no video games or tvs should exist, so i have like 3 channels and no gaming systems...i understand all of this

sidetalker
sidetalker
  • Member since: Sep. 29, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++ Programming 2005-10-17 16:51:48 Reply


If it doesn't cost anything would you mind posting the link to this course, the book I have always has me fading in and out...

the course was 500 dollars and the book and the compiler 100 each new, sorry...

Jcrypt
Jcrypt
  • Member since: Aug. 23, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to C++ Programming 2005-10-17 17:02:33 Reply

rofl you got ripped off horribly!! I just bought a book off of amazon for $5 and as too my knowledge ( and I have been programming for a year ) i'm WAY past you i'd get my money back and get a a better book :/ also my compiler is free www.bloodshed.net/devcpp