No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, i'm building a client-server application using sockets in C. I'm trying to send a structure through a socket, but the values after "deserialization" (the use of htonl-ntohl) come adulterated and i dont know why. Maybe you could help me? Here is the code: Server.c [code=c] #include <stdlib.h> #include <string.h> … | |
i'm with a question related to string comparing...i'm trying to compare two strings (well char pointers in fact :)), im using _stricmp for case insensitive comparison, but even with the conventional strcmp i'm not getting the result i want. [code=cpp] if(_stricmp(value,gen_arr[i])== 0){ file.seekp(-1,ios::end); file.put((i)); file.flush(); file.close(); printf("Editing of field %s … | |
Re:
* Our focus here is on STRINGS since they are arrays of characters. * Write a program that reads a line of text (possibly a sentence therefore you can't use scanf() here), counts the number of words in it, and displays the words. * For our purposes, we define a … | |
Hi, im trying to write some information into a mp3 file. The information i'm trying to introduce into the file must begin 128 bytes from the end of the file, and this block of information is identified by the string "TAG" at that position (128 bytes from the end). After … | |
Hey i have a problem about file copying. I have a source file opened with fstream and a destination file opened with FILE*...im trying to copy a chunk of the source file into the destination (the function receives as parameters the start second on the source file in which we … | |
I'm having a bit o a problem with inheritance. The context is this assignment i have in which we have to read from an mp3 file, extacting the informations within it as well as provide other informations not explicitly contained in it (for instance the total audio time of the … | |
Hey All, i'm doing this project in c++ consisting in reading an mp3 file and extracting the informations within it. Thing is i'm starting to be pissed by this persistent error that stops me from test the code. This error is, as far as my (limited) knowledge goes, caused by … | |
Hey, i'm in a bit of a deadline here, so i need your help. I'm trying to develop an application that, upon selection of an event and its respective "listener" (a button), fires the event name and the current time. Thing is, so i can print the event name i … | |
Created by mistake...closed! |