I am my own teacher LOL..
And thank you...
Type: Posts; User: Mythic Fr0st
I am my own teacher LOL..
And thank you...
Ok, I just downloaded Borland C++ editor,
now I opened it, but I can't find where windows application is...
I tried a "console" application, but its definately not windows programming
Can...
I'd rather it doesnt pop up twice, but...
so I just use the random thing for ".key" and for".word" and they'll match up correctly?
so the Word will be hello, and the Hint (key) will be "A...
I did a while (word_list[0].word != real_word[0])
{
do the random word thing again for both of em
}
(Real_Word, is so that the...
Thanks, I understand now, but still few problems
error, from using
shuffled_word = std::random_shuffle(original.begin(), original.end());
I also dont understand how I put a...
My script doesn't shuffle the words, it shuffles the "text" inside...
E.G
word[1] = "Hello"
if it picks Word[1], it turns Hello into something like
hlleo or lleho or 5 random characters of...
no, my compiler is dev - C++
lol
ohhh, I see
its different from what I have learnt (other languages)
so
string m = "hello"
string res = m.substr(2,1)
being 'l' and only 1 character....
The problem is that sometimes when I run my program, sometimes it works, perfectly, then during the game, it just stops, and I can't do anything else.. (No errors/crashing etc..)
Sometimes it just...
Thanks, worked great!
ok, so I have my function (int main () ) run, then it works, but how do I get it so it repeats?
i've just put a while (bool = true) loop, around the contents of it (while the condition being true,...
confusing, I do have a index thing manual open, yes I'll get a book, (no chances to go to library yet! i cant drive lol!
OMG, thanks alot
so in c++ substr "hello" 1,1 = (nothing)
?
weird i'll try
low_index, low_index+1
its now
#include <iostream>
using namespace std;
int main ()
{
string wd[50];
cout<<"Trivia will begin"<<"\n"<<"\n";
wd[1] = "hello";
wd[2] = "need";
wd[3] = "help";
thanks, obvious mistake, 5 letters O_O not six! stupid! lol
#include <iostream>
using namespace std;
int main ()
{
string wd[50];
cout<<"Trivia will begin"<<"\n"<<"\n";
wd[1] = "hello";
wd[2] = "need";
wd[3] = "help";
Yea that worked great, THANKS!
how do I get the substring of a variable?
im trying to make a "Trivia" game...
with scrambling words lol...
this is my code so far...
#include <iostream>
using namespace std;
I tried
I found a thing, but I couldnt do
user = user + c
(c being the char, and user the string)
to add it, it kept being null, so I deleted it
But I cant use getline(cin, int) it has to be a string...
it wont compile otherwise
I also am trying to convert the string "user" to lowercase, with no luck...
#include <iostream>...
I dont have myflush() or mypause()
just
cin.get();
Ok, converting integer to string problems...
I can do it if I do
but not if I do
because getline is asking where i2s is? im confused, I googled this
for (int aoe = 0; aoe <= 9; aoe++)
{
for (int aue = 1; aue <= 9; aue++)
{
if (allowedage[aoe] == age)
{
age_correct = true;
...
Erm, it doesn't seem to work for variables...
int ul = strlen(usr);
#include <iostream>
using namespace std;
int main ()