Hi everybody,
I am trying to input a character and right away an array of characters...
However once i input the character, it doesnt let me input the array character and the program ends...
...
Type: Posts; User: Greek_89
Hi everybody,
I am trying to input a character and right away an array of characters...
However once i input the character, it doesnt let me input the array character and the program ends...
...
Thanks a lot...it works now!
Hello everyone,
Lets say i have this string:
view source
print?
char a_string[30]={"Hello, world"}
well to be honest i was kinda tricky cause the whole week i tried more than 8 algorithms and i could get it work well... :O I tried "switch" ... "else..if"..."nested ifs"...but thanx for your help....
well even and even2..even-'n' represent each integer. Each integer i assign it as a even or odd..since i want to compare each single one, i give them a unique name
ok i made it FINALLY. I used a slightly different approach though..take a look at this little piece: "
printf( "\nEnter number 3 : " );
int num3;
scanf("%d", &num3 );
int...
the one with the "if n%2 ==0..." i've tried it already..however i dont know how to proceeed after that..I mean if i have to check for all the 6 numbers to find the lowest odd/even, it will take me...
Hi everyone
Im on the peak to explode! :P
For a week now i am trying to find an algorithm to get 6 numbers which 3 of them should be odd and the other even..Then determine which one from even...
yes thats what im saying...it is not wrong but unnecessary..i was just being sarcastic with the 1+2=3 example..however that a minor thing i should pay attention in c++ :P
No its OK! thanks for that..yeah your right.. "while(game)" is an alternative...although its like saying 2+1=3 or 1+2=3..but ive seem most of the programs being written like yours
if you see my characters,this is english..its just CODED english cause we are in a "cold war" era..
Anyway for those who hate the greek culture (even though greeks gave you the lights for your...
katalabainw ti thes na peis..sthn arxh dn hthela n xrhsimopoihsw suntetagmenes alla opws eipa apla to eftiaksa ayto to paixnidi gia na eksaskhthw sauta pou ematha st c++..(sth periptwsh twn...
Hi guys,
I would like to take a look at this text based RPG i created. It is not even nearly completed. It is just a prototype which helps me to brush up all the things i've learned so far in C++...
Is it a good idea to learn two programming languages the same time?
I was thinking of in addition with C++ to start learn also Python. Does it make sense ?
great explanation..now i see a little bit clearer..so what i get from that is that pointers are useful for good memory use..right?
OK. im tryin to give an explanation about the output: So we initialize "variable" with the value "5", then using the foo(variable), we pass INTO the function "5", the parameter is "&var" so it shows...
I tested it and it gives me the expected output but why use pointers or references? we could simply use regular variables.
Consider this:
void function1()
{
int variable = 5;
function2(&variable);
}
thanx a lot i appreciate it!
i read the instruction abouthow to set the compiler Code::blocks..
in step 3, however, i didnt understand the part were it says:
After clicking "Next", Code::Blocks will then prompt you with...
[U]ok it works now..i think...is the output of this program right?
after the "hello, world" message, it show this:
[B]
Process returned 0(0x0) execution time : 0.053 s
Press any key to...
yes i got the link..thanks..i'll try it
do ihave to pay to dowload it?
yes i did dowloaded the code:blocks and run the compiler but i could not compile anything with it..instead it gives me a message:
"It seems that the projest has not been built yet. Do you want to...
i dowloaded the Code::blocks but i cannot compile any program..I have a vista
then i read that i have to download a MinGW 5.1.6 exe.but when i downloaded it, icouldnt find the compiler in my...