No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i've got this code it compiles but it when I try to run it it says segmenatation fault [CODE]/* #include <stdio.h> #include <iostream> using namespace std; int rite(); int a,b; char g,f; int main () { size_t count; FILE * pFile; pFile = fopen ("in.h","r"); count = fscanf (pFile, "%d%d",&a,&b); … |
|
after compiling my prog i ran it with the command time [CODE]time ./a.out[/CODE] and it gave me this output [CODE] real 0m0.844s user 0m0.172s sys 0m0.596s[/CODE] what does this output mean ? |
|
I'm trying to write a program in C++ which writes characters into a file from 100 chars up to 120.000.000 chars in Linux. Would it be faster if I would try to use multithreading and if yes could you give me some advice some links to useful sites maybe some … |
|
I tried to install linux on my system and without knowing I formatted my disk on which i had installed Vista Ultimate. After realizing that i made a clean installation of vista ultimate on the disk one partition there is no other. After the installation was finished i tried to … |
|
I'm trying to write a program which reads a file really small size with two number and a character and ouput another file which can have up to 120.000.000 characters. is unistd equal to direct system call function? and if yes is it the fastest way to read/write data on … |
|
I'm trying to write a program which reads a file really small size with two number and a character and ouput another file which can have up to 120.000.000 characters. My answer which is the fastest way to achieve this on Linux compiled with gcc i mean shouls i use … |
|
i'm trying to figure out what is the fastest way to do an odd / even check on numbers i don't know whether there is a mathematical way of achieving this i've heard that the fastest would be checking the last bit in the binary array but i wonder what … |
|
i'w wondering whether there is a difference between fstream and stdio.h when processing a file with these data [CODE] 10 10 P[/CODE] with fstream it's easier to get the data since with stdio.h i'd need to get every single char and number with getc() and translate i t into whole … |