Artöm
Dont promote yourself
Dima
Dudka help
Talula
Artöm
Talula
If something is declared in main and if the main ends it'll be killed anyways.
Artöm
class C { };
struct S { };
int main() {
auto* pc = new C;
auto* ps = new S;
delete pc;
delete ps;
}
No difference
Khan
#include <stdio.h>
int menghitungCelcius(int celcius,int reamur,int kelvin);
int main(){
int celcius,reamur,kelvin;
printf("Masukkan derajat suhu CELCIUS yang akan dikonversi: ");
scanf("%d", &celcius);
reamur,kelvin = menghitungCelcius(celcius,reamur,kelvin);
printf("KONFERSI suhu: \nReamur: %d \nKelvin: %d",reamur,kelvin);
}
int menghitungCelcius(int celcius,int reamur,int kelvin){
reamur = celcius*4/5;
kelvin = celcius + 273;
void();
}
i have problem here,the result of reamur is eror,do you know how to call 2 function ?
Artöm
#include <stdio.h>
int menghitungCelcius(int celcius,int reamur,int kelvin);
int main(){
int celcius,reamur,kelvin;
printf("Masukkan derajat suhu CELCIUS yang akan dikonversi: ");
scanf("%d", &celcius);
reamur,kelvin = menghitungCelcius(celcius,reamur,kelvin);
printf("KONFERSI suhu: \nReamur: %d \nKelvin: %d",reamur,kelvin);
}
int menghitungCelcius(int celcius,int reamur,int kelvin){
reamur = celcius*4/5;
kelvin = celcius + 273;
void();
}
i have problem here,the result of reamur is eror,do you know how to call 2 function ?
Read some book
Artöm
You wont learn a language the way youre trying
Artöm
You need to understand something at least, like how to call functions
Siddharth Sahoo
Anyone from India preparing for cracking big 4 company interview for SDE role ?
Or preparing for competitive programming ?
Lionel
Siddharth Sahoo
Lionel
I'll DM you
klimi
Ilya
Ilya
Dima
Siddharth Sahoo
Competitive programming is done in C++. Right ?? So how come I am talking any offtopic ??
Anonymous
klimi
Siddharth Sahoo
If it was not a appropriate questions to ask in this channel then why other guy is answering me. He could have said it like it is a offtopic questions.
Lionel
That's why I personally messaged you dude😅 relax
Anonymous
Hi
Anonymous
Thanx
Anonymous
which code editor is best in writing,compiling and running C code???
Anonymous
Ive used VS code and it doesnt give an output
Anonymous
please help
Dima
Dima
CLion, CodeLite, CodeBlocks
Dima
AppCoda, Xcode
Anonymous
Ибраги́м
https://www.reddit.com/r/cpp/comments/d9t9f6/working_with_developers_who_have_no_knowledge_of/
Ибраги́м
I just left my job today as the only C/C++ cross platform SDK developer in the company, after having a hard time convincing native mobile developers why they shouldn't load everything from database to memory at app startup when only less than 1% of the data loaded into memory will be used. A lot of them don't have deep understanding of system architecture and memory management. A mobile developer keeps escalating my API design to VP of tech, in afraid of me taking away his work. However, even VP of tech doesn't have it. It made it hard for me to design a scalable and maintainable system for the product I worked on.
Ибраги́м
Top:
go back to the company and offer them a consulting contract at triple your old salary to tell them how to fix things. companies don't listen to their staff for process related improvements. staff are just plugged in to a "task delivery" role. But consultants on the other hand are specifically hired to tell the company how to do things better. since you already know, be the guy. make the money. and laugh that you now have a new and potentially more successful career ahead of you.
Ибраги́м
This is a gem!
klimi
no, i will just warn you for that
Dima
Is it a paid book?
Sid Sun
Anonymous
Wap to print all possible sequence of number
Artöm
klimi
klimi
it seems that indians put it all over the internet
Anonymous
Anonymous
Hi
Anonymous
How to code like Google translation like app . Because I want to own language translate in English.please help me
Anonymous
insert all the priority queue element into vector in cpp in one go while declaring a vector
Anonymous
Is there anything like lower_bound and upper_bound in priority_queue in cpp
klimi
Anonymous
klimi
What...
what projects have you done in the past?
Ghost🔥
Does anyone have experience in using dlib or mlpack particularly in implementation of kernels methods (C++ ML)
Dima
Anonymous
what is the significants of “ argc -= optind;
argv += optind; “ when making command line options in C
Artöm
Anonymous
None
so it is not needed?
Artöm
Silly autogen maybe?
Anonymous
what does it do exactly
Anonymous
klimi
Mukulp01s
Interested in learning affliate marketing
Artöm
Artöm
No clue why code you showed came into life
Artöm
This is meaningless in C
Artöm
No volatile io regs, no op overload
Anonymous
i created this program to use command line options to convert temp. from Fran to Cel or vise versa
my question is how do i make it take both options at once
./TempConvert -f 100 or ./TempConvert -c 100 works
but i want to do something like ./TempConvert -f 100 -c 25
Anonymous
https://pastebin.com/6aLdFt1u
klimi
check how much you have and then split the logic
klimi
im going to bed
Mat
Cel = (int)Cel;
Cel = 0;
What's the point of this
Anonymous
Герхард
Mat
Mat
Just init them with 0
Герхард
Mat
Also this is useless
Cel = (int)Cel;
Anonymous
Mat
Cel isn't even initialized, so you're saving a random float casted to int inside the same variable
Anonymous
Anonymous
when you printf it you will see it has a value of 0.000 for some reason