Anonymous
hello
Anonymous
I'm using google benchmark
Anonymous
some one know the definition of output?
Anonymous
Run on (8 X 2794 MHz CPU s) CPU Caches: L1 Data 32K (x4) L1 Instruction 32K (x4) L2 Unified 262K (x4) L3 Unified 6291K (x1) -------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------- sort/128 4448 ns 5298 ns 144516
Anonymous
time & CPU ?
Anonymous
what are?
Anonymous
I have not problem with the rest
Aji
Just now I learning c programming...
Aji
What kinds of practice take me to the next level?
Aji
I am Mechanical student..not that much knowledge about programming...but I eager to learn it...
Vishal
What kinds of practice take me to the next level?
This might be helpful : https://dev.to/visheshpatel/how-c-program-converts-into-assembly-3m2f
Aji
I know the concept of memory
Aji
But I can't understand the function and variable
Ilya
What kinds of practice take me to the next level?
Programming... Practice... If you are not CS student, learn basics of Computer Architecture and Operating Systems.
Aji
Can u plz help share me some notes about basic programming?
Ilya
Can u plz help share me some notes about basic programming?
it's not for chats, you must read books for this.
Ilya
Can u plz help share me some notes about basic programming?
Well you can try reading SICP or S.Prata "C Premier"
Decoder_3d
Link
Anonymous
Decoder_3d
Ebook
Anonymous
Link sir
https://www.amazon.com/Primer-Plus-6th-Developers-Library/dp/0321776402
Aji
Thank you so much
Anonymous
Thank you so much
/warn private messaging without asking
Aji
it's not for chats, you must read books for this.
That's y I asking in personal...sorry..
Anonymous
Hy
MᏫᎻᎯᎷᎷᎬᎠ
Hey
klimi
Hy
No, this is c/c++ group, no python here
Anonymous
No, this is c/c++ group, no python here
By the way thanks for the advice. I'm beginner in cpp. I want to learn more core about cpp.
klimi
By the way thanks for the advice. I'm beginner in cpp. I want to learn more core about cpp.
Just that your first word was related to python ¯\_ (ツ) _/¯
klimi
Anonymous
Yes!!!!
I don't even know python. Only i know oop pop basics. That's all.
klimi
And you said hy
klimi
Anonymous
And you said hy
🙄🙄🙄
Anonymous
Yeah, I underestimated decltype
Can you help me with how to do this with a comparator function?
Essie 😘
Helloguys
Ritu Raj
Can anybody tell me how can I check whether all the characters in string contains 0,1,2,3,4,5,6,7,8,9 or not?.... Is there any good approach to solve this kind of question?
Ritu Raj
Using STL
Essie 😘
does someone know bubble .is here
Anonymous
Like create arr[10]
Ritu Raj
Use array as index...
Array as index??
Anonymous
Array as index??
U have to all the number 0-9?? Or just check only contain numbers??
Pavel
Using STL
You can use find_first_of with "0123456789" and check that result is not std::string::npos http://www.cplusplus.com/reference/string/string/find_first_of/
Pavel
Ah, wait
Pavel
std::string::find_first_not_of in this case
Anonymous
#ot
William
Hello Can someone help me in this hence am beginner in C++ Here is the question Write a programme to solve for Z if A=10,B=5 For A<B Z=A/B Else Z=B/A
Ritu Raj
Is there other alternative
If you totally new then you should first practice very easy questions to become familiar with Syntax. Once you done with Syntax try different types of questions.
Ritu Raj
Is there other alternative
GeeksforGeeks, Hackerearth One more thing make sure you practice at least 3-4 programs a day, and also try different types of question.
Anonymous
when you make a pointer , you are creating a variable that points to the memory address of another variable right ? the pointer itself lives in the stack ?
Anonymous
Yes, the pointer itself lives in a stack
Anonymous
A pointer points to some memory It's not a "variable"
Anonymous
It's just stores some number that represents an address in RAM
Anonymous
It's just stores some number that represents an address in RAM
what if it points to a function that allocates memory on the heap
Anonymous
Anonymous
node* create(char *question) { node *n = malloc(sizeof(node)); n->question = strdup(question); n->no = NULL; n->yes = NULL; return n; }
Anonymous
typedef struct node { char *question; struct node *no; struct node *yes; } node;
Anonymous
What's the question?
Anonymous
Anonymous
What's the question?
just trying to understand pointers better and why my text book uses it in certain cases , for example you see above there is a node structure with two recursive members , the create function is also a pointer, and is used to create new structures
Anonymous
why is this function a pointer ?
Anonymous
why is this function a pointer ?
It returns one The function is not a pointer
Anonymous
It returns one The function is not a pointer
so if i declared it as node create() instead of node *create() would it operate the same way?
Alexander
Do stdlib.h/stdio.h do some kind of initialization of IO? I need to get rid of these includes and define all functions/structs manually, but fseek() crashes once I remove the includes.
Alexander
well you need them if you don't want "undefined function" warnings
Alexander
and once I remove them, it crashes right away