C.
i figure learning a manual memory management language will help me on the long run
One good thing about low level: other languages are easier to learn later
Anonymous
Oh bro ... Why
https://www.algoexpert.io/product
C.
try the techlead
edx Coursera Udemy Udacity They have some free courses
C.
And there are lots of books too
Dominic
Kk
Anonymous
char someString[50]; puts("what is your favorite color"); scanf("%49s",someString); printf("%s is my favorite color\n",someString);
Anonymous
this works like a charm @DrakkonMaster
Anonymous
but fgets requires a for loop
Anonymous
so i am assuming you only use it for specific use cases
Anonymous
i got go to work now ,
Anonymous
dale
Anonymous
thanks for the help guys
Anonymous
laters
Wim
C++ - is a language of Gods
Thats the most moronic statement ever
Anonymous
c++ 11 and newer maybe
Anonymous
whassup t man
C.
this works like a charm @DrakkonMaster
Needing, just send a message
Stay Forward
Hi there, does anyone know how the ESC sequence ends?
Dima
Dima
Lol
Dima
Weird
Anonymous
😅
Burhan
I am getting this error
Burhan
??
Burhan
Artöm
Remove ; after if
Artöm
And get some normal editor and compiler
Burhan
Ok thankyou
Burhan
It worked....🙂
Jack
.
Mat
ReadTheRules
klimi
Why the fuck did you pm me
klimi
Do you think I am your personal assistant?
Stay Forward
Like ANSI ?
No, I asked about ESC[?1049h like sequences. Thank you, I already got information from vt100 site
klimi
ANSI starts with ESC sequence tho
klimi
https://en.m.wikipedia.org/wiki/ANSI_escape_code
Daniele°
Use ncurses
Stay Forward
Dudes, ty, I wrote about vt100 site
klimi
No problem
Stay Forward
Use ncurses
My task was removing this sequences from strings (e.g. colored output)
Stay Forward
From openpty - forked - execed shell
Daniele°
From openpty - forked - execed shell
You Need to parse escape, for examples with libvte
Stay Forward
I used regex
Daniele°
I used regex
bad choice
Daniele°
You have two different output with: ESC[?1049h and ESC pause 250ms [?1049h
Daniele°
With regex can't check time
klimi
\x1B # ESC [@-_] # 7-bit C1 Fe [0-?]* # Parameter bytes [ -/]* # Intermediate bytes [@-~] # Final byte
Daniele°
The output without escapes can be broken
Daniele°
You Need to use Shell without escapes if you don't want parse
Jhagrut
Jhagrut
Jhagrut
int main() { int taxp, tipp, itotal; float ftotal, mc, tip, tax; scanf("%f%d%d", &mc, &tipp, &taxp); tip=mc*tipp/100; tax=mc*taxp/100; ftotal=mc+tip+tax; itotal = ftotal; printf("%d\n", itotal); return 0; } what is wrong
many
What are the recommended ways to do periodic tasks? A sleeping separate thread? Using master slave model? How do you guys handle different thread states?
C.
Sir any update
Sorry, man. I was asleep. Gonna look about it rn
Yatish
Using turbo c++ in 2019 (~2020) Press F to pay respects
Jhagrut
Have you rounded your cost correctly? As in, instead of using itotal, have you tried cieling or ground?
no sir, have'nt studied them yet and don't know how to use them
Pavel
Institutions where?
My guess, in India
C.
My guess, in India
You're right.
Sins
But I use DevC++
C.
tyvm sir for replying
Google gets or getline in c
Deleted Account
Yatish
Majority of institutions use it
Not really, it's mostly used in schools, and very few ones. Ubuntu is way to go now.