Marián
while(file.peek() != EOF)?
Suka
while(file.peek() != EOF)?
afaik you need to re-set the address of the stream because you already hit the end address when using while(file.peek()....) perhaps by using file.seekg (0, fiel.beg); cmiiw
TMK
Hi guys I have a task I'm struggling to do it who can help please
TMK
Where can I share here
сумбула
int i = 42; int *p1 = &i; *p1 = *p1 * *p1;
сумбула
int i = 42; int *p1 = &i; *p1 = *p1 * *p1;
can anyone explain me the third line?
Mar!o
сумбула
@pinsrq got it thanks)
Marián
no suitable conversion function from "lambda []void (Table *table, char *data, int size)->void" to "void (*)(Table *, char *, int)" exists why can’t i convert this lol?
Marián
i mean, both are lambdas that take 3 same params + returns void, one of them uses ref
Ludovic 'Archivist'
no suitable conversion function from "lambda []void (Table *table, char *data, int size)->void" to "void (*)(Table *, char *, int)" exists why can’t i convert this lol?
Lambdas and function pointers are not the same. You can convert a captureless lambda into a function pointer with a unary plus operator
X
hi!
X
anyone has C lesson in university? so we can share our notes with each other im really curious about foreign universities and what/how they studied about C 🙏
X
I am sure C is the same everywhere
of course! i just wanna see how other teachers teach C and what/how notes did you take. Turkish education system sucks
X
I cannot share link yet, but you can search for GNU C tutorial
Im not looking for tutorials actually, just wanna see university notes :D
Anonymous
Im not looking for tutorials actually, just wanna see university notes :D
I passed my C exam as 7/10 and i don't remember taking notes, only reading references and man pages. What should that notes contain in your opinion ?
coolthought
There are quite a number of books. I’m not sure if I’m still at beginner or intermediate. The books are not cheap. I see a list of general books. Any recommended one to get if you can only afford one?
Anonymous
Hii
Anonymous
Hello
Anonymous
Any one can teach me c++
Anonymous
Hii
/warn PMing
Anonymous
You should make them understand the concept rather than being toxic and telling them to do it themselves
Anonymous
If you can't do that then somebody else in the group will
Anonymous
Please guys. How can I install and use the graphics library in dev c++
Anonymous
$200/hour
me of course
Anonymous
can you programe c?
Anonymous
😏
Anonymous
can you programe c?
Freestanding C
Anonymous
c programming language
shlomo
Why the char ptr pointer didn't get an address? Expression: char *ptr; ptr = new (nothrow) char[3]; cout « ptr; Result: ►↓r
Ammar
Anonymous
You're outputing uninitialized array of characters
shlomo
It did
int type is work Expression: int *ptr; ptr = new (nothrow) int[3]; cout « ptr; Result: 0x61fe00
Anonymous
int type is work Expression: int *ptr; ptr = new (nothrow) int[3]; cout « ptr; Result: 0x61fe00
https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2 Read the docs
shlomo
I don't understand what the problem is...
Pavel
I don't understand what the problem is...
cout needs to guess what you trying to output from the type. imagine you print something like this: cout << "hello world"; You probably expect it to output "hello world", not address of this string in memory. To do so, cout for char * type not printing the address that stored in this variable, instead it tries to print the string it points to. In your case your "string" is not initialized, so it's UB. You can do something like static_cast<void*>(ptr) to print just pointer value
'''''''
And they teach shit here
A
Can anyone help me with a design pattern report
Anonymous
everywhere
Ehsan
In computer studies field it depends on you. Even if you are in a garbage college/university you can cope with top studints by yourself without investing much on equipments. Of course if you went to a good university you will understand things better and easier, but not everyone have this privilege unfortunately.
Anonymous
they study HolyC
RIP Terry A Davis
Ehsan
RIP Terry A Davis
He was truly “The Smartest Programmer That Ever Lived” 🙁
Anonymous
lol.may be .
Ehsan
lol.may be .
https://www.youtube.com/watch?v=o48KzPa42_o
Anonymous
https://www.youtube.com/watch?v=o48KzPa42_o
Yeah,He was telling it everytime .
Anonymous
not even close
lol . >> /dev/null
Hermann
does it make sense to have if without body in c ++?
Anonymous
/report
Sidhhartha roy
https://www.linkedin.com/posts/venkat-naidu-4a0066118_career-digital-tcsnqt-activity-6792449633734946816-SI1D Guys your one like. can help me a lot please look into this
Sidhhartha roy
once read.the post and then report
klimi
once read.the post and then report
i am sorry but this is considered promotion and therefore without permission from admins it's forbidden
Sidhhartha roy
i am sorry but this is considered promotion and therefore without permission from admins it's forbidden
hey see the post before coming to conclusions. I am not promoting anything
Anonymous
hey see the post before coming to conclusions. I am not promoting anything
if you want, i think you could post this on the offtopic group, links that you post here should be , of programming related and also should be in a convo with the person that you help or you are getting helped with.