Francisco
I'm pretty sure there's a function in the STL that does exactly that
Anonymous
okay thank you)
Francisco
okay thank you)
Also, don't use macros as inline functions. It can bit you at some point
914
guys, is there a way to count the length of a string which contain some non-english words
Zel
If they are still char symbols this does not change the way length is calculated.
Zel
If unicode they need to done same as any other unicode
914
they are mixed
914
like " aα? " total length is 6
Dima
Dima
I don’t remember, but you can check ascii code of a character in a range
Dima
There’s ascii table for that
Dima
But I may be incorrect
AmR
Any one free for helping me about cmake ?
914
string..
Renan
In other words: We are always confined to a limit. 😅
Renan
Welcome, @Y01100000!
10kkev
Thanks
AmR
Any one helping me to use lib please ?
Anonymous
Do anyone have book for STL
Anonymous
What is the best for beginners to learn networking with c/c++
Đỗ
i think u can try to roger some minor problem: simle chat via socket, UDP, TCP
Đỗ
after that move forward advanced problem: such as p2p network, online game like card game
YK Y
25,4
Anonymous
Anonymous
can anyone explain me getchar and putchar
Anonymous
Why it behaves in this way
Anonymous
As getchar takes only one character at a time and putchar display a character
Anonymous
Why it is able to take both characters at the same time(one after another) without printing the first character to sreen then taking the other character and then print the 2nd one to the screen
🐢
Thank you so much
URVASHI
🙏
Epem
Guys someone suggest learning source for NUMAL ( C library) for computation would be really heloful
Epem
*helpful
Epem
Or any book, which has written codes for computation using C
Ajay
Just wanted to confirm whether I got it right, ios_base::sync_with_stdio(false); desynchronizes the c and c++ streams which means that now when I use printf and cout in my cpp code, then they will have their own independent buffers and hence the order in which I see the output in my console may differ in many different runs of the code, although the ordering of different printfs will be in the way they occur in the program and same in case of cout statements but there can be a difference in the order of cout and printf output.
Ajay
tie in cpp ensures that cout and cin in c++ occur in the order in which they are written otherwise if I do cin.tie(NULL) and cout.tie(NULL) then if this happens -> first cout then cin in my cpp code then it can happen that the program asks me for input and then prints what it want to (using the cout).
Anonymous
In command
powercfg /l
It will return all power plan GUID
If I want to use C++ call windows API, which one I can do that? (There is a limitation of SYSTEM to use command directly)
I want to get the list first, then get the description each by each.
Alessandro
can i tell a joke?
klimi
Anonymous
hello guys
klimi
Anonymous
i am newbie when it comes to programming
who can help me out in c++😔
klimi
?
వ్లాదమిర్ పుతిన్
Anonymous
q
Anonymous
Ajay
Anonymous
Anonymous
Anonymous
Anonymous
Hi I'm new and I would like to learn very much. I would like to please the administrator adds a robot for English French English. Thank you for good understanding
Anonymous
@RSM15 I know about getchar. Just need to know about The behaviour that instead of taking one character and printing the character (see the code), it takes input at one time only and then prints it
Renan
Renan
Renan
Renan
Nils
Hi, any idea what's wrong with my switch statement:
switch (thiskey) {
case 'w':
if (y != 1)
y--;
;
case 'a':
if (x != 1)
x--;
;
case 's':
if (y != LINES)
y++;
;
case 'd':
if (x != COLUMNS)
x++;
;
default:
continue;
;
}
If thiskey == s both the cases 's' and 'd' are executed :-/
Dima
you forgot to break;
Dima
oh, I mean continue
Dima
case X: continue;
Dima
or it will iterate through all cases
Nils
ahhh. thx
klimi
no from me
Dima
@K11M1 your move
klimi
Vishal
The SOLID design principles to craft C++ software that is easy to maintain, reuse & extend.
http://www.vishalchovatiya.com/open-closed-principle-in-cpp-solid-as-a-rock/
Dima
Dima
@K11M1 now is your move definatelly
Dima
sigh on another side sounds like as hindi name
Dima
lol
Dima
Anonymous
@RSM15 could I pm you? If it's ok with you.
Anonymous
👍
Anonymous
Only English read the rules
Hidd3N
I have book on c++ templates
Chhabi
Chhabi