Anonymous
Hubert
#googleit
Astral
Astral
I got a book
Astral
C the programming language 2nd edition by dennis and brian.....
Astral
There is also a pearson Publishing of this book
Astral
Will they change something?
Nils
Read the rules, there is your answer
klimi
Cmd
Anonymous
C the programming language 2nd edition by dennis and brian.....
That's a pretty old resource. Latest well supported standard is ISO 9899:1999, and latest freely available draft of that standard is here: http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1256.pdf
Noor
suggestion c++ ightweight library (no openframework or cinder) or wrapper for 2d drawing and please no pure c. im scared
Anonymous
Whats the change?
read starting pages
Astral
read starting pages
Thats a new standard?
Artöm
Thats C99
Nils
I have seen people using following C++ syntax... if (var1 == var2) cout << "bla" << endl; cin > blub; Is that correct syntax?
Artöm
cin >> blub;, otherwise its correct I think
Nils
cin >> blub;, otherwise its correct I think
I always thought {} are nearcessy...
Anonymous
But yeah that's correct except for Artöm me tioned
Anonymous
I always thought {} are nearcessy...
Not if there's just 1 line in the block
Nils
Ah.
Pasolino 🛰
I have seen people using following C++ syntax... if (var1 == var2) cout << "bla" << endl; cin > blub; Is that correct syntax?
When there is only a if, and not else if or else or there is only an instruction for the if, the curly brackets aren't necessary, the error is cin>>blub
Nils
Great thx
Nils
Has somebody an idea, what .s files are?
NXiss7
Assembly files.
NXiss7
.S files
Nils
Assembly files.
Okay, how do I compile them? 🤔
NXiss7
You don't 😄😄😄😁
Nils
Uhm, then how to run/execute them?
NXiss7
Where did you find it?
Nils
Where did you find it?
On a github repo
Hubert
you need link them instead of compile 😁
NXiss7
Uhm, then how to run/execute them?
You compile then link. I was joking.
Nils
I am confused 🤔
NXiss7
you need link them instead of compile 😁
Nope, it needs to compiled too into machine code, just one step closer. 😂
NXiss7
On a github repo
Send the link
Nils
Okay.
Nils
Just noticed it got deleted in a recent commit 😅
NXiss7
😄
Anonymous
Hi. As in the photo, I've successfully compiled a file, but can't run the program with those commands. How should I do so?
Anonymous
Oh shit
Anonymous
hOw to delete this?
Anonymous
help
Anonymous
hOw to delete this?
Tap on the the photo, then select delete
Anonymous
thanks
Anonymous
You're welcome
Anonymous
Does this group have memebers who are in class 12 ?
Anonymous
I don't think so
Anonymous
We have computer science exam on 21st and the syllabus is based on c++
Hubert
just put question about c/c++ and some one will help you to answer it
Hubert
Would you please answer mine?
did you try to check the 6.1 file if it was exist after compile?
Anonymous
In the target directory, I have a 6.1.c file, not a 6.1
Hubert
let check the output file after compile
Luca
try gcc 6.1.c -o 6.1 @imHubert
Hubert
try gcc 6.1.c -o 6.1 @imHubert
yes, command should like this
Nils
What is wrong with this: write(1, "hi\n", 3)?
Asdew
Solved
What is wrong with it?
Nils
I did not import unistd.h
Anonymous
try gcc 6.1.c -o 6.1 @imHubert
Thanks. I used to compile programs by - g symbols to make it debuggable. Now it won't work. What am I to do?
Anonymous
Let me show you
Anonymous
Problem solved, thanks🌷
NXiss7
Hi. As in the photo, I've successfully compiled a file, but can't run the program with those commands. How should I do so?
You tell compiler to output to a file named "output" (by using -o). So your exe's name is "output".
Anonymous
Which are more efficient vectors or array?
NXiss7
Depends on needs
Anonymous
Why don't we just use vectors?
NXiss7
Raw C arrays are "thinner" of course.
NXiss7
Why don't we just use vectors?
You don't always need it
Anonymous
You don't always need it
Instead of array I means
NXiss7
std::array or C arrays?
Luca
std::array or C arrays?
https://stackoverflow.com/questions/30263303/stdarray-vs-array-performance
YVEF
Hi guys. what I need to do if my precompile header (pch.h) located upper my current file. if i write like this: #include "../pch.h" i am getting the error, due I not included this file. thanks
Luca
try moving your header file into your sorgent file directory than removing the / at the start when you include it in the code
Dima
try to explicitly specify header paths