BinaryByter
Your statement was too general to be helpfuö ;)
Anonymous
Anonymous
Well, string is fun with C anyway
Anonymous
:D
BinaryByter
YEAAA
BinaryByter
very fun...
BinaryByter
xD
Anonymous
xD
😂
Anonymous
C strings: Hello Mr Conor, How wou5d y0u l1ck 2 j(^jf;a35740-DJ)_98_*^#(D($^)_97)_$&()_(V)($(0=(&_$(_)V$&(_*Y_(SF*_*%Y_*FY(W*Y
itsmanjeet
For string i mainly use Array Never use pointer or allocation sprintf for strcat strcpy etc But when i reuse the same array It give segment fault
itsmanjeet
Anonymous
Eh ehe eh.. still no malloc or any sort of allocation
itsmanjeet
Eh ehe eh.. still no malloc or any sort of allocation
😔😞 Sry i am still a learner never used malloc much And never for string
Anonymous
Yes
There you go: https://www.tutorialspoint.com/c_standard_library/c_function_malloc.htm
Luis José
man string[] is not same as char *string
What are those differences?
🐰🐾 سمیه
Hi, Would you please explain this part?
Anonymous
What are those differences?
Not really different. I meant generally one use the expression (*string)++ to change the value that ptr points to when string is a pointer and not an array..
BinaryByter
What are those differences?
The compiler wievs them as two types + with [] you can define a size to be preallocated
Luis José
Thanks guys!!
MᏫᎻᎯᎷᎷᎬᎠ
.
Ибраги́м
..
Ludovic 'Archivist'
if we cant have goto, we lose the ability to create state automata
That is false, in fact the advised way to make a state automata is to hold an accessor to the function of the current state and call it
klimi
Welcome
Dima
top kek
Anonymous
This compiles , but when I Type in the inputs it not working
Ибраги́м
Use this link instead: https://pastebin.com/i7ad1r0M
Ибраги́м
USe pastebin for long codes
Anonymous
https://pastebin.com/i7ad1r0M
Ибраги́м
Thank you!
Ибраги́м
This compiles , but when I Type in the inputs it not working
Ok, there lots of problems with thy code.
Ибраги́м
Can you specify
Oh yeah I will.
Anonymous
Oh yeah I will.
You would also need a text file in the same directory with the same name
Ибраги́м
1. char inputfunction(); void outputloop(char x); void mainloop(); is NOT needed, just define and use them. 2. std::endl is evil in this case, learn more here: - https://www.youtube.com/watch?v=GMqQOEZYVJQ - https://www.youtube.com/watch?v=6WeEMlmrfOI 3. Your conditional statements are another source of nemesis. if(x = 'A') should be if(x == 'A') and same goes for the rest.
Ибраги́м
You thought wrong
Ибраги́м
4. outputloop('Q'); break; theirchoice = inputfunction(); This will never be executed 'cos u have a break before that already in: case 4: outputloop('D'); break;
Ибраги́м
Ибраги́м
O yea, suppose to be case 5
Next time turn on all warnings... in Debug mode so you can hear all your bell and whistles
Anonymous
I compiled again but same issue
Kat
Be on alert for new joins with girl profile pics
Kat
Someone spamming gore across a lot of groups
Dima
detected
Kat
Attractive girl tho
Dima
wtf.. -.-
Ибраги́м
I compiled again but same issue
I didn't say I'm gonna fix all your issues. I fixed the ones that will bite you hard now or in near future.
Ибраги́м
Anonymous
Attractive girl tho
So no ugly ones
Ибраги́м
Y'all going to the VOID
Kat
Girls that look like the first result for pretty girl
Kat
Heavily airbrushed
Ибраги́м
I see what you mean
TBH, I didn't even run it before and after my fixes haha
Anonymous
TBH, I didn't even run it before and after my fixes haha
Yea it compiles but when I run it , same issue
Ибраги́м
Heavily airbrushed
Seems the author is confessing already
Anonymous
But useful tips
Ибраги́м
Yea it compiles but when I run it , same issue
U didn't show text file: "longlonglong.txt"
Ибраги́м
Heavily airbrushed
Yo completed your "syslog" ?
Kat
Oh yah
Kat
I wrote a better one in fancy snake language tho </shame>
Ибраги́м
Oh yah
That was fast; U always have hands on keybored ?
Kat
Pretty much
Anonymous
Ибраги́м
You're using Mac. Bye! I don't like Apple fans.
Dima
^
Ибраги́м