Anonymous
Does anyone know chat for professional CPP devs? Send me in PM pls
there's some of that in Discord, not "professional" but there's no one there who invites you to Islam (😂🔫) or asks school questions.
Ilya
I know they have chat in telegram but i dont have a link :C
Anonymous
I know they have chat in telegram but i dont have a link :C
pls send me that too if you find it. thanks.
Ilya
Ok. sure
Hermann
Why if I use std hex all value are printed in hex? ?
Ammar
This is an extension of GCC if I recall correctly. By the way: the compiler will do this for you. Not considering special cases, the compiler knows better when to use a register. If you want to force the register, follow the message I'm replying to
Yes, it is an extension. And of course, I trust in my compiler to generate what ever registers it wants for my program. The above feature is only for special case. In GCC, the register keyword is useful (not in this case though) if you need to pass data through a specific register to GCC's extended inline assembly that doesn't have a specific register constraint associated with it (anything outside of RAX, RBX, RCX, RDX, RSI, RDI). For example, if you want to perform syscall from inline assembly, you don't have constraints for R8, R9, and R10. So you need to use register keyword and use r constraint for that.
Ammar
Something like this: https://godbolt.org/z/xe7Wa6vjM
Anonymous
why we need to use for loop in an array?
Anonymous
why we need to use for loop in an array?
You've read about a ranged for loop I assume ?
Anonymous
why we need to use for loop in an array?
I haven't really read much but it's effective
Anonymous
why we need to use for loop in an array?
You can use it to iterate and print out each element of an array. I mean a normal one. It's something like this int array[ ] = { 1 , 2 , 3 } ; for ( int i : array ) { cout << i << endl ; }
Anonymous
why we need to use for loop in an array?
You can use it to iterate and print out each element of an array. I mean a normal one. It's something like this int array[ ] = { 1 , 2 , 3 } ; for ( int i : array ) { cout << i << endl ; }
Anonymous
You copy each element of the array per iteration into I i then you print out
Anonymous
Though it's best to use for( int &i: array) for minimal use of memory
Anonymous
Hi
Anonymous
I want to learn C++ program from basic
Anonymous
Roxifλsz 🇱🇹
/warn cuckbook post
Raj
can any one tell me best free source for c programming
Talula
can any one tell me best free source for c programming
https://www.onlinegdb.com/online_c++_compiler
Raj
i wanna learn c programming
Anonymous
Ask @Malumore
Talula
i wanna learn c programming
In a chat room it is not possible, try books, videos and practice.
Raj
In a chat room it is not possible, try books, videos and practice.
can you prefer me drive link or mega link of c programming paid courses for free
Hermann
why if I print only one value in hex, all the other values are printed in hex?
Anonymous
Show the code
Hermann
https://pastebin.com/JkBXg1Ad
Anonymous
Well std::hex applies for the all usages
Hermann
why?
Ilya
Easy answer. Imagine that you have a lot of std::cout's. You dont want to write std::hex always. It is easier to turn it off when you need. Complicated answer. You are modifying std::cout object and it holds changes. You can also create your own object for output (see std::ostream). You can also use C-style printf() but it is not cpp-way
Hermann
👍🏿👍🏿
Anonymous
why if I print only one value in hex, all the other values are printed in hex?
Be aware that hexadecimal is merely a representation. The number 15 is the same thing as F. The number is the same in every notation. You only need to chose how to represent it. In C++ there are also function bindings. If you need a specific behavior, you can bind a function with a parameter. For example: if I have a generic power function, I can create a shortcut for powers of 2 and 3. pow(x,y) can be bound in powsq(number, 2)
Dima
@roxifas something for you
Roxifλsz 🇱🇹
/warn it's called hyundai, not hundai
winter soldier
hi all
winter soldier
need help in implementing DFS
winter soldier
using vector<int> adj[V];
winter soldier
for implementing adjacency list..problem is that what if value of node is more than number of vertices
winter soldier
void addEdge(vector<int> adj[], int u, int v) { adj[u].push_back(v); adj[v].push_back(u); }
winter soldier
in this case we cannot add edges using above method
winter soldier
any suggestions..Thanks
Anonymous
/get cppbookguide
Anonymous
/get ide
Tamah
H
Anonymous
How to draw "A" with two for statement
Anonymous
imagine that you have a 10x10 grid and you need to draw the letter A in it with an iterative loop
Amrith
Is there a python group too?
Anonymous
Is there a python group too?
just use the telegram global search feature.
Amrith
I am trying to learn concepts like stl, oops, and more advanced and modern cpp. What order or topics should i cover to completely cover cpp?
MᏫᎻᎯᎷᎷᎬᎠ
I am trying to learn concepts like stl, oops, and more advanced and modern cpp. What order or topics should i cover to completely cover cpp?
Learn oop first since it's a must for a C++ programmer After that you need to dig into some extent to metaprogramming/template which will give you the essential topics you need to go to stl algorithms/containers, topics like (abstraction, instantiation, compile-time programming...etc) After that return again to OOP since there are concepts that needs to be mastered, like recursive inheritance After that go to modern C++, likr how C++17 changed the way you write templates and so on Then you'll get back on the track with C++20 and how it improved a lot of concepts in important parts of the language
[Gaal wase bilaa cashuur ]?_ 2 grals
😊
MᏫᎻᎯᎷᎷᎬᎠ
Yw
MᏫᎻᎯᎷᎷᎬᎠ
Can I report for DMing a non-admin user without permission?
MᏫᎻᎯᎷᎷᎬᎠ
Send a screenshot to me
Okay When It happens I will
Anonymous
Okay When It happens I will
Lol I thought it already happened
MᏫᎻᎯᎷᎷᎬᎠ
Lol I thought it already happened
Yeah it had a lot But not recently
Hariyana Grande
what is "-WALL" mean?
Hariyana Grande
i tried
Hariyana Grande
but result showing random thing
Nameful
did you search for "-wall"?
Hariyana Grande
yes
Anonymous
but result showing random thing
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options
Anonymous
Learn to Google
Hariyana Grande
shows you warnings
what warning? i just wanted to know what -wall is