Anonymous
Hiding the WiFi cable helps
Anonymous
I don't even have to scroll more than 2 pages to have reason to leave again
Dima
> creates port under 1024 and calls it system
BinaryByter
Hiding the WiFi cable helps
thats what you did to the media markt employee?
BinaryByter
mine didnt come back before I left the store
BinaryByter
legend has it that he's still searching
BinaryByter
for the wifi cable
Anonymous
They do not let my get into the story anymore :D
Dima
mine didnt come back before I left the store
lol he just saw that he wouldn’t help a child much
BinaryByter
😂
Anonymous
Yeah, but not for the WiFi cable. I wrote on one of the laptops in word "This shop is shit" and got caught after a friend made a foto... :D
BinaryByter
lol
BinaryByter
😂
BinaryByter
So basically they are like china
BinaryByter
you are allowed to say whatever you want but if you do you won't be allowed to say it here anymore
Anonymous
I have to find the picture. It's old but it was worth it :D :D :D
BinaryByter
😂
Wim
Welcome Ian!
Anonymous
he's still struggling with the captcha
Wim
Its hard, pressing buttons ..
Wim
Nah I'm seriously awaiting him to say or ask anything since everyone is in OT
🐰🐾 سمیه
🐰🐾 سمیه
p and buf are pointers to chars, and values of LINES and MAXLENX are 100. from the malloc argument it seems that 10,000 blocks of pointers to chars are allocated for the purpose. my question is: why bufend, which is supposed to hold the last adress of allocated block, is buf + 200? I think it should be: buf + 10,000 .
Anonymous
well basically he/she's only screwed up the last line? lol
Anonymous
just read over it again closely?
Anonymous
do you see anyone else asking the same? lol
🐰🐾 سمیه
Why don't you say what's wrong?
Anonymous
Calm down huh?
Anonymous
Olli already told you what you're doing wrong?
Anonymous
I ONLY told you to read over it again to find it yourself.......
olli
I did, but didn't find 😶, but will do it again. 👌
One of the "corrected" versions - this should be it, right? quite hard to tell by only 3 lines... https://github.com/zhushh/C_programming_language/blob/master/tail.c#L41
Anonymous
ohhh looks like the spaghetti i had earlier today
olli
I ONLY told you to read over it again to find it yourself.......
I think she did not write the code on her own and wondered whether the code or her understanding is wrong. I think are some kind of questions from the K&R book
olli
it's just one excercise. why there aren't other ones there?
idk, I'm not the author... Furthermore I've never read the K&R book, but there are plenty of files in the repo
olli
what you read?
Mainly https://en.cppreference.com/w/ (apart from standard documents) But I rather write the code and lookup things..
snoden
that's interesting.
Where are you from?
olli
what's standard documents😶
The ISO documents that define the C and C++ language (final drafts, since standards are not free) C: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf C++ http://open-std.org/JTC1/SC22/WG21/docs/papers/2017/n4659.pdf
🐰🐾 سمیه
ok thanx🌹
Anonymous
is that rose for me? 😉
Anonymous
my chat has disappeared lol
It happened with me many times
Anonymous
hello, can i ask something?
Anonymous
what should i learn first?? C or C++?
Anonymous
Anonymous
Be careful😂
what?? why ?
Anonymous
C
okay, why should i learn c first? gimme some reason
Anonymous
How to read the file into list
professor
one question
professor
I write a function called GetDirs that return my drive types HDD , Removable , network drive, etc. I have the logic of if szDrive == DRIVE_FIXED then open and create a simple text on it I am getting struggled at how to open it and copy a file or write on it GetDirs(){ case DRIVE_FIXED: wprintf(L"Drive %s is a hard disk\n", szDrive); break; } #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; if(GetDirs()==DRIVE_FIXED){ open and copy or write a file ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile << "000" << filename; myfile.close(); #open and copy or write a file on HDD } }
Anonymous
Anonymous
hey guy i need c++ programmers
Anonymous
It for a project
olli
hey guy i need c++ programmers
We are not willing to write programs for you. If you get stuck, feel free to ask. Remember to show us what you've done so far.
H̲i̲L̲e̲v̲e̲l̲
It for a project
What's project?
Anonymous
What's project?
It an educational software
H̲i̲L̲e̲v̲e̲l̲
Anonymous
Theme?
Instantaneous connectivity between student and teacher
Anonymous
What about pay?
We can discuss about it inbox
olli
hey guys how can I go to the right way fromt this kind of issue?
Can you provide some working code you have so far? Assuming Win32 you could call GetLogicalDrives() and iterate over all of them, calling GetDriveTypeA() to get the type. If it's DRIVE_FIXED you can try open a file there by prepending the root path (drive letter)
professor
i am not comparing . it's the base I want to be .
professor
I want my drives C, D , A , G from DRIVE_FIXED then if getdirs() == DRIVE_FIXED then write to disk
olli
I want my drives C, D , A , G from DRIVE_FIXED then if getdirs() == DRIVE_FIXED then write to disk
something like this? #include <windows.h> #include <stdio.h> #include <stdlib.h> int main() { DWORD drives = GetLogicalDrives(); char text[] = "Hello World"; char driveLetter[] = "A:\\"; char file[] = "A:\\file.txt"; for (DWORD drive = 1; drive <= drives; drive <<= 0x1U, ++driveLetter[0], ++file[0]) { if (drives & drive && (GetDriveTypeA(driveLetter) == DRIVE_FIXED)) { FILE * fp = fopen(file, "w"); if (!fp) { printf("Could not open file %s\n", file); continue; } fwrite(text, sizeof(text) - 1, 1, fp); fclose(fp); } } }
professor
yeah