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: | 106 |
Nodes: | 16 (1 / 15) |
Uptime: | 03:02:51 |
Calls: | 5,894 |
Calls today: | 10 |
Files: | 8,496 |
D/L today: |
69 files (14,659K bytes) |
Messages: | 344,869 |
Posted today: | 2 |