Dima
but well yes, that sounds loud tho
Dima
using js/python automatically makes you a retarded slave though:)
NXiss7
Talking about Python
Yakov
using js/python automatically makes you a retarded slave though:)
Cant understand hate towards Python. It's not that bad and can be used for some things.
NXiss7
Cant understand hate towards Python. It's not that bad and can be used for some things.
Yeah.. But can't use it after C++. I love how C++ is "strict", robust and "flexible" at the same time.
Bunyamin
Bunyamin
Help
NXiss7
You don't need string there Use const char* array instead
NXiss7
You need to set compiler to use C++11 or higher to use those initializers btw.
Bunyamin
Bunyamin
this document
NXiss7
Did you set your compiler to C++11? Do you have a Java history, have you ever used it?
Dima
this document
fix it yourself
Dima
we won’t write a code for you, we’ll only guide
Emma Nexus
Pls how can i use GUI in c++?
Dima
Pls how can i use GUI in c++?
you’ve got to code.
Dima
try imgui libraries
Emma Nexus
Dimka imgui where can i find it
Emma Nexus
Pls help me
Dima
google it
Emma Nexus
Ok what of gui app
NXiss7
Pls how can i use GUI in c++?
ImGUI if you want a small sized, tiny UI. Use Qt if you want a more "professional" UI... But keep in mind, Qt is not just a GUI lib, it's a huge framework! But it's worth it if you need to build something big and don't mind deploying big dlls with your program. I usually write "work" GUI's with Qt and hobby, pet ones with ImGUI.
NXiss7
Ok what of gui app
Do you mean mobile app?
Kenny
Hey guys
Emma Nexus
All
Kenny
How could i remove all s from end of a word?
Kenny
Example: "hellss hiuSss" Output: "hell hiu"
Yes, exactly.
@iamamansharma and @idkwhoiam322 you both are gems... thanks a lot
See the thing is, You must start the loop from 0 i.e. index 0 of string.. To length of string
So I found the length of the string with the strlen() function...had to include string.h And I needed it as a condition in my for loop
@idkwhoiam322 @iamamansharma this is the working code as opposed to that filth. #include <stdio.h> #include <cs50.h> #include <string.h> int main(void) { int count = 0; //Prompts user for text string s = get_string("Text: "); int l = strlen(s); for (int i = 0; i < l ; i++) { if ((s[i] >= 'a' && s[i] <= 'z') || (s[i] >= 'A' && s[i] <= 'Z')) { count++; } } printf("%i letter(s)\n", count); }
MilkBeforeCereal
it's really good that you figured it out on your own ( I hope )
MilkBeforeCereal
:)
:)
😂
Nicely done.
Thanks.I'll add more comments
Anonymous
hey guys i need free member fake for telegram chanell. can help me?
klimi
hey guys i need free member fake for telegram chanell. can help me?
should i ban you right now or should i wait 5 mins for explanation?
klimi
xD
klimi
hey dimka gib music
MilkBeforeCereal
spelt nudes wrong
NXiss7
You have great profile tastes. 😁😁😁 @K11M1 @idkwhoiam322
Dark
/report @MissRose_bot
Dark
Lol
Anonymous
Any one have HACKATON idea in CS
Adilet
Hello guys. Help write easy code on function template
Adilet
On C++
01000001011011010100000101101110
Just ask what you want
Adilet
Just ask what you want
function template example
Adilet
Please
01000001011011010100000101101110
function template example
Just google it. You'll find it. Even swap() can be implemented using templates
Ritwik
****1 *31 531 *7531 97531 Logic please
Ritwik
Sorry pattern is like this.. AAAA1 AAA31 AA531 A7531 97531
Asdew
Are you asking us for the pattern/logic in that?
Ritwik
Yes.. Why? Can't I
Asdew
Do you seriously not see it?
MilkBeforeCereal
???
it doesn't get much easier than that :/
MilkBeforeCereal
???
he's asking if you can't see the pattern....
MilkBeforeCereal
Logic?? If anyone know..
do you understand what's happening in the pattern?
MilkBeforeCereal
No
In the loop, star goes 4, 3, 2, 1.... odd numbers go from i=1 i+2, +2-2 i+4, i+4-2, i+4-2-2
MilkBeforeCereal
and so on
MilkBeforeCereal
MilkBeforeCereal
pretty simple nested loop shit
Nicely done.
I just came across a function in the ctype.h header file that can count letters too. Arigato gozaimasu!
Anonymous
Hello Where can I find good website for practicing c?
NXiss7
Love that pack 😄