Some Begginers Questions

Hello C++ devers, I am a Novice programmer and I have been trying to Learn C++ for about 2-3 months now and I am still trying to figure out the odor in which I should learn the syntax and find ways of which certain expressions and statements and functions ect. should be used. And if anyone had any helpful rescources or PDF's or something that could help with the learning with it. Good ways that I should Practice is another thing that I'm not sure with. I'm not asking for a Teacher but I'm looking for someone to help me get a good start. Thank you. All of your help is very well appreciated.
This website offers helpful, detailed tutorials.
http://www.cplusplus.com/doc/tutorial/
Some tutorials:
http://cplusplus.com/doc/tutorial/
http://msdn.microsoft.com/en-us/beginner/cc305129.aspx

Pick yourself up a good book or two. Here's a bit about the books you should look into:
http://www.parashift.com/c++-faq-lite/how-to-learn-cpp.html#faq-28.4
Thank you very much for the links Guys/Gals. As one lest request, can I get some of your advice for how you started and what would be some good ideas on how I should.
http://www.learncpp.com/ this is one of the best i´ve ever used:)... it´s step by step and does not spare many details for a beginner...
Always challenge yourself, how much do you know?
You are on a forum where there's always question asked, see if you know any.
You can always read through threads and test your analyzing skills and see if you can spot errors and other things.
Hi, I'm relatively new to c++ and have been doing some console, however, whenever I try to do something like
if (test == 'a') {
bla bla bla
}
where test is a ch variable, it wont work properly, no matter what I type it will go to the else statement, even if I cin a, whats wrong, here is my full code


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <iostream>
#include <stdlib.h>
#include <string>

using namespace std;


int main(int argc, char *argv[])
{
  string rgl1 ="##########";
  string rgl2 ="#  @     #";
  string rgl3 ="#        #";
  string rgl4 ="#        #";
  string rgl5 ="#        #";
  string rgl6 ="##########";
  string response ="W=Up S=Down A=Left D=Right Q=Quit";
  string move;
  cout<<rgl1<<endl;
  cout<<rgl2<<endl;
  cout<<rgl3<<endl;
  cout<<rgl4<<endl;
  cout<<rgl5<<endl;
  cout<<rgl6<<endl;
  cout<<response<<endl;
  cout<<endl;
  int x=0;
  string test;
  while (x <= 10) {
    cin>>move;
    test = move[1];
    cout<<test<<endl;
    if (move[1] == 'a') {
        cout<<"Yay"<<endl;
        }
    else {
        cout<<"oh no"<<endl;
        }
  }
  system("PAUSE");	
  return 0;
}
@Gene:
Please make your own thread in this sub-forum only, and we'll get back to you on that.

@Christian:
Some exercises may help you out as well. Enjoy!
http://cplusplus.com/forum/articles/12974/

-Albatross
Sorry, how do you make a sub thread?
Hi dear,

Catch up some easy books like "Let us C++" By: Yashwant Kanetkar
or Lafore book on "Object oriented programming,C++" will help u learn the fundas of C++
Thanks Shweta, I have C++ for dummies and beggining games programming by Micheal Morrison but my ICT teacher borrowing c++ for dummies at the moment, Got any ideas to fix my program
Thanks in advance
Never mind, i figuared it out this morning, I had forgotten that c++ counting starts at zero, works great now, thanks
Im so excited my college is payiong for me to go to a 5 day c++ Camp!
Topic archived. No new replies allowed.