Randy
Randy
Plz don't give me the code
Dima
lol write it yourself
Dima
for sure
Randy
Just explain me how can i approach the problem
Talula
It's a simple idea... Make a program that will allow you to take and input up to 18 digits
Talula
After you take the input convert it to string... and then scan the string getting 2 digits at a time, if the digit is more than 26 use 1... 2 in this case.. b... if it's 1 digit, get the next one and now you'll get another number... example... 3294929122334 So 32 is larger than 26... so go with 3.. which is c then 29 is again larger than 26... go with 2... b then 94... bigger than 26... etc.. till you get to 12 which is smaller than 26 use the number to get the alphabet... then skip twice.
Ибраги́м
https://crascit.com/professional-cmake/
Randy
Thanyou tazz I will try
Anonymous
Hello Friends, I am making Snake Game in C. I can move snake using W,S,A,D keys. How can i do it with arrow keys ? ( I am making this game in TC )
Talula
if (getch() == '\033') { // if the first value is esc getch(); // skip the [ switch(getch()) { // the real value case 'A': // code for arrow up break; case 'B': // code for arrow down break; case 'C': // code for arrow right break; case 'D': // code for arrow left break; } }
Dima
Use arrow key scan codes
Anonymous
Talula
When you press arrow key you get 3 getch() first is 33... then it's '[' and then you get 'A' 'B' 'C' or 'D'...
Dima
Every key has own “index”
Dima
Or key Id, that’s just char as int
Anonymous
Ok
Anonymous
Still didn't understand
Talula
Still didn't understand
When you press Arrow keys 3 chars are sent... First is char 33 next is '[' telling you that arrow key is pressed next is the keycode... abc or d
Anonymous
33 is which character ?
Anonymous
For me
Talula
Anonymous
OK.. Thanks For The Help.
Anonymous
Ok
Anonymous
Please give me any easy tips for c++
Dima
one tip that there are no easy tips for c++
Anonymous
Anonymous
Please give me any easy tips for c++
if(!you.knowcpp()) you.studyit();
Dima
just start making some project
Dima
doesnt matter the size
Dima
just get some idea and motivation
Anonymous
Ok
Dima
and later as you do it you will get more and more xp, reading books also is good
Dima
Anonymous
Anonymous
A good book to learn advanced c?
Roxifλsz 🇱🇹
/warn kys
Anonymous
hello
Anonymous
Im new to cpp
Talula
/warn kys
what is Kys?
Anonymous
👍
Ralph
👍🏿
Top T : Trollface Was Real
Guys please help me how can partition the integer 121 into 1,2,3,12,21
Separate the digits using division. Do the rest in your own.
Anonymous
Yeah....sure
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
🙄😕
Roxifλsz 🇱🇹
/warn spam
Roxifλsz 🇱🇹
Shit, the bot is dead
Roxifλsz 🇱🇹
You got away this time, spammer
Roxifλsz 🇱🇹
Lol
Visama
huehue
Anonymous
/warn
Anonymous
/warn Ryan
Anonymous
Best ide for c++
Dima
Xcode
Dima
but its for osx only lol
Dima
Codelite is pretty good
Dima
visual studio for windows
Igor🇺🇦
Best ide for c++
Are you trying to start a war?
Top T : Trollface Was Real
Kek
Talula
Best ide for c++
Visual Studio Code for any OS... but doesn't have built in compiler.
Top T : Trollface Was Real
I'm ok with Dev c++
Igor🇺🇦
Dev-C++
It's dead , and is not developed. Certainly not good.
Dima
lol devcpp - rip
Dima
CodeLite/Code::Blocks for linux
Top T : Trollface Was Real
I'll try codelite.
Anonymous
I'm ok with Dev c++
I have it, awful
Talula
I have it, awful
It's not the best or the worst Editor but best part about it is embedded compiler...
Talula
But to develop C or C++ applications I would suggest using VSC.
Talula
Just my opinion...
Dima
it wouldnt be hard to download a compiler