+ 2

How can the user introduce a word?

I mean, for example, if you want a variable be, in your program euro, gold, bucks, things, lei etc... how to do?

6th Jul 2017, 1:06 PM
MintyNerdyPoodle
MintyNerdyPoodle - avatar
3 odpowiedzi
+ 10
By 'introduce', do you mean 'input and store into a variable'? Try using string variables. string myVar = "This is some text"; cout << myVar;
6th Jul 2017, 1:10 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
I'm not sure what you're asking. I suppose they could just make something up, like "ramblydabdoley!" If you're wanting them to be able to introduce a word or something like spell check, just have it store the word into a database for user introduced words.
6th Jul 2017, 1:10 PM
AgentSmith
+ 1
Netkos Ent, how to store the word in a database?
6th Jul 2017, 3:29 PM
MintyNerdyPoodle
MintyNerdyPoodle - avatar