Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
I'm learning C++!!!
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default I'm learning C++!!! - 06-02-2011, 05:25 PM

Well, I am officially taking an online class in C++, which is a prerequisite in the college I am taking the class through for Java. This is my first real programming language, and already Alice has helped me understand many of the concepts. Thank you Alice! *Feels accomplished*


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-02-2011, 05:28 PM

I am starting soon. I am excited to


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 06-02-2011, 05:32 PM

C++ is pretty easy compared to other languages. The hardest language is learning 3 of them all at once.


I'm a web developer/ designer now.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-02-2011, 05:35 PM

I heard C# was hard. Now that I think of it, I am learning C#, not C++. Sorry, my mistake


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-02-2011, 05:56 PM

good job guys, I hope to take some kind of class for this eventually


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 06-02-2011, 08:00 PM

#include <iostream>
#include <conio.h>

int main()
{
std::cout<<"Cool man!"<<std::endl;

getch();
return 0;
}


"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-02-2011, 08:38 PM

Quote:
Originally Posted by legolizard View Post
#include <iostream>
#include <conio.h>

int main()
{
std::cout<<"Cool man!"<<std::endl;

getch();
return 0;
}
so you have to use a number variable to implement a string? thats what it looks like what that is saying but im not sure


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
legolizard
Senior Member
 
legolizard's Avatar
 
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default 06-02-2011, 10:22 PM

Not quite.Here is basically what is happening:

The first two lines are header files the first being input and output(iostream) and the other(conio.h) which I use to close the program. Then we have the main()aka the main function, basically the engine of the program. Within the main function we have three lines of code. The first being an output were std::cout<< tells the compiler to use the standard namespace which is located in the iostream header file, to display the string, and then to make a new line(std::endl=end line). Next we have getch() which pretty much closes the program, and finally we have return 0. Since we have made a function not a variable we must return something(unless you make it a void) in this case 0. When the program is completed and was a success 0 is returned back to the main(), thus ending the program.

So in short we are declaring a function not a variable.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 06-02-2011, 10:54 PM

ahh I see, thanks for clearing that up I knwo a little bit of java so when I saw int main() I thought it was telling the program to recognize the next line of code as an interger XD since you use int or double in java


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
I'm Learning C++ Too!
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Thumbs up I'm Learning C++ Too! - 06-03-2011, 09:20 PM

In addition to the one week course I will be taking on C++ this summer, I am currently reading, "Beginning Programming with C++ For Dummies." (Which is why I haven't been active on the forums for some time. The time I used to set aside for posting has been replaced, but don't worry. I shall return.)
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.