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: | 120 |
| Nodes: | 16 (1 / 15) |
| Uptime: | 10:30:05 |
| Calls: | 7,290 |
| Calls today: | 5 |
| Files: | 9,242 |
| D/L today: |
481 files (161M bytes) |
| Messages: | 382,743 |
| Posted today: | 2 |