Advertisement

C++ Workshop - Getting Started with C++ (Ch. 1 & 2)

Started by June 01, 2006 11:40 AM
182 comments, last by Dbproguy 16 years, 9 months ago
Hey all!!

It's Saturday morning and you know what THAT means....CARTOOONS!!! wait...no.

It means QUIZ ANSWER TIME! Feel free to post your answers to the quizzes and questions provided up to this point in the week. In case you did not see Fruny's post earlier, post your answers for week 1 Here.

We post them in a separate location so that those people who are still trying to answer the questions for themselves don’t feel obligated to look at the answers.

Now let's see what ya'll came up with!

Cheers!
Jeromy Walsh
Sr. Tools & Engine Programmer | Software Engineer
Microsoft Windows Phone Team
Chronicles of Elyria (An In-development MMORPG)
GameDevelopedia.com - Blog & Tutorials
GDNet Mentoring: XNA Workshop | C# Workshop | C++ Workshop
"The question is not how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed?" - Il Duche, Boondock Saints
Visual C++ EE is causing some major problems on my pc so I'll be dropping out:(
Advertisement
Quote:
Original post by Yu Une
Visual C++ EE is causing some major problems on my pc so I'll be dropping out:(


Well, it is your business if you want to drop, but perhaps you could be more specific with your problems? If it is not possible to set it up for you, you are still welcome to use any of the various other options out there. We have posts dealing with setting up Code::Blocks and Dev-C++ for this workshop.

Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute
Over all, it was no prob setting it up, but a few days latter it kept locking my computer up and messing up my IE browser, so I went to the Microsoft forums, unfortunately there's no support for the downloadable version, bummers.

I'll most likly need help if I run into any problems, I got my home work ahead of me lol.

Got some new news which you'll might be happy campers http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=357238&SiteID=1 :)

[Edited by - Yu Une on June 12, 2006 7:13:16 PM]


I just got edition 4 will that work?

"It" says 24 hours but seems to be a relatively large book.

the december 2004 edition was not at any of the bookstores in a 100 mile radius.

NVM I just learned that they are completely seperate types of books.... sigh..

In any case will it work.
Quote:
Original post by Delsana
I just got edition 4 will that work?

"It" says 24 hours but seems to be a relatively large book.

the december 2004 edition was not at any of the bookstores in a 100 mile radius.

NVM I just learned that they are completely seperate types of books.... sigh..

In any case will it work.



I'm not sure, there might be suttle differences between the 4th and 5th truthfully I'm only guessing, correct me if I'm wrong, my self I've been using the 4th edition but no one called me down:). Ops almost forgot who are the tutors so if I have a guestion or problem to whom to I pm?
Advertisement
Quote:
Original post by Yu Une
Quote:
Original post by Delsana
I just got edition 4 will that work?

"It" says 24 hours but seems to be a relatively large book.

the december 2004 edition was not at any of the bookstores in a 100 mile radius.

NVM I just learned that they are completely seperate types of books.... sigh..

In any case will it work.



I'm not sure, there might be suttle differences between the 4th and 5th truthfully I'm only guessing, correct me if I'm wrong, my self I've been using the 4th edition but no one called me down:). Ops almost forgot who are the tutors so if I have a guestion or problem to whom to I pm?


He has a different book (learn c++ in 24 hours, not 21 days). Using an older version is probably fine. Some problems may be a bit different and a couple things may have changed, but just pay attention to these threads and you should be fine.

For a list of tutors, go here .
Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute
Hello People Sorry But I'm really Late!!!!
Anyhow this is the MS VS C++ 2005 code from DAY 1(BOOK):

#include <iostream>

int main ()
{
int x=5;
int y=7;

std::cout<<"Sum Of X & Y: "<<(x+y)<<" Product Of X & Y: "<<(x*y)<<std::endl;
std::cout << "Works Like A Charm!" << std::endl;

char response;
std::cin>>response;
return 0;
}
I Have Awoken.
Don't worry about it, I still have to start reading (since I'm doing my last exam tomorrow).

I think you should remove the char responce; cin>>responce; -thingy.

To stop the console from closing after running the program just use "start without debugging" (ctrl+f5).
Neat Advice! Thanks!
Almost Finished Day 2 today, moving to Day 3 tommorow.
Current problem:

int main ()
{
using namespace std;

int x=5;
int y=7;

std::cout << "Sum Of X & Y: " << (x+y)<< std::endl << "Product Of X & Y: " <<(x*y)<< std::endl;
std::cout << "Works Like A Charm!" << std::endl;
std::cout << "Division Of X & Y: " << (float)x/y << std::endl;
std::cout << "Product Double: " <<(double)7000*7000 << std::endl;
test();

}

void test()
{
std::cout << "Dang!" << std::endl;

}

Error 1 error C3861: 'test': identifier not found \projects\ham\ham\test1.cpp 17
Error 2 error C2365: 'test' : redefinition; previous definition was 'formerly unknown identifier' \projects\ham\ham\test1.cpp 22



[Edited by - kaydash on June 22, 2006 2:42:17 PM]
I Have Awoken.

This topic is closed to new replies.

Advertisement