Also Visual its easier or harder than C++ ??
HARD?
Started by
Canorro
, Feb 21 2008 04:26 PM
#1
Posted 21 February 2008 - 04:26 PM
Also Visual its easier or harder than C++ ??
#2
Posted 22 February 2008 - 01:14 PM
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.
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.
#3
Posted 22 February 2008 - 05:32 PM
Ok i will try harder thx
Also were did you learn your to code and what was your first language?
Also were did you learn your to code and what was your first language?
Edited by Canorro, 22 February 2008 - 05:53 PM.
#4
Posted 23 February 2008 - 03:57 AM
I started out with PHP and mostly taught myself, but I used these sites a lot
http://www.w3schools...php/default.asp
http://nl3.php.net/manual/en/index.php
http://www.homeandle...uk/php/php.html
http://www.w3schools...php/default.asp
http://nl3.php.net/manual/en/index.php
http://www.homeandle...uk/php/php.html
#5
Posted 23 February 2008 - 03:12 PM
Ok that will be my second language thank you
#6
Posted 24 February 2008 - 04:01 AM
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.
C++ is used to create stand-alone applications. PHP is designed for interactive websites.
#7
Posted 24 February 2008 - 02:10 PM
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.
Thank you for the info
Thank you for the info
#8
Posted 24 February 2008 - 02:12 PM
You're welcome.
Good luck on your studies.
Good luck on your studies.
#9
Posted 26 February 2008 - 07:07 PM
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....om/~bs/C .html
Visual Studio Express 2008 ( Compiler, IDE )
http://www.microsoft.com/express/vc/
Short program with explatnation, by me:
Code
Explanation
/* #include is used to include 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;
}
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....om/~bs/C .html
Visual Studio Express 2008 ( Compiler, IDE )
http://www.microsoft.com/express/vc/
Short program with explatnation, by me:
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 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;
}
#10
Posted 20 March 2008 - 02:34 AM
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.
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.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users