Anonymous
ok sounds interesting will try🙄
BinaryByter
oh you want to say wether a person is in one of four groups?
Nikolas
why would you need an if - even for that?
how would you do that without an if ? (not saying that is not possible, but the if is the easiest way to achieve it)
Vishal
It compiled successfully?
Nikolas
ok 😆
BinaryByter
oh you want to say wether a person is in one of four groups?
just divide by maxgrade (your result will be between 0 and 1), multiply by three (your result will be between 0 and 3), round to int and then you can use a switch statement
BinaryByter
well, here you might want to floor instead
BinaryByter
but thats really overcomplicating such a simple task 😂
Anonymous
she want to do it with only one of statement
BinaryByter
here, I dont have any if statements at all
Anonymous
i don't understand why
BinaryByter
i don't understand why
College assignments ¯\_(ツ)_/¯
BinaryByter
You’ll get those soon
i won't study CS
BinaryByter
i'll probably either study to become a concert organist or a mathematician
Nikolas
College assignments ¯\_(ツ)_/¯
never had such a stupid assignment 😆
Anonymous
You’ll get those soon
Till file handling I haven't seen any
BinaryByter
never had such a stupid assignment 😆
let me correct: Indian College Assignments 😉
Anonymous
let me correct: Indian College Assignments 😉
Even Indian college assignment aren't like this or maybe their teacher is different Such questions states using if not only one if
Anonymous
Lol
Anonymous
loL
Anonymous
Hi i do have an opportunity for C++ Developer. Please let me know if anyone is interested
Ac3
Guys i need help in a program
Dima
Smart devs won’t study cs
Ac3
/marvo161
Anonymous
is there any way by which I can count the number of times a .exe file has been runned? Like When I open it, It will you are opening this file 4th time.
Anonymous
So whenever I open a program It will read from file and increase it by 1?
Anonymous
i was thinking same but If you guys know any better method .
I_Interface
So whenever I open a program It will read from file and increase it by 1?
U can read the num, increase it and write into file
I_Interface
Why not
Anonymous
ok thanks😃
Anonymous
https://pastebin.com/hCqj3d4S Can I create rows as strings? Why I always only get characters ?
klimi
idk why it doesnt work for you... i was ok with array of strings
Ariana
strcmp wouldnt work i thought? youll need strncmp
KAOT
I am human
I_Interface
I am human
Prove it
Ибраги́м
Ибраги́м
Education != Schooling
Ибраги́м
If school is what u meant
Ибраги́м
CS is very important if you're doing more than HTML and CSS
Ariana
html + css is turing complete have fun
Ariana
My goal is to put values as strings in positions
strings are effectively character arrays/pointer to character arrays
Anonymous
👍
Ariana
for (i=0;i<=numberRows;i++){ also why?
Anonymous
vector1 = "product", "price", "cost", "profit" vector2 = "banana", "10", "3" "7 (or price-cost) idk how to express but, the idea of vector1 having: 4 indexes of different strings, and numbers (could be as strings, and then I would change to int,) so, vector1 = columns vector2...,3...,4... = rows
Ariana
.
?
Anonymous
yes
Anonymous
for (i=0;i<1;i++){ scanf("%s", array[i]); }
Anonymous
where array[0] = "banana"
Anonymous
banana = my input
Anonymous
and then, the vector [2] (of 2 indexes): would have in index0 a vector of chars = "banana"
Anonymous
is that possible?
Anonymous
where array[0] = "banana"
or maybe array[1] = "banana", idk
Jussi
For real?
PowerPoint is turing complete
Jussi
https://www.youtube.com/watch?v=uNjxe8ShM-8
Bader
I just made the most pointless game in C that runs on an Arduino Uno as the mcu, Serial monitor as the display, and an analog joystick for movement... I see this as an absolute win!
Bader
It has procedural generation of enemies, character movement, and a treasure.
Abrantie
I want a teacher to help me learn c++
Bader
I want a teacher to help me learn c++
The internet is a wonderful place. Taking existing code and modifying / breaking it is also a really great way to learn how things truly work
Bader
When you have questions, then you can come here and we will help you. Please use this format when asking a question: #howtoask
Bader
#howtoask
Bader
Anonymous
How to sort positive and negative numbers alternatively this order (-1, 2, -3, 4, 5, -6)
Snej
Hello, Anyone suggest m e which type of questions asked in TCS interview
scammer.xyz
Any simple features for c programming?
scammer.xyz
Other than read write show directory
Snej
ohk