olli
hdjdjdjjdj
cool, thanks, will look into it
Avique
@admin I just tried to point a message i wrote in another group. Please, undo this warning and send the message back to me in private.
Vlad
guys, is it possible in anyway to create a telegram bot using C
step one: create a scripting lang in C step two: write your bot in that scripting lang
Nils
unless they are „what is a for loop“ level of beginner
No to them it's an if loop 😂😂😂
Anonymous
Greetings in the group
Anonymous
Am new here and a novice in the field of programming seeking for a teacher to guide me through the programming world
NBC
Hi there. I need help with a C script code. Looking for a tutor. Please, in spanish or portuguese. Thanks
NBC
C project *
꧁༒•Sir Aleko•༒꧂
Who has good notes for c programming..kindly share
Talula
Who has good notes for c programming..kindly share
Notes? Like University stuff from class? I probably had it 11 years ago.
Anonymous
Anonymous
Plis help
Anonymous
Dont know where the other loop must be
Naol
any free ebook on winapi
Igor🇺🇦
any free ebook on winapi
What's wrong with the official documentation https://docs.microsoft.com/en-us/windows/win32/apiindex/windows-api-list?
Naol
i needed a pdf version with tutorial and demos
Igor🇺🇦
Naol
well it is not pdf tho
Naol
i thought you were sending me the pdf. thank you though
hdjdjdjjdj
Dont know where the other loop must be
what is your problem, the code should work just fine
Anonymous
what is your problem, the code should work just fine
The thing is the question says you should use a nested loop
hdjdjdjjdj
you should loop over each result on each experiment
hdjdjdjjdj
for(int x=0;x<4;x++){ puts("enter result:") ; scanf("%d", & result); }
hdjdjdjjdj
you can then add all the results in an array after they are initiated to get the mean
ברני
V01D
for loop is better than while
Why? Cuz it's more precise?
V01D
Shorter
Oh ok
INDIA
INDIA
Someone plz guide me how can I solve this
ברני
Oh ok
My friends that working as coders said that as shorter the code is the better
INDIA
The green boxes are basically the question And.we have to make classes of blue boxes
V01D
V01D
Or do you mean In terms of speed
INDIA
Guys plz help me too
ברני
Isn't For (...;...;...) Longer than while(..)?
for(int i=0,i<SIZE ;i++) ; while (size) { *lots of options but it's getting Longer And longer Until you finish }
ברני
Therse some cases that you'll probably will need while ove for but for is shorter most of the time
Ando
Guys, i have a problem, how to run a c ++ program that contains an external .h file... for example I want to create a virtual sorting program. can anyone give me a tutorial from scratch?
Naol
in gcc add all the cpp to the arguments
Naol
and cpp and the h file need to have the same file name
Naol
and the h file is for declaration and constants
Ando
I know, but the problem is I don't know where to put the .h file, because the message always appears when I try to run it
Naol
you include it using quote instead of <>
Naol
<> is for standart library, and if it is in a directory give it the relative directory
M.Khorram
Guys plz help me too
Pretty simple and straightforward. You need three classes The first one is abstract, So you need to add virtual methods virtual double getArea(); virtual double toString(); the two others are inheriting from the first one. Something like this: class Rectangle : public Shape class Triangle : public Shape Then, you need to implement the getArea() and toString() in Rectangle and Triangle.
klimi
<> is for standart library, and if it is in a directory give it the relative directory
<> is for libs that are in include path, "" is for local files
Naol
he can use also build systems
Naol
like cmake or scons
klimi
I dont think it makes difference ¯\_ (ツ) _/¯ but what I know... I'm not a c++ programmer
MK
Any good resources to learn c++ oops concepts practically??
MK
YouTube
Any specific Channel names
Naol
oops concept
ברני
Any good resources to learn c++ oops concepts practically??
Google will probably have all the programing answers you need
Naol
concept
Talula
Any specific Channel names
https://www.youtube.com/watch?v=pTB0EiLXUC8
Talula
I like Mosh he is good... and fast.
Gulshan
http://cplusplus.com/forum/general/250020/
Gulshan
is it good to use box type ??
INDIA
your are concpets are so good
Gulshan
#include <iostream> int main() { char string[256]; printf("Please enter a long string: "); fgets(string, 256, stdin); // std::cin >> string; // std::cout << string[0]; // std::cout << string[1]; return 0; }
Gulshan
why this fgets is used, since cin does the same thing??
Gulshan
and do it is very fast as compared to cin ??
olli
why this fgets is used, since cin does the same thing??
while fgets lets you limit the size of the input, cin does not and may corrupt the stack. If you want to use cin, consider using std::string as well.
ברני
Hey guys, I have a logic struggle on C, my function suppose to make it count if there's more space in the array for more numbers or not..can someone give me a hint what I did wrong? https://onlinegdb.com/HkxRtPYAFv
Krypton
#include <iostream> using namespace std; int main() { int y[4] = {77,66,55,44},*ptr = y+ 11; (*(ptr+ 11))++; *ptr++; *ptr=11; cout<< y[1]<< y[2]; return 0; } anyone know why this do not give segmentation error?
𝓐𝓵𝓲𝓮𝓷 ♨
What is *ptr++
It is like *ptr+1
Gulshan
how to get data in calculateTotalScore function ?
Krypton
this is UB: no segmentation fault cause address is y+11 is mapped, you overwrite it with wrong data
okay with pointers,we can change/modify any location data, even if the memory is not allocated for our program
Alex
okay with pointers,we can change/modify any location data, even if the memory is not allocated for our program
you can`t, this is UB, you won`t have segfault every time. for example on the address y+11 is another stack variable int x = 5; you just change its value