read and write files | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
21st Sep 2020, 10:54 PM
Dove
Dove - avatar
20 Respostas
+ 7
I'm not sure you can import with sololearn editor
21st Sep 2020, 10:55 PM
Cyber Nate
Cyber Nate - avatar
21st Sep 2020, 11:05 PM
Namit Jain
Namit Jain - avatar
+ 4
but it display Enter an operator (winnerm();winnerp();winnere();justicem();justicep();justicee();mirianm();mirianp();miriane();preciousm();preciousp();preciouse();): pe//my input [Program finished] JayakrishnašŸ‡®šŸ‡³ ,JOY ,慤慤慤慤 ɒŹžiŹœź™…į“ŽA šŸŽµšŸŽ¶ ,Aji ź¦„ź¦—ź¦¶ ,šŸ›”ļøDream KilleršŸ—”ļø ,āø™ĘµĆ˜Ā„ā‚³āø™
22nd Sep 2020, 8:51 PM
Dove
Dove - avatar
+ 3
Cyber Nate even if not with sololearn. i have c ide with me
21st Sep 2020, 10:57 PM
Dove
Dove - avatar
+ 3
have you do atm program before at any language
21st Sep 2020, 11:07 PM
Dove
Dove - avatar
+ 3
No useful knowledge about #C unfortunatelyšŸ˜”
22nd Sep 2020, 12:10 AM
Conquest Onyekachi Idam
Conquest Onyekachi Idam - avatar
+ 3
For your original program, this works.. Charecter constant means single charecter only.. So I mean this way... Alternative. Using strings in switch cases in not valid. int main(){ char operate; printf("Enter an operator alphabet a to l: "); scanf("%c", &operate); switch(operate) { case 'a':winnerm(); break; case 'b': winnerp(); break; case 'c':winnere(); break; case 'd':justicem(); break; case 'e':justicep(); break; case 'f':justicee(); break; case 'g':mirianm(); break; case 'h':mirianp(); break; case 'i':miriane(); break; case 'j':preciousm(); break; case 'k':preciousp(); break; case 'l':preciouse(); break; } return 0; }
23rd Sep 2020, 5:50 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
C don't have string type, you can use a charecter array for that and also won't possible to use in switch cases. C switch cases shloud be a Integer constant.
22nd Sep 2020, 12:47 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
JayakrishnašŸ‡®šŸ‡³ how? pls explain if possible with examples
22nd Sep 2020, 12:55 PM
Dove
Dove - avatar
+ 2
write a code or edit the code for me
22nd Sep 2020, 12:56 PM
Dove
Dove - avatar
+ 2
int main(){ //string operate; //its invalid, you can use a charecter like char operate; scanf("%c", &operate); switch(operate) { /* case 'winnerm() ': //this is also invalid winnerm(); break; case 'winnerp() ':winnerp(); break; */ //you can do like this instead, case 'w' : winnerm(); break; case 'p' : winnerp(); break; Similar way you can continue....ā™ šŸ‘‘ ā„ā“„ļ½ŒŹøįµ‡š•†š’¾ šŸ‘ā™¦ ..
22nd Sep 2020, 1:48 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
JayakrishnašŸ‡®šŸ‡³ thanks bro. let me try that
22nd Sep 2020, 2:09 PM
Dove
Dove - avatar
+ 2
it works bro but the didnt show
22nd Sep 2020, 2:17 PM
Dove
Dove - avatar
+ 2
What not showing..?
22nd Sep 2020, 3:49 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
edit the code and run pls JayakrishnašŸ‡®šŸ‡³
22nd Sep 2020, 7:51 PM
Dove
Dove - avatar
+ 2
ā™ šŸ‘‘ ā„ā“„ļ½ŒŹøįµ‡š•†š’¾ šŸ‘ā™¦ I already tried and given answer for possible solution. Now try that way and if not solved, then post your updated code with specifying problems with a clarity.. Tq...
22nd Sep 2020, 7:57 PM
Jayakrishna šŸ‡®šŸ‡³
22nd Sep 2020, 10:18 PM
Dove
Dove - avatar
+ 2
23rd Sep 2020, 6:28 PM
Dove
Dove - avatar