hi ,need your help

Jan 16, 2008 at 9:52am
I not fully understand what is function and array.
How to use both them.
I also wants to ask having a website for doing C++ exercise or not?
Can any one help me.
Jan 16, 2008 at 1:48pm
what do you mean? site any examples of what part of array and functions you dont understand..
Jan 17, 2008 at 12:28pm
you can say that the int main() is a function, an example could be:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include "say.h"
using namespace std;

int main(){

say_something();

system("pause");
return 0;
}

void say_something () {
     cout<< "Hello"<<endl;
}


this could be the hello.cpp and then just make the say.h file:

void say_something();

so you can say that a function handles that code you have given it to control, and you can just call it with the function(). this is not a tutorial and i would advise you to find a tutorial on both subjects
Topic archived. No new replies allowed.