S.
Not get it. What do you want?
Talula
Okay you have the file now what do you wanna do with it?
Saurabh
Question is this . Only that i know
Dima
it is not a question
S.
😂 Just can't type two simple sentences down?
Talula
Question is this . Only that i know
Frankly speaking it's not allowed for anyone to post school tasks here but I'l help you out... let me check the format of ppm file.
Saurabh
Thanks
Saurabh
For doing this
S.
Actually I don't get the meaning of that "dump"
S.
it sounds dumb
Dima
dumb questions
Dima
where do you want to dump your stuff
Saurabh
write a small program to dump completely black image and then change that program to write complete black image
Saurabh
Dump in a buffer
Dima
wtf
Dima
you said two things which are completelly the same
S.
where is the buffer
Talula
Your program is fine.
Talula
It should work
Saurabh
Dima
uh man come on
Dima
you can’t even explain what you need
Dima
you want to display it?
Talula
Yeah that was my question, do you want to display it?
Saurabh
Yes
S.
void dump() {
system("some_pic_viewer first.ppm");
}
Talula
Duhh... dump could mean lot more things, it could mean dump in memory, dumb in a file, dumb to printer, dump to serial port, dump to internet.
Talula
Dima
inb4 download some_pic_viewer.exe without registration pls link
Saurabh
S.
GUI is the least interesting part for programming in c
BinaryByter
Bruno
new one http://c2lang.org/
Dima
Imagine C11 with templates
Anonymous
S.
interesting though
S.
S.
holyshit
S.
C# with asm ...(?
Russkiy
Russkiy
i got this yesterday which made me think about you super coder guys... here is the code
Russkiy
#include <iostream>
int main() {
int a, b;
int sum;
std::cout << "scrive un numero" << std::endl;
std::cin >> a;
std::cout << "scrive un altro numero" << std::endl; std::cin >> b;
sum = a + b;
std::cout << "il sultato è " << sum << std::endl;
return 0;
}
Russkiy
#include <iostream>
using namespace std;
int main() {
int a, b;
int sum;
cout << "scrive un numero"<<endl;
cin >> a;
cout << "scrive un altro numero"<<endl;
cin >> b;
sum = a + b;
cout << "il sultato è " << sum <<endl;
return 0;
}
S.
Russkiy
so you mean to tell me the "right" way is the first one?
Russkiy
how so? all i see is waste of time
S.
Generally it can avoid unexpected error when you're writing massive projects
Russkiy
and extra code
Russkiy
when just writing 1 line of code can take care of everything
S.
For such simple example code, I prefer the using namespace thing
Russkiy
so you too dont use namespace?
S.
In C++ Primer, Stanley Lippman said it's arguing between coders for a long time
Russkiy
umm ok
🍂
Can you help me
Russkiy
Mat
Mat
That is the best one in my opinion
Mat
🍂
🍂
Idk finish this
Talula
Are we slaves now?
Mihail
oh yeah how ?
By not actually using it as a namespace, maybe?
Mihail
Mihail
Look at this btw
Prathamesh
Yup.😊
Mat
I can't see points 2 3 4 5
Prathamesh
Prathamesh
Can anyone help me to write a program??
Dima
It’s easy
Dima
You can do it
Mat
Mat
I can't see points 2 3 4 5
Dima
Please use code formatting or text sharing service
Dima
CONIO
Dima
wtf
Dima
No, don’t code anymore
Talula
Is there any room where I can chat about programming but not on topic?