Hi, i would like to sort an array of object by their atribute, this is my testing project, the biggest problem is in compare function
Thanks for help
#include <iostream>
#include...
Type: Posts; User: flegmik
Hi, i would like to sort an array of object by their atribute, this is my testing project, the biggest problem is in compare function
Thanks for help
#include <iostream>
#include...
Thanks, so if I understood it clearly what it does, so for example file has rights set octal 0777 so owner,group,other can read,write,execute after info.st_mode ^= S_IROTH; it will do 0777- 4 =...
I would like to ask you how to take away S_IROTH right from the file, I havent found it anywhere... my solution just changes rights for the file without giving it the S_IROTH, our teacher said to me...
deleteList will delete the first list in my linked list.
it works like this-> I get some way to some file like /home/xnovak/directory/ and I am supposed to write all files which are readable for...
Because if the condition is true I am returning value immidiatelly so before that I freeing my pointer, and if the condition were both false so I have to free the pointer or he will be forgotten.
I...
Hi, I have some memory issues, somehow I am freeing already freed memory but I really cant find it after staring at it for quite long while, valgrind is writing sth like this... btw program works how...
Thats my program which is doing BFS(for that purpose i am using single linked list instead of FIFO) on directories, and is writing all files it found. I would like to ask you how to find out if the...
yeah thanks. i have one lame question... if I have buffer, lets say
char* buffer = "this is my sentence";
char* sth = buffer;
*(sth+5) = '\0';
free(buffer);
...
Havent found anything to edit my previous post
So I wanna allocate memory insade the structere, I wanna allocate it for SQLtable* table in SQLresult->data->table
Any Ideas how to allocate...
Hi, firstly I forgot to thank you in some thread about allocating the struct... So I thank everyone who helped me improve my code...
It will be very similiar right now, cause my program have to run...
I did what u said, but still undefined referes in fprintf ... any ideas?
The whole code looks like this.
I am quite new at dinamic allocations so I made those midle steps to have less problems...
So the problem is foo function where I should take person atributes do some changes with them and rewrite them to another file but fprintf function have some problem with p_person->name if anybody...
Yeah, you were right, it was pretty lame mistake :/,thank you for hel... Now I have some pointers troubles.
#include <stdio.h>#include <stdlib.h>
#include <string.h>
char* whereIsTheFile;
...
Hi, I have a problem with char pointers and I would like to ask you why :)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* whereIsTheFile;
void SQLquer(const char* query){...