Hey, I came up with this crazy idea... i want to learn to speak Danish.
I thought that by using a program I could teach myself the first thousand most commonly used wrords. The problem I'm having is assinging variables
to strings.
I understand a string is basically an array of characters... here's
what I first came up with...
char danWords[200][64],engWords[200][64];
//for loop i1 to 200
danwords[i]="lyser°d";
engwords[i]="pink";
I knew the above wouldn't work, but I needed a starting point. I wound
up here, stumped...
char danWords[200][64],engWords[200][64];
//for loop i 1 to 200
scanf("lyser°d",&danwords[i]);
scanf("pink",&engWords[i]);
How would you do this? Thanks!
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 124 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 01:24:03 |
| Calls: | 7,350 |
| Calls today: | 2 |
| Files: | 9,250 |
| D/L today: |
168 files (35,596K bytes) |
| Messages: | 383,600 |