Is there any harm in using old-school C code inside of a C++ application?
If so, please explain the harm in using fread() in C++ as opposed to the fstream and printf() as opposed to cout.
Is ...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20162277.html
Zones:
C++Date Answered: 08/02/2001 Rating: 9.0 Views: 0
heres the scenario:
I have a user input files to read some information on, when certian files are entered it hangs. Actually the only file it hangs on that I know of for know is the '/proc/kmsg' b...
http://www.experts-exchange.com/Programming/Languages/C/Q_20719429.html
Zones:
CDate Answered: 09/03/2003 Rating: 8.2 Views: 0
I am using fread to read a binary file. The binary file may range from 2 - 9MB in size. I have 2 structs defined.
typedef struct {
unsigned char type[10];
unsigned short datasize;
} te...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21882559.html
Zones:
C++Date Answered: 07/02/2006 Rating: 9.2 Views: 4
Is
//C++
unsigned int iNumberVertices = 0;
fread(&iNumberVertices, 1, 2, fp);
equivalent to
//Java
int iNumberVertices = RAF.read() | RAF.read()<<8;
?
http://www.experts-exchange.com/Programming/Languages/Java/Q_22400642.html
Zones:
JavaDate Answered: 07/16/2007 Rating: 4.4 Views: 0
how to read this xml file(ex: dudu.xml), edit it and write it back.. using c / c++
read this:
<dudu>
<data>
<name>sss</name>
<msg>ddd</msg>
</data>
<data>
<name>ccc</name>
<msg>rrr</ms...
http://www.experts-exchange.com/Programming/Languages/C/Q_20533959.html
Zones:
CDate Answered: 01/05/2004 Rating: 7.6 Views: 0
Hi.
In a project I'm working on I need to stream video from the harddrive. The video is in a raw format, so is pretty big.
(640x480x16bits x 30 fps = 17mb/s) Machines that won't be able to read...
http://www.experts-exchange.com/Programming/System/Windows__Programming/Q_20635464.html
I'm working on a function that processes a large number of files. About 95% of are processed without a problem, but the rest aren't read completely. The problem occurs on the first call to fread, w...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20707661.html
Zones:
C++Date Answered: 08/12/2003 Rating: 8.0 Views: 0
Hi.Experts:
Code following:
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#include<stdio.h>
typedef struct tagPeople
{
char sex;
unsigned int age;
} People;
voi...
http://www.experts-exchange.com/Programming/Languages/C/Q_20721420.html
Zones:
CDate Answered: 08/27/2003 Rating: 8.6 Views: 0
In a file, I have the hex bytes:
0x00 0x08 0x08 0x09 0x00 0x00
When I try to get those 4 bytes using the following:
int hexBytes;
fread(&hexBytes,sizeof(int),1,f);
I would expect to the th...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_20807438.html
Zones:
C++Date Answered: 11/28/2003 Rating: 6.6 Views: 0
I have a very weird problem with the fread() command...
I'm trying to write to a file and read it back (duh). I'm writing and reading unsigned char[14]s with:
fwrite/fread(&PointData, sizeof(ch...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_21284958.html
Zones:
C++Date Answered: 01/23/2005 Rating: 9.0 Views: 0