S.
And Dump of file hello2.obj File Type: COFF OBJECT COFF SYMBOL TABLE 000 01035E92 ABS notype Static | @comp.id 001 00000010 ABS notype Static | @feat.00 002 00000000 SECT1 notype Static | .text$mn Section length 81, #relocs 4, #linenums 0, checksum 0 004 00000000 SECT2 notype Static | .data Section length E, #relocs 0, #linenums 0, checksum 0 006 00000000 SECT3 notype Static | .debug$S Section length 70, #relocs 0, #linenums 0, checksum 0 008 00000000 SECT4 notype Static | .drectve Section length 28, #relocs 0, #linenums 0, checksum 0 00A 00000000 UNDEF notype External | ___acrt_iob_func 00B 00000000 UNDEF notype External | ___stdio_common_vfprintf 00C 00000008 UNDEF notype External | ?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 (`__local_stdio_printf_options'::`2'::_OptionsStorage) 00D 00000000 SECT2 notype Static | $SG4502 00E 00000000 SECT1 notype () External | _main 00F 00000014 SECT1 notype () External | _printf 010 0000004E SECT1 notype () External | __vfprintf_l 011 00000077 SECT1 notype () External | ___local_stdio_printf_options
Anonymous
How it can possible to return int type of data by defining function as char type ?
You can cast int to char, a char can be used as a number too. The problem is, int is larger than char, and if your int gets too huge you'll overrun the limit of char.
Anonymous
In your case this doesn't happen. It will compile, no problem - but it's unclean und depending on the function unsafe
DP
Hii
DP
Can you know any hacking group in telegram
DP
I love hacking
Dima
DP
BinaryByter
I love hacking
I have installed kali too
DP
Sent me any hacking group
Dima
lmao
Dima
#ot
Benedetto Califfo
Anonymous
Hah, noobs, I installed kali twice on the same Laptop!
Anonymous
And now I'll hack my parents wifi. See ya later :^)
Benedetto Califfo
How?
Benedetto Califfo
Have kali wifi connection?
Nicola
yesterday I solved the problem of exchanging the positions of a string with random_shuffle but now our teacher has asked to save the initial position, how can I do?
Anonymous
You make a copy of the string
Anonymous
Hi everyone!
Anonymous
Why Linux Mint can't compile this simple program?!!
Anonymous
Any idea to solve this problem?
Anonymous
Is the libc installed?
Anonymous
Is the libc installed?
You told about gcc? Yes, of course...
Anonymous
Well, it doesn't seem so. What does sudo apt install libc-dev output?
Anonymous
You told about gcc? Yes, of course...
I talk about the libc not gcc
Ariana
how does things work without libc even
JCodePeace
I have a question. I wanna install the OpenGL library on ArchLinux, but, I can't found out any libraries with pacman or yay. I've tryed freeglut3-devel, but I've got "target not found". Are there any ways to install it on ArchLinux?
Anonymous
Ok ok I solved shelly
Anonymous
Yes, installing libc all things go in right way
Anonymous
Thanks
Anonymous
how does things work without libc even
I think ubuntu and stuff install only the lib not the headers by default, dunno why
Anonymous
Thanks
You're welcome :)
JCodePeace
https://www.archlinux.org/packages/extra/x86_64/freeglut/
Yes, I've saw it, but I got the following error
Armel
Hello the familly pleasei Want à good programming book Who talk about data structure an pointer in c please
Vitaliy ◀️TriΔng3l▶️
Wouldn't it be the same as passing a string literal as an argument?
Anonymous
lel, I imagine someone really uses std::vector<char> instead of std::string
Anonymous
I know.
Ariana
are there actly books on data structures, seem kinda redundant
olli
lel, I imagine someone really uses std::vector<char> instead of std::string
For most implementation moving from is std::vector<char> is actually more efficient :D
Anonymous
For most implementation moving from is std::vector<char> is actually more efficient :D
Moving yeah, but the extra implementation you need for using std::vector<char> like std::string is probably more inefficient
Anonymous
Also, I would prefer some inefficiency at moving over shitty code
olli
So can std::string although it shouldn't ...
Anonymous
Anonymous
what's my problem guys ?
Anonymous
error
Anonymous
JCodePeace
You need to add to the method name Cow::printThisPointer()
olli
Your constructor is private and expects an argument, so you should pass one when instantiating your class
Anonymous
the point is when I remove this
Anonymous
Anonymous
it works fine
JCodePeace
Maybe dot rather than the arrow?
olli
Yes, because if you do not define a custom constructor the empty one is available by default
Dima
ban
Anonymous
well how to define a custom constructor ?(
Dima
~TopKek() { }
JCodePeace
olli
well how to define a custom constructor ?(
You did it, although it should probably be public
olli
well how to define a custom constructor ?(
Cow(int ...) is a constructor.
Anonymous
You did it, although it should probably be public
so I need to just pu t it under public ?
Anonymous
??
olli
so I need to just pu t it under public ?
Yes, and when creating your cows you should pass an integer, e.g. Cow George(5); because your constructor expects it
olli
Or add the empty one Cow(){}
BinaryByter
odd exercise to make a cow's constructor argument the amount of heartbeats its heart can manage before dying
Anonymous
I just followed this short tutorial https://www.youtube.com/watch?v=I2-RmR7JRdc
BinaryByter
he surely has defined std::ostream& operator« (std::ostream& os, const Cow& c)
BinaryByter
somewhere
Anonymous
in that tutorial the constructor is private if Im not mistaken
BinaryByter
in that tutorial the constructor is private if Im not mistaken
it never is, unless you plan on making a singleton
BinaryByter
don't plan on making one