| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Help with multi-dim chara |
>> TH: char K[256][100];
ML> Which works fine in WATCOM C++ in MAIN...
Uh, why are you going on and on with watcom? Gcc is _THE_ C/C++ compiler.
ML> until...
ML> You try to do the loop in a FUNCTION...
What? Like this?
void Foo(char **bar)
{
int c;
for (c = 0; c < 2; c ++)
cin >> bar[c];
}
Is something wrong with that? (when bar is allocated properly ofcourse)
---
---------------
* Origin: Recursive, adj.; see Recursive (2:201/293.22) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.