an hand painted

If you want support you should ask your question in the apropiate (did I wrote that right?) forum. I think you should post it in Tach Talk -> Techie's lounge or networking. I'm not quite sure :rolleyes:

Welcome to this forum anyway:mrgreen:.

I think you should better post this in the appropiate tech talk forum if you want support. You might to want to give some extra info (OS and stuff).

And to welcome to the forum :p .

"R U the Girl"

painted dark blue,

I don't think learning an kid as much as possible in the shortest time is good. Let's say you learn him how to read and calculate, what's he then gonna do on school? He'l be bored like hell there.

as you can see in the poll (of all 3 voters :p ) Is love and personal attention (most) important.

Don't get me wrong about your parenting, I bet your an great father but you might want to slow a little bit down on learning.

Growing up isn't a race.

Pretty cool but kinda scary. Like there's something invisble around you :P .

I bet you can scare the crap out of someone with this :P

I browsed the archive of that site, pretty funny to see they archive evertime the site changes, so to server error pages :p .

But was this site about puppy's when it started? Lol, is there still an section about that on this site?

I solved it with the following code:
[code]
strcpy(array[0]," ###");
strcpy(array[1],"####");
strcpy(array[2],"####");
strcpy(array[3],"####");
[/code]
Thanks for taking the time to respond and help me further with this.

Hello, I'm Anonymusius. I'm 15 years and still in school (which is starting over a copple days :( ).

Well, I was really just saying hello.

No, I want to store ascii sprites for an (very) simple game in an object for the sake of data hiding. I have for example this sprite(not made by me):
[code]
" ##### ",
" # # ",
" # # ",
" # # # ",
" # # ## ",
" # # ",
" # # ",
" # # ## ",
" # ## # ",
" # # ",
" ####### ",
" # # ",
" # # # ",
" ## # # ",
" ## # # ",
" ## # # ",
" ####### ",
" # ## ",
" ### # ",
" # # ",
" # # ",
" ###### ",
" # # ",
" # # ",
" ####### ",
[/code]
But if there's no good way of doing it like that :(
Then I have to generate code ;P

[quote=Grunt;246025]You need to use for loops or strcpy function inside constructors.[/quote]
I'm sorry, I don't get what you mean. I know what loops and strcpy is but I don't see yet what you mean with it.

I have this code:
[code]

include <iostream>

using namespace std;
class hello
{
private:
char array[4][5];
public:
hello();
void get_hello(){cout << "From the function: array[2][2] = " << array[2][2] << endl;}
} hi;

hello::hello()
{
char array[4][5] =
{
" ###",
"####",
"####",
"####"
};
cout << "From the constructor: array[2][2] = " << array[2][2] << endl;
(*this).get_hello();
}

int main()
{
hi.get_hello();
cout << "\n" << "Press Enter to end this programm";
cin.get();
cout << endl;
return 0;
}

[/code]
Output:

From the constructor: array[2][2] = #
From the function:array[2][2] =
From the function:array[2][2] =

I know I can't acces the array because I replaced it with an automatic version in the contructor. What would be the correct syntax to set the class variable that way?
I have tried:
[code]
array[4][5] =
{
" ###",
"####",
"####",
"####"
};
[/code] and
[code]
array =
{
" ###",
"####",
"####",
"####"
};
[/code] but neither of them worked. Can you set an class variable that way or do I have to make an programm that autogenerates code that set the
variable's like:
[code]
array[0][0] = ' ';
array[0][1] = '#';
[/code]