- #1
cellec
- 13
- 0
Two questions,
1) Can you tell me why
Why does there exist to be x[2] ? How can I chaneg the code to get only two x[0],x[1];
2) Completely different though,
Are there any ways to "parse" the values i.e integers as the template arguments at runtime ? My VC++ 6.0 compiler complains that i can't pass the numbers directly like that at run time.
Thanks in advance,
-Fiona's twin__001
1) Can you tell me why
PHP:
ifstream f("f.txt"); //there are 2 numbers in file f
int count=0
while(!f.eof()){
f>>x[count];
count++;
}
2) Completely different though,
Are there any ways to "parse" the values i.e integers as the template arguments at runtime ? My VC++ 6.0 compiler complains that i can't pass the numbers directly like that at run time.
Thanks in advance,
-Fiona's twin__001