Char Error in C++

April 10, 2009 at 20:41:10
Specs: Linux i686, 1.8ghz/ 512 mb
I am new to C++, I made the following program, and for every line in the larger blocks of "if ( * == * ) ** = "*", i get the following error " WordlistGenerate.cpp:746: error: invalid conversion from ‘const char*’ to ‘char’ "

I really would like to get this working, since youll need the full 950 lines of code, here it is:

#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
/////////////////////////////////////////////////////////////
cout >> "maximum characters?"
int max;
cin << int max;
cout >> "minimum characters?"
int min;
cin << int min;
ofstream outputFile;
outputFile.open("output.txt");
int a=0;
int b=0;
int c=0;
int d=0;
int e=0;
int f=0;
int g=0;
int h=0;
int i=0;
int j=0;
char aa;
char bb;
char cc;
char dd;
char ee;
char ff;
char gg;
char hh;
char ii;
char jj;
///////////////////////////////////////////////////////////////
start:
if (a >= 9) 
{ 
int aa;
aa = a;
}
if (a == 10) 
{
char aa [2];
aa = "a";
}
if (a == 11) aa = "b";
if (a == 12) aa = "c";
if (a == 13) aa = "d";
if (a == 14) aa = "e";
if (a == 15) aa = "f";
if (a == 16) aa = "g";
if (a == 17) aa = "h";
if (a == 18) aa = "i";
if (a == 19) aa = "j";
if (a == 20) aa = "k";
if (a == 21) aa = "l";
if (a == 22) aa = "m";
if (a == 23) aa = "n";
if (a == 24) aa = "o";
if (a == 25) aa = "p";
if (a == 26) aa = "q";
if (a == 27) aa = "r";
if (a == 28) aa = "s";
if (a == 29) aa = "t";
if (a == 30) aa = "u";
if (a == 31) aa = "v";
if (a == 32) aa = "w";
if (a == 33) aa = "x";
if (a == 34) aa = "y";
if (a == 35) aa = "z";
if (a == 36) aa = "A";
if (a == 37) aa = "B";
if (a == 38) aa = "C";
if (a == 39) aa = "D";
if (a == 40) aa = "E";
if (a == 41) aa = "F";
if (a == 42) aa = "G";
if (a == 43) aa = "H";
if (a == 44) aa = "I";
if (a == 45) aa = "J";
if (a == 46) aa = "K";
if (a == 47) aa = "L";
if (a == 48) aa = "M";
if (a == 49) aa = "N";
if (a == 50) aa = "O";
if (a == 51) aa = "P";
if (a == 52) aa = "Q";
if (a == 53) aa = "R";
if (a == 54) aa = "S";
if (a == 55) aa = "T";
if (a == 56) aa = "U";
if (a == 57) aa = "V";
if (a == 58) aa = "W";
if (a == 59) aa = "X";
if (a == 60) aa = "W";
if (a == 61) aa = "Z";
if (a == 62) aa = " ";
if (a == 63) aa = ".";
if (a == 64) aa = ",";
if (a == 65) aa = "@";
if (a == 66) aa = "!";
if (a == 67) aa = "?";
if (a == 68) aa = "-";
if (a == 69) aa = "_";
if (a == 70) aa = "/";
////////////////////////////////////////////////////////
if (b >= 9) 
{ 
int bb;
bb = b;
}
if (b == 10) 
{
char bb [2];
bb = "a";
}
if (b == 11) bb = "b";
if (b == 12) bb = "c";
if (b == 13) bb = "d";
if (b == 14) bb = "e";
if (b == 15) bb = "f";
if (b == 16) bb = "g";
if (b == 17) bb = "h";
if (b == 18) bb = "i";
if (b == 19) bb = "j";
if (b == 20) bb = "k";
if (b == 21) bb = "l";
if (b == 22) bb = "m";
if (b == 23) bb = "n";
if (b == 24) bb = "o";
if (b == 25) bb = "p";
if (b == 26) bb = "q";
if (b == 27) bb = "r";
if (b == 28) bb = "s";
if (b == 29) bb = "t";
if (b == 30) bb = "u";
if (b == 31) bb = "v";
if (b == 32) bb = "w";
if (b == 33) bb = "x";
if (b == 34) bb = "y";
if (b == 35) bb = "z";
if (b == 36) bb = "b";
if (b == 37) bb = "B";
if (b == 38) bb = "C";
if (b == 39) bb = "D";
if (b == 40) bb = "E";
if (b == 41) bb = "F";
if (b == 42) bb = "G";
if (b == 43) bb = "H";
if (b == 44) bb = "I";
if (b == 45) bb = "J";
if (b == 46) bb = "K";
if (b == 47) bb = "L";
if (b == 48) bb = "M";
if (b == 49) bb = "N";
if (b == 50) bb = "O";
if (b == 51) bb = "P";
if (b == 52) bb = "Q";
if (b == 53) bb = "R";
if (b == 54) bb = "S";
if (b == 55) bb = "T";
if (b == 56) bb = "U";
if (b == 57) bb = "V";
if (b == 58) bb = "W";
if (b == 59) bb = "X";
if (b == 60) bb = "W";
if (b == 61) bb = "Z";
if (b == 62) bb = " ";
if (b == 63) bb = ".";
if (b == 64) bb = ",";
if (b == 65) bb = "@";
if (b == 66) bb = "!";
if (b == 67) bb = "?";
if (b == 68) bb = "-";
if (b == 69) bb = "_";
if (b == 70) bb = "/";
//////////////////////////////////////////////////
if (c >= 9) 
{ 
int cc;
cc = c;
}
if (c == 10) 
{
char cc [2];
cc = "a";
}
if (c == 11) cc = "b";
if (c == 12) cc = "c";
if (c == 13) cc = "d";
if (c == 14) cc = "e";
if (c == 15) cc = "f";
if (c == 16) cc = "g";
if (c == 17) cc = "h";
if (c == 18) cc = "i";
if (c == 19) cc = "j";
if (c == 20) cc = "k";
if (c == 21) cc = "l";
if (c == 22) cc = "m";
if (c == 23) cc = "n";
if (c == 24) cc = "o";
if (c == 25) cc = "p";
if (c == 26) cc = "q";
if (c == 27) cc = "r";
if (c == 28) cc = "s";
if (c == 29) cc = "t";
if (c == 30) cc = "u";
if (c == 31) cc = "v";
if (c == 32) cc = "w";
if (c == 33) cc = "x";
if (c == 34) cc = "y";
if (c == 35) cc = "z";
if (c == 36) cc = "A";
if (c == 37) cc = "B";
if (c == 38) cc = "C";
if (c == 39) cc = "D";
if (c == 40) cc = "E";
if (c == 41) cc = "F";
if (c == 42) cc = "G";
if (c == 43) cc = "H";
if (c == 44) cc = "I";
if (c == 45) cc = "J";
if (c == 46) cc = "K";
if (c == 47) cc = "L";
if (c == 48) cc = "M";
if (c == 49) cc = "N";
if (c == 50) cc = "O";
if (c == 51) cc = "P";
if (c == 52) cc = "Q";
if (c == 53) cc = "R";
if (c == 54) cc = "S";
if (c == 55) cc = "T";
if (c == 56) cc = "U";
if (c == 57) cc = "V";
if (c == 58) cc = "W";
if (c == 59) cc = "X";
if (c == 60) cc = "W";
if (c == 61) cc = "Z";
if (c == 62) cc = " ";
if (c == 63) cc = ".";
if (c == 64) cc = ",";
if (c == 65) cc = "@";
if (c == 66) cc = "!";
if (c == 67) cc = "?";
if (c == 68) cc = "-";
if (c == 69) cc = "_";
if (c == 70) cc = "/";
////////////////////////////////////////////////////////
if (d >= 9) 
{ 
int dd;
dd = d;
}
if (d == 10) 
{
char dd [2];
dd = "a";
}
if (d == 11) dd = "b";
if (d == 12) dd = "c";
if (d == 13) dd = "d";
if (d == 14) dd = "e";
if (d == 15) dd = "f";
if (d == 16) dd = "g";
if (d == 17) dd = "h";
if (d == 18) dd = "i";
if (d == 19) dd = "j";
if (d == 20) dd = "k";
if (d == 21) dd = "l";
if (d == 22) dd = "m";
if (d == 23) dd = "n";
if (d == 24) dd = "o";
if (d == 25) dd = "p";
if (d == 26) dd = "q";
if (d == 27) dd = "r";
if (d == 28) dd = "s";
if (d == 29) dd = "t";
if (d == 30) dd = "u";
if (d == 31) dd = "v";
if (d == 32) dd = "w";
if (d == 33) dd = "x";
if (d == 34) dd = "y";
if (d == 35) dd = "z";
if (d == 36) dd = "A";
if (d == 37) dd = "B";
if (d == 38) dd = "C";
if (d == 39) dd = "D";
if (d == 40) dd = "E";
if (d == 41) dd = "F";
if (d == 42) dd = "G";
if (d == 43) dd = "H";
if (d == 44) dd = "I";
if (d == 45) dd = "J";
if (d == 46) dd = "K";
if (d == 47) dd = "L";
if (d == 48) dd = "M";
if (d == 49) dd = "N";
if (d == 50) dd = "O";
if (d == 51) dd = "P";
if (d == 52) dd = "Q";
if (d == 53) dd = "R";
if (d == 54) dd = "S";
if (d == 55) dd = "T";
if (d == 56) dd = "U";
if (d == 57) dd = "V";
if (d == 58) dd = "W";
if (d == 59) dd = "X";
if (d == 60) dd = "W";
if (d == 61) dd = "Z";
if (d == 62) dd = " ";
if (d == 63) dd = ".";
if (d == 64) dd = ",";
if (d == 65) dd = "@";
if (d == 66) dd = "!";
if (d == 67) dd = "?";
if (d == 68) dd = "-";
if (d == 69) dd = "_";
if (d == 70) dd = "/";
//////////////////////////////////////////////////////////
if (e >= 9) 
{ 
int ee;
ee = e;
}
if (a == 10) 
{
char ee [2];
ee = "a";
}
if (e == 11) ee = "b";
if (e == 12) ee = "c";
if (e == 13) ee = "d";
if (e == 14) ee = "e";
if (e == 15) ee = "f";
if (e == 16) ee = "g";
if (e == 17) ee = "h";
if (e == 18) ee = "i";
if (e == 19) ee = "j";
if (e == 20) ee = "k";
if (e == 21) ee = "l";
if (e == 22) ee = "m";
if (e == 23) ee = "n";
if (e == 24) ee = "o";
if (e == 25) ee = "p";
if (e == 26) ee = "q";
if (e == 27) ee = "r";
if (e == 28) ee = "s";
if (e == 29) ee = "t";
if (e == 30) ee = "u";
if (e == 31) ee = "v";
if (e == 32) ee = "w";
if (e == 33) ee = "x";
if (e == 34) ee = "y";
if (e == 35) ee = "z";
if (e == 36) ee = "A";
if (e == 37) ee = "B";
if (e == 38) ee = "C";
if (e == 39) ee = "D";
if (e == 40) ee = "E";
if (e == 41) ee = "F";
if (e == 42) ee = "G";
if (e == 43) ee = "H";
if (e == 44) ee = "I";
if (e == 45) ee = "J";
if (e == 46) ee = "K";
if (e == 47) ee = "L";
if (e == 48) ee = "M";
if (e == 49) ee = "N";
if (e == 50) ee = "O";
if (e == 51) ee = "P";
if (e == 52) ee = "Q";
if (e == 53) ee = "R";
if (e == 54) ee = "S";
if (e == 55) ee = "T";
if (e == 56) ee = "U";
if (e == 57) ee = "V";
if (e == 58) ee = "W";
if (e == 59) ee = "X";
if (e == 60) ee = "W";
if (e == 61) ee = "Z";
if (e == 62) ee = " ";
if (e == 63) ee = ".";
if (e == 64) ee = ",";
if (e == 65) ee = "@";
if (e == 66) ee = "!";
if (e == 67) ee = "?";
if (e == 68) ee = "-";
if (e == 69) ee = "_";
if (e == 70) ee = "/";
/////////////////////////////////////////////////////////
if (f >= 9) 
{ 
int ff;
ff = f;
}
if (f == 10) 
{
char ff [2];
ff = "a";
}
if (f == 11) ff = "b";
if (f == 12) ff = "c";
if (f == 13) ff = "d";
if (f == 14) ff = "e";
if (f == 15) ff = "f";
if (f == 16) ff = "g";
if (f == 17) ff = "h";
if (f == 18) ff = "i";
if (f == 19) ff = "j";
if (f == 20) ff = "k";
if (f == 21) ff = "l";
if (f == 22) ff = "m";
if (f == 23) ff = "n";
if (f == 24) ff = "o";
if (f == 25) ff = "p";
if (f == 26) ff = "q";
if (f == 27) ff = "r";
if (f == 28) ff = "s";
if (f == 29) ff = "t";
if (f == 30) ff = "u";
if (f == 31) ff = "v";
if (f == 32) ff = "w";
if (f == 33) ff = "x";
if (f == 34) ff = "y";
if (f == 35) ff = "z";
if (f == 36) ff = "A";
if (f == 37) ff = "B";
if (f == 38) ff = "C";
if (f == 39) ff = "D";
if (f == 40) ff = "E";
if (f == 41) ff = "F";
if (f == 42) ff = "G";
if (f == 43) ff = "H";
if (f == 44) ff = "I";
if (f == 45) ff = "J";
if (f == 46) ff = "K";
if (f == 47) ff = "L";
if (f == 48) ff = "M";
if (f == 49) ff = "N";
if (f == 50) ff = "O";
if (f == 51) ff = "P";
if (f == 52) ff = "Q";
if (f == 53) ff = "R";
if (f == 54) ff = "S";
if (f == 55) ff = "T";
if (f == 56) ff = "U";
if (f == 57) ff = "V";
if (f == 58) ff = "W";
if (f == 59) ff = "X";
if (f == 60) ff = "W";
if (f == 61) ff = "Z";
if (f == 62) ff = " ";
if (f == 63) ff = ".";
if (f == 64) ff = ",";
if (f == 65) ff = "@";
if (f == 66) ff = "!";
if (f == 67) ff = "?";
if (f == 68) ff = "-";
if (f == 69) ff = "_";
if (f == 70) ff = "/";
/////////////////////////////////////////////////////////
if (g >= 9) 
{ 
int gg;
gg = g;
}
if (g == 10) 
{
char gg [2];
gg = "a";
}
if (g == 11) gg = "b";
if (g == 12) gg = "c";
if (g == 13) gg = "d";
if (g == 14) gg = "e";
if (g == 15) gg = "f";
if (g == 16) gg = "g";
if (g == 17) gg = "h";
if (g == 18) gg = "i";
if (g == 19) gg = "j";
if (g == 20) gg = "k";
if (g == 21) gg = "l";
if (g == 22) gg = "m";
if (g == 23) gg = "n";
if (g == 24) gg = "o";
if (g == 25) gg = "p";
if (g == 26) gg = "q";
if (g == 27) gg = "r";
if (g == 28) gg = "s";
if (g == 29) gg = "t";
if (g == 30) gg = "u";
if (g == 31) gg = "v";
if (g == 32) gg = "w";
if (g == 33) gg = "x";
if (g == 34) gg = "y";
if (g == 35) gg = "z";
if (g == 36) gg = "A";
if (g == 37) gg = "B";
if (g == 38) gg = "C";
if (g == 39) gg = "D";
if (g == 40) gg = "E";
if (g == 41) gg = "F";
if (g == 42) gg = "G";
if (g == 43) gg = "H";
if (g == 44) gg = "I";
if (g == 45) gg = "J";
if (g == 46) gg = "K";
if (g == 47) gg = "L";
if (g == 48) gg = "M";
if (g == 49) gg = "N";
if (g == 50) gg = "O";
if (g == 51) gg = "P";
if (g == 52) gg = "Q";
if (g == 53) gg = "R";
if (g == 54) gg = "S";
if (g == 55) gg = "T";
if (g == 56) gg = "U";
if (g == 57) gg = "V";
if (g == 58) gg = "W";
if (g == 59) gg = "X";
if (g == 60) gg = "W";
if (g == 61) gg = "Z";
if (g == 62) gg = " ";
if (g == 63) gg = ".";
if (g == 64) gg = ",";
if (g == 65) gg = "@";
if (g == 66) gg = "!";
if (g == 67) gg = "?";
if (g == 68) gg = "-";
if (g == 69) gg = "_";
if (g == 70) gg = "/";
////////////////////////////////////////////////////////
if (h >= 9) 
{ 
int hh;
hh = h;
}
if (h == 10) 
{
char hh [2];
hh = "a";
}
if (h == 11) hh = "b";
if (h == 12) hh = "c";
if (h == 13) hh = "d";
if (h == 14) hh = "e";
if (h == 15) hh = "f";
if (h == 16) hh = "g";
if (h == 17) hh = "h";
if (h == 18) hh = "i";
if (h == 19) hh = "j";
if (h == 20) hh = "k";
if (h == 21) hh = "l";
if (h == 22) hh = "m";
if (h == 23) hh = "n";
if (h == 24) hh = "o";
if (h == 25) hh = "p";
if (h == 26) hh = "q";
if (h == 27) hh = "r";
if (h == 28) hh = "s";
if (h == 29) hh = "t";
if (h == 30) hh = "u";
if (h == 31) hh = "v";
if (h == 32) hh = "w";
if (h == 33) hh = "x";
if (h == 34) hh = "y";
if (h == 35) hh = "z";
if (h == 36) hh = "A";
if (h == 37) hh = "B";
if (h == 38) hh = "C";
if (h == 39) hh = "D";
if (h == 40) hh = "E";
if (h == 41) hh = "F";
if (h == 42) hh = "G";
if (h == 43) hh = "H";
if (h == 44) hh = "I";
if (h == 45) hh = "J";
if (h == 46) hh = "K";
if (h == 47) hh = "L";
if (h == 48) hh = "M";
if (h == 49) hh = "N";
if (h == 50) hh = "O";
if (h == 51) hh = "P";
if (h == 52) hh = "Q";
if (h == 53) hh = "R";
if (h == 54) hh = "S";
if (h == 55) hh = "T";
if (h == 56) hh = "U";
if (h == 57) hh = "V";
if (h == 58) hh = "W";
if (h == 59) hh = "X";
if (h == 60) hh = "W";
if (h == 61) hh = "Z";
if (h == 62) hh = " ";
if (h == 63) hh = ".";
if (h == 64) hh = ",";
if (h == 65) hh = "@";
if (h == 66) hh = "!";
if (h == 67) hh = "?";
if (h == 68) hh = "-";
if (h == 69) hh = "_";
if (h == 70) hh = "/";
////////////////////////////////
if (i >= 9) 
{ 
int ii;
ii = i;
}
if (i == 10) 
{
char ii [2];
ii = "a";
}
if (i == 11) ii = "b";
if (i == 12) ii = "c";
if (i == 13) ii = "d";
if (i == 14) ii = "e";
if (i == 15) ii = "f";
if (i == 16) ii = "g";
if (i == 17) ii = "h";
if (i == 18) ii = "i";
if (i == 19) ii = "j";
if (i == 20) ii = "k";
if (i == 21) ii = "l";
if (i == 22) ii = "m";
if (i == 23) ii = "n";
if (i == 24) ii = "o";
if (i == 25) ii = "p";
if (i == 26) ii = "q";
if (i == 27) ii = "r";
if (i == 28) ii = "s";
if (i == 29) ii = "t";
if (i == 30) ii = "u";
if (i == 31) ii = "v";
if (i == 32) ii = "w";
if (i == 33) ii = "x";
if (i == 34) ii = "y";
if (i == 35) ii = "z";
if (i == 36) ii = "A";
if (i == 37) ii = "B";
if (i == 38) ii = "C";
if (i == 39) ii = "D";
if (i == 40) ii = "E";
if (i == 41) ii = "F";
if (i == 42) ii = "G";
if (i == 43) ii = "H";
if (i == 44) ii = "I";
if (i == 45) ii = "J";
if (i == 46) ii = "K";
if (i == 47) ii = "L";
if (i == 48) ii = "M";
if (i == 49) ii = "N";
if (i == 50) ii = "O";
if (i == 51) ii = "P";
if (i == 52) ii = "Q";
if (i == 53) ii = "R";
if (i == 54) ii = "S";
if (i == 55) ii = "T";
if (i == 56) ii = "U";
if (i == 57) ii = "V";
if (i == 58) ii = "W";
if (i == 59) ii = "X";
if (i == 60) ii = "W";
if (i == 61) ii = "Z";
if (i == 62) ii = " ";
if (i == 63) ii = ".";
if (i == 64) ii = ",";
if (i == 65) ii = "@";
if (i == 66) ii = "!";
if (i == 67) ii = "?";
if (i == 68) ii = "-";
if (i == 69) ii = "_";
if (i == 70) ii = "/";
/////////////////////////////////////////////////
if (j >= 9) 
{ 
int jj;
jj = j;
}
if (j == 10) 
{
char jj [2];
jj = "a";
}
if (j == 11) jj = "b";
if (j == 12) jj = "c";
if (j == 13) jj = "d";
if (j == 14) jj = "e";
if (j == 15) jj = "f";
if (j == 16) jj = "g";
if (j == 17) jj = "h";
if (j == 18) jj = "i";
if (j == 19) jj = "j";
if (j == 20) jj = "k";
if (j == 21) jj = "l";
if (j == 22) jj = "m";
if (j == 23) jj = "n";
if (j == 24) jj = "o";
if (j == 25) jj = "p";
if (j == 26) jj = "q";
if (j == 27) jj = "r";
if (j == 28) jj = "s";
if (j == 29) jj = "t";
if (j == 30) jj = "u";
if (j == 31) jj = "v";
if (j == 32) jj = "w";
if (j == 33) jj = "x";
if (j == 34) jj = "y";
if (j == 35) jj = "z";
if (j == 36) jj = "A";
if (j == 37) jj = "B";
if (j == 38) jj = "C";
if (j == 39) jj = "D";
if (j == 40) jj = "E";
if (j == 41) jj = "F";
if (j == 42) jj = "G";
if (j == 43) jj = "H";
if (j == 44) jj = "I";
if (j == 45) jj = "J";
if (j == 46) jj = "K";
if (j == 47) jj = "L";
if (j == 48) jj = "M";
if (j == 49) jj = "N";
if (j == 50) jj = "O";
if (j == 51) jj = "P";
if (j == 52) jj = "Q";
if (j == 53) jj = "R";
if (j == 54) jj = "S";
if (j == 55) jj = "T";
if (j == 56) jj = "U";
if (j == 57) jj = "V";
if (j == 58) jj = "W";
if (j == 59) jj = "X";
if (j == 60) jj = "W";
if (j == 61) jj = "Z";
if (j == 62) jj = " ";
if (j == 63) jj = ".";
if (j == 64) jj = ",";
if (j == 65) jj = "@";
if (j == 66) jj = "!";
if (j == 67) jj = "?";
if (j == 68) jj = "-";
if (j == 69) jj = "_";
if (j == 70) jj = "/";
////////////////////////
if ( a > 0 )
{
if ( b > 0 )
{
if ( c > 0 )
{ 
if ( d > 0 )
{
if ( e > 0 )
{
if ( f > 0 )
{
if ( g > 0 )
{
if ( h > 0 )
{
if ( i > 0 )
{
if ( j > 0 )
{
outputFile<<aa<<bb<<cc<<dd<<ee<<ff<<gg<<hh<<ii<<jj;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd<<ee<<ff<<gg<<hh<<ii;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd<<ee<<ff<<gg<<hh;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd<<ee<<ff<<gg;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd<<ee<<ff;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd<<ee;
goto escape;
}
outputFile<<aa<<bb<<cc<<dd;
goto escape;
}
outputFile<<aa<<bb<<cc;
goto escape;
}
outputFile<<aa<<bb;
goto escape;
}
outputFile<<aa;
goto escape;
}
escape:
///////////////////////////////////////////////////////////////////
if ( 70 == a,b,c,d,e,f,g,h,i,j ) 
{
outputFile.close(); 
return 0; 
}
/////////////////////////////////////////////////////////////////////
a++;
if ( a == 71 ) 
{ 
a = 0;
b++;
}
if ( b == 71 )
{
b = 0;
c++; 
}
if ( c == 71 )
{
c = 0;
d++;
}
if ( d == 71 )
{
d = 0;
e++;
}
if ( e == 71 )
{
e = 0;
f++;
}
if ( f == 71 )
{ 
f = 0;
g++;
}
if ( g == 71 )
{
g = 0;
h++;
}
if ( h == 71 )
{
h = 0;
i++;
}
if ( i == 71 )
{
i = 0;
j++;
}
if ( j == 71 )
{ 
return 0;
}
goto start;
}

I only Batch if possible, 2000 more lines of code, oh well.


See More: Char Error in C++

Report •


#1
April 11, 2009 at 00:57:44
Hi BatchFreak,

Do you need char in your program? Maybe, you can use string class provided by STL.

Some examples here.

Claw


Report •

#2
April 11, 2009 at 01:36:32
The error is because you're treating your char as though it were a string, so where ever you've the if ( * == * ) ** = " * " replace it with if ( * == * ) ** = ' * '

[edit]
How are you declaring aa? You've got char aa and char aa[2], which is it?

If it's aa[2], then either strcpy(aa, "?") or aa[0] = '?'

[/edit]


Report •

#3
April 11, 2009 at 07:16:13
shutat: wow, i knew it would be something stupid :) This program is really just a learning thing so..

Claw: thanks for the link :)

I only Batch if possible, 2000 more lines of code, oh well.


Report •

Related Solutions


Ask Question