Anonymous
Aww okay
Anonymous
Try t instead of b
Sai Meghana
isnt that tab?
Anonymous
There is no variable called b
Learn what escape sequences are
Anonymous
Sai Meghana
tab works just fine. tried it
Anonymous
Yeah
Dima
I know dear
You don’t
Dima
Now you do though.
Dima
Anonymous
Ahh aww okay
Anonymous
Happy now
Sai Meghana
code: for(int i=0;i<4;i++) cout<<"now"<<i; cout<<"\b"; output: now0now1now2now3hi
Sai Meghana
It just wouldnt work 😕
Dima
What if you use endl after all?
Sai Meghana
Dima
After everything I mean
Foxner
What are you even trying to achieve?
Foxner
everything separated by space without a trailing space character?
Sai Meghana
yess
Sai Meghana
still the same
Foxner
What about you just add space characters in the loop with a simple condition that checks if it's the last element
Sai Meghana
its a little complicated because i dont know if its the last element while im printing it.
Sai Meghana
and i really want to be able to implement backspace ;_;
Sai Meghana
these are.. but
Foxner
https://stackoverflow.com/questions/5195692/is-there-a-way-to-delete-a-character-that-has-just-been-written-using-console-wr
Foxner
Maybe try this.
Sai Meghana
for(int i=0;i<4;i++) cout<<"now"<<i<<" "; cout<<"\b \b"; cout<<"hi";
Sai Meghana
O/P: now0 now1 now2 now3 hi
Sai Meghana
😕
Foxner
But if not knowing when the sequence is over is a problem, you can store the text in a variable, and only output it in the next iteration. That way, when your sequence is over you still have the last piece of text stored in the variable, and you can print it out without a space.
Foxner
Sai Meghana
What's wrong?
the backspace is supposed to remove the space between now3 and hi
Foxner
the backspace is supposed to remove the space between now3 and hi
Oh, I see. Perhaps your console just doesn't support the backspace control character.
Sai Meghana
that should be it
Sai Meghana
Ive always wondered why getline(cin, name) is used instead of just getline(name)
Dima
because you can specify the input
Dima
not only from console input
Dima
Check the man page.
Could sound kinda sexist-ish
Dima
hahahahahaha
Anonymous
Could sound kinda sexist-ish
Lol not my fault they named it man(ual) page
Dima
yeah 😹😹😹😹
Sai Meghana
Google it
I wasn't really satisfied with what I saw so far .-. but okay
Dima
Anonymous
The classic Linux/computer documenting convention of shortening words to one syllable to describe something typically much longer
Anonymous
Sometimes the lil sentences that result are cute / funny
Anonymous
man help
Dima
man help
I bet feminists will name their computer wo so when they type they’ll see wo>man help
Anonymous
I tremble a little to think of what the really aggressive feminists would think of a computer with Linux
Anonymous
They have a tendancy of associating anything that doesn't give them exactly what they want with an evil patriarchy
Anonymous
What I have to go to a MAN for HELP?
Dima
Yeah same thought
Dima
I am not feminist or whoever tho
Anonymous
"But kind lady, the man is for manual"
Anonymous
Dima
Check the documentation
s/documentation/man
Anonymous
Another unrelated, when I was watching the live adaptation of Alita, it froze to buffer on exactly the frame during the race scene where she jumped and slammed one of her pursuers in the head.
Anonymous
Welcome spooky skellington
Anonymous
❤️
Dima
Dark
hello
Dark
I defined some structur for my C program, now i need to make a global variable of this structure. is it possible ?
Dima
Yea
Dima
everything is possible
Dima
static Struct struct;
Dima
or extern Struct struct; decl in your header file and Struct struct = …. in implementation