Alexzander
Everybody have good ebook or site tutorial for make desktop application in Linux/Windows (Native) ?
Anonymous
Sasuke
That's not how it works. Think about it Write your own solution if you stick somewhere or program is not working how u wanted it to. Then ask here
Anonymous
why it shows only 74 on screen?Can you explain?
Anonymous
why it shows only 74 on screen?Can you explain?
Do scanf three times for each input ig
Sasuke
why it shows only 74 on screen?Can you explain?
You are declaring the variables as int and storing values as float. Correct the type
Anonymous
Thank u so much
Anonymous
hello I'm trying to use the eof() method (?) dunno how to call (its my 3th day on C++) and I get an error error: use of undeclared identifier 'eof' the code: void leer_imprimir_en_pantalla (){ int variableauxiliar; char* path_archivo = "/Users/facundo/Documents/Facultad_Algo1/numeros.txt"; ifstream archivo; archivo.open( path_archivo , std::ios_base::app); while (!eof()){ archivo >> variableauxiliar; cout << variableauxiliar; } archivo.close(); } I've already googled but there's nothing on stack overflow sry :(
Anonymous
oh I see
Anonymous
thanks 🙏
304 Alakh
https://www.analyticsvidhya.com/blog/2020/04/machine-learning-using-c-linear-logistic-regression/?utm_source=AVLinkedin&utm_medium=post&utm_campaign=22_april_new_article My first endeavour into this field. Feedbacks are welcome
@tony_thedj
anyone who can help unlock a modem ??
Anonymous
Hi
Joo
What is the difference between declarations and definition
Francisco
What is the difference between declarations and definition
int f(int x); // Declaration int f(int x) // Definition { return x*x; }
Anonymous
What is the difference between declarations and definition
extern int a; // declaration int a; // definition or decl + def
Joo
Ok thanks
Joo
@unterumarmung are you saying declarations and definitions are the same?
Anonymous
int a; is definition and declaration at the same time if there was no declaration previously, otherwise it's only a definition
Joo
I see thank you
Anonymous
hello everyone, i am trying to find size of the structs, however! when i run the sizeof(flintstone) on machine it gives me 40B, why? what am i overlooking ? ive used to the same machine to get the individual sizes of each datatype and calculated accordingly, but my total gives me 36*B instead of 40B. where have the 4B gone ? can anyone help with it. also, sizeof rubble, i got it as 16B, which is correct
Till
Because aligning =)
Anonymous
Because aligning =)
sizeof(short) gives 2B, 2*2 = 4B is that the correct way to calculate ?
Anonymous
16 B 2 B 2 B free 2 B 2 B free 16 B
im sorry, i didn't get that, can u explain a bit more
Shamon_sha
Hi all.. i am working with a usb datalogger with pic24f controller. I have done with it almost, but need to add internal rtcc to print date and time. Can anyone help me to do it. I tried, but interrupt is not getting. If anyone have experience with RTCC, please let me know
Till
im sorry, i didn't get that, can u explain a bit more
https://en.cppreference.com/w/c/language/object
Anonymous
https://en.cppreference.com/w/c/language/object
ohhhh so basically my struct look likes this: struct { short *wilma[0]; // 8B short *wilma[1]; //8B short fred[0]; //2B (short pad; //2B) short fred[1]; //2B (short pad; //2B) rubble dino; 16B } 16 + 8 + 16 40 BYTES!! THANK YOUU 😭😭
Anonymous
Hey guys can someone recommend me a good website to practice c and etc?
gg
Any python aspirant?
Anonymous
wrong calculation. sizeof(a[n]) is always n * sizeof(a[0])
n*sizeof(a[0]), 2*sizeof(fred[0]) = 4B yeahh. thank you very much
Anonymous
... short fred[0]; //2B short fred[1]; //2B (short pad; //4B) ... 16 + 8 + 16 40 BYTES!!
no. padding is done for alignment reasons. there is no reason for a padding to exist after 4B
Anonymous
so im understanding this as: the padding bytes will be allocated contiguous rather than inbetween array elements, maybe something like this, [0000] lets say this is a byte, for memory and [xxxx] are the paddings, so itll be like, [0000][0000][xxxx][xxxx] right ? instead of [0000][xxxx][0000][xxxx]
Anonymous
i think you should just test the memory
i really dont know alot about how memory works, i am slowly slowly going in there, ‘test the memory’ idk how to do that but soon, if there's a resource which i should follow that u can suggest, itll be great
Anonymous
O.o
Anonymous
testing
Anonymous
no no not asking, but ummmmm im just trying to represent bytes
Anonymous
oh. i thought boundaries were at 4 bytes
Anonymous
ye
Anonymous
ye 8 byte boundaries
Anonymous
oh
Anonymous
Any python aspirant?
/warn no, only warns
Anonymous
printf(" \n "); .
Anonymous
#include<stdio.h> int main(){ int n,i,a, j, s,r; printf("enter the number"); for(j=100;j< 500;j++) { i=j/100; r=j % 100; s=r/10; a=j%10; if ((i-s== 1) || (s-i== 1)){ else if ((s-a == 1) || (a-s== 1)){ printf("%d%d%d ",i,s,a ); printf(" \n "); } } }
Dima
What
Nils
Hi, what does that mean: "error: '__size32' was not declared in this scope" What did I forget to #include?
Anonymous
The error means that you are using __size32, but there was no declaration about it previously, so compiler know nothing about it
Anonymous
It means that you either forgot to declare it yourself or include declaration from other place
Anonymous
Since it's prefixed with 2 underscores you probably forgot to include something
Anonymous
But what… ?
We know nothing what __size32 is and why you're using it
Nils
We know nothing what __size32 is and why you're using it
It's a standalone .c file decompiled by boomerang 😉
Anonymous
Nils
🤔
Artöm
It's a standalone .c file decompiled by boomerang 😉
Why do you think decompiled file can be compiled again?
Bhushan
hi
Anonymous
Where can I learn modern openCV?
Anonymous
Where can I learn modern openCV?
https://www.youtube.com/playlist?list=PLlrATfBNZ98foTJPJ_Ev03o2oq3-GGOS2
Anonymous
Thanks
Anonymous
Can anybody tell me what is sandbox?
Anonymous
Like vm?
Anonymous
Where I can read more about makefile
Anonymous
Thanks I got that
anjani
Where can I find practice questions for object oriented programming for c++
Anonymous
Send me some coding
Lucifer
Hi