My new site(C++ and allegro)

Started by
3 comments, last by Mofu 21 years, 2 months ago
Hey, I have a new site up which is for c++ and allegro. It so far has 6 tutorials that teach you c++ and soon there will be more that teach you allegro. There is also a forum and a code section where you can submit code. The address is www.mattsnet.tk Cheers. No signature: HEHE
Advertisement
Nice layout to your site.. however as I myself have learnt how to program in C++ ( I used books over the internet ) I have looked at your tutorials and find myself thinking of when I first learnt the language. You introduce things far to fast, you don''t go into much detail over things.. example..


  Boolean: This variable''s stores 2 values 1 and 0 which is true and false respectively. This is extremely useful for game programming and is defined like so: bool mybool = true;Integer: This is the most commonly used variable in any programming language. There are 3 types of integers: short, long, integer. Each are declared as follows:int myint = 56; or int myint;Notice there are no " " ''s. Please dont use them!Float: This is exactly the same as intgers but they are used when you want a decimal fraction eg. 25.36575. It is declared like so:float myfloat = 56.6867; orfloat myfloat;Unsigned and Signed: If you want a positive value for your integer you will make it signed and a negative value will be unsigned for example:signed int myInt = -23;  


There are no " "''s please don''t use them. Why not? And Float, this is exactly the same as integers except you use them when you want a decimal fraction, so really they aren''t the same as integers. An Integer is a whole number. You don''t explain what a variable declaration is as such, just how you declare the different types. And booleans are extremly useful in all forms of programming to represent states, not just game programming. I am sorry if my comments seem overly critical, however as I myself once had to learn this I found myself asking questions now and I know I would be asking WHY? HOW? WHAT? if I were reading your tutorials. On the plus side, your site is well designed and clearly readable.




=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore

=*=
Nice work on the tutorials, they're short and teach practical use. Unlike a lot of tutorials I have read before, where they'll spend 5 pages on a while loop telling about stuff that drives away noobies: Big O time and ASM output for example(which is very useful stuff to know, but not for someone who just wants to get a primer on the language. Better to save all that fun stuff for theory.)

One very very small concern is that, to tell them you're teaching them C++, at least use the standard, non-deprecated headers in your tutorials. Which could actually save a little confusion in the beginning, with them wondering "what the heck does .h mean?"

For example, in your loops tutorial, you have:
#include <iostream.h>

use:
#include <iostream>

aut viam inveniam aut faciam

MoonStar Projects

[edited by - Ronin Magus on February 20, 2003 3:39:29 PM]
hey,
thanks for the replys.

@ hammerstein_02: I think I will go over the tuts and add a bit more detail. There reason I only said for game programming is because the tutorials are going to lead up to game programming. They are essentially there for you to learn game programming. I am also making them as precise as possible.

@ Ronin Magus: Thanks for the comments, also thanks for that correction I will sure change it!

Thanks again,
Mofu

No signature:
HEHE
You might want to introduce the getline function somewhere:
  #include <cstdlib>#include <iostream>#include <string>using namespace std;int main(){  cout << "Hello. What is your name?" << endl;  string name;  getline(cin, name);  cout << "Welcome, " << name << "!" << endl;  system("pause");}  

This topic is closed to new replies.

Advertisement