Welcome Guest ( Log In | Register )

      
Discover the best free computer help!
Learn more about Geeks to Go by taking the tour. Spyware, virus, trojan, fake security or privacy alerts? Read the malware cleaning guide.
 
Reply to this topicStart new topic
HARD?
Canorro
post Feb 21 2008, 04:26 PM
Post #1


Member
***
Posts: 127
From: Puerto Rico
OS: Windows Xp Sp2



I wanna start learning C++.But looking at all those code makes me think i wont remember so how did you get around with all does code?
Also Visual its easier or harder than C++ confused1.gif ??
Go to the top of the page
 
+Quote Post
Metallica
post Feb 22 2008, 01:14 PM
Post #2


Spyware Veteran
Group Icon
Posts: 20,724
From: Netherlands
OS: XP Pro & Vista Ultimate



I am not familiar with C++ but I can tell you that reading code is always hard.
Sometimes I have trouble understanding what I wrote only a year ago.

Just start with the basics and I'm sure you'll get the hang of it. smile.gif
Go to the top of the page
 
+Quote Post
Canorro
post Feb 22 2008, 05:32 PM
Post #3


Member
***
Posts: 127
From: Puerto Rico
OS: Windows Xp Sp2



Ok i will try harder thx
Also were did you learn your to code and what was your first language?

This post has been edited by Canorro: Feb 22 2008, 05:53 PM
Go to the top of the page
 
+Quote Post
Metallica
post Feb 23 2008, 03:57 AM
Post #4


Spyware Veteran
Group Icon
Posts: 20,724
From: Netherlands
OS: XP Pro & Vista Ultimate



I started out with PHP and mostly taught myself, but I used these sites a lot
http://www.w3schools.com/php/default.asp
http://nl3.php.net/manual/en/index.php
http://www.homeandlearn.co.uk/php/php.html
Go to the top of the page
 
+Quote Post
Canorro
post Feb 23 2008, 03:12 PM
Post #5


Member
***
Posts: 127
From: Puerto Rico
OS: Windows Xp Sp2



Ok that will be my second language thank you happy.gif
Go to the top of the page
 
+Quote Post
Metallica
post Feb 24 2008, 04:01 AM
Post #6


Spyware Veteran
Group Icon
Posts: 20,724
From: Netherlands
OS: XP Pro & Vista Ultimate



Bear in mind that PHP and C++ have completely different objectives.
C++ is used to create stand-alone applications. PHP is designed for interactive websites.
Go to the top of the page
 
+Quote Post
Canorro
post Feb 24 2008, 02:10 PM
Post #7


Member
***
Posts: 127
From: Puerto Rico
OS: Windows Xp Sp2



Yes I read that on those site that you gave but I also want to create internet sites.And learn mutiple languages like 3-5. happy.gif
Thank you for the info
Go to the top of the page
 
+Quote Post
Metallica
post Feb 24 2008, 02:12 PM
Post #8


Spyware Veteran
Group Icon
Posts: 20,724
From: Netherlands
OS: XP Pro & Vista Ultimate



You're welcome. smile.gif

Good luck on your studies.
Go to the top of the page
 
+Quote Post
quim88
post Feb 26 2008, 07:07 PM
Post #9


Member
**
Posts: 31
OS: windows XP



I don’t know why most beginners are afraid of C++. They say C++ is hard, but it really is not.
This should get you started.
C++ Info:
http://www.cplusplus.com/doc/tutorial/
http://www.cplusplus.com/
http://www.cppreference.com/
http://en.wikipedia.org/wiki/C%2B%2B
http://www.research.att.com/~bs/C++.html

Visual Studio Express 2008 ( Compiler, IDE )
http://www.microsoft.com/express/vc/
Short program with explatnation, by me:
Code
CODE
#include <iostream>

using namespace std;

int main()
{
    // Declare varibles
    double number1;
    double number2;
    double result;

    // prompt user for input
    cout << "Enter number 1: ";
    cin >> number1; // get number1

    cout << "Enter number 2: ";
    cin >> number2; // get number2

    // calculate
    result = number1 + number2;

    // display result
    cout << number1 << " + " << number2 << " = " << result << "\n";

    // main must allway return something
    return 0;
}


Explanation

/* #include is used to include smile.gif a header file
in this case #include <iostream> includes the iostream.h
of standard library -- iostream provide input and output stream
in you program the default is the console window*/

#include <iostream>


/*this will include the std namespace -- namespace is really an
advance part of C++ so i don't want to get into details
you should just know that if you dont't write this statement
you will have to say std::cout, std::cin, std::end,...*/

using namespace std;


/* main is the main entrance to you program -- this is where your
program will start executing all C++ program must have one and only
one main funtion and main must return an int */

int main()
{

/* As you can see this is how you declare a variable datetype
folllowed by an identifier. In this tutorial i used the double datatype.
Here are some more data type: void, int, char, float.
Read a book to learn about Modifiers ( unsigned, signed, long, short )*/

// Declare varibles
double number1;
double number2;
double result;


/* cout is an object of class ostream. cout is used to display text to
the console. Notice that you use the << , extraction operator, to display text */

// prompt user for input
cout << "Enter number 1: ";


/* cin is an object of class istream. cin is used to retrive input from keyboard.
Notice that you use >> , called , insertion operator to get input.*/

cin >> number1; // get number1

cout << "Enter number 2: ";
cin >> number2; // get number2


/* this works just like algebra math, = assigns what ever is in the
right to the varialbe on the left*/

// calculate
result = number1 + number2;


/* Notice how i use the insertion operator ( << ) THIS TIME */
// display result
cout << number1 << " + " << number2 << " = " << result << "\n";


return 0;
}
Go to the top of the page
 
+Quote Post
Granz00
post Mar 20 2008, 02:34 AM
Post #10


Member
***
Posts: 218
From: South Carolina
OS: Windows XP Media Center Edition



Forget about remembering code. Rather, learn the logic and practice using the code. Whatever code you don't remember is the code that you don't use enough. So when you need to use it, just look it up. C++ is my first, and almost only language that I have learned so far. I have touched a little bit of VBScript, and an extremely small amount of HTML.

I have this to say about learning computer languages. Think about things that you want to try to accomplish. Rather then waiting to find magical code that may or may not exist, try and think of ways to reach your goals with the knowledge you already have.

Also, some things in programming will make a lot more sense if you have some basic computer knowledge.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS Time is now: 2nd December 2008 - 01:29 AM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.