|
Wrong forum - Please see the big red sign when starting a new thread in this forum that says quite explicity "No programming questions". Try an appropriate programming forum.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Sorry to have disturbed you. But, how did this become a programming question? I did not ask the C++ language commands to know how to open the usb port and get access to the buffer or anything. I just asked where would I get the file io.h
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Rajesh R. Subramanian wrote: I just asked where would I get the file io.h
Yes I knew that you just need a URL to download that header file.
Maxwell Chen
|
|
|
|
|
Colin Angus Mackay wrote: Wrong forum
He is asking for some .h file, but he couldn't find a Linux programming forum on CP.
Maxwell Chen
|
|
|
|
|
Colin, he's just asking for a .H file, not trying to open an Excel file in VB or create a button in a datagrid.
Cheers,
Vikram.
I don't know and you don't either.
Militant Agnostic
|
|
|
|
|
Thats not a programming question IMHO
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
|
|
|
|
|
Use <cstdio> if you are using a C++ compiler. All the C IO functions, in the std namespace.
Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven."
- Penn Jillette
-- modified at 6:34 Friday 19th May, 2006, damn escaping
|
|
|
|
|
No sir, i am using C compiler and the header file that i am looking for is not there.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Odd, should be under /usr/include somewhere. Can't get far without the standard C lib in UNIX.
Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven."
- Penn Jillette
|
|
|
|
|
it can be somewhere weird, like /usr/include/asm-i386/, otherwise you may find it in <linux kernel="" headers="">/include/asm-i386
|
|
|
|
|
Here you can get the file[^]
under linux the file is present at
/usr/include/asm/
Knock out 't' from can't,
You can if you think you can
-- modified at 9:44 Friday 19th May, 2006
|
|
|
|
|
How to convert ASCII value to character. Meaning im reading data from device it gives 65 insted of 'A'. how can i get my data back in VC++.Net.
|
|
|
|
|
sivaprakashshanmugam wrote: ata from device it gives 65 insted of 'A'. how can i get my data back
printf("Data = '%c'", 65);
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: printf("Data = '%c'", 65);
or
char ch = 65; :->
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: char ch = 65;
char ch = 'A';<br />
printf("Data = '%c'", ch);
Maxwell Chen
|
|
|
|
|
|
Nibu thomas wrote: Copy cat...
Maxwell Chen
|
|
|
|
|
maybe it is some helpful to you Here[^]
whitesky
|
|
|
|
|
hi all,
I have an activex control(a video player which plays .cam files).
I have programed to play the video after the .cam file downloads completely.
But i want to play the video while it downloads.like buffering and streaming.
please help me.
thanks in advance
sunita
|
|
|
|
|
please explain in detail.
if possible give any example.
|
|
|
|
|
// shallow copy
Fxn(Class1 Obj1)
{
m_pPointer = Obj1.m_pPinter; // just copying the where the pointer points to
}
// Deepcopy
Fxn(Class1 Obj1)
{
m_pPinter = new int[obj1.size]
memcpy(m_pPointer,Obj1.m_pPinter,Obj1.size); // Allocating memory and copying its contents
}
-Sarath
|
|
|
|
|
|
A shallow copy of an object copies all of the member field values. This works well if the fields are values, but may not be what you want for fields that point to dynamically allocated memory. The pointer will be copied. but the memory it points to will not be copied -- the field in both the original object and the copy will then point to the same dynamically allocated memory, which is not usually what you want. The default copy constructor and assignment operator make shallow copies.
A deep copy copies all fields, and makes copies of dynamically allocated memory pointed to by the fields. To make a deep copy, you must write a copy constructor and overload the assignment operator.
Deep copy needs,
If an object has pointers to dynamically allocated memory, and the dynamically allocated memory needs to be copied when the original object is copied, then a deep copy is required.
A class that requires deep copies will generally need:
i )a destructor to delete the dynamically allocated memory.
ii) a copy constructor to make a copy of the dynamically allocated memory.
iii) an overloaded assignment operator to make a copy of the dynamically allocated memory.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Ganesh_T wrote: A shallow copy of an object ...
Exactly the same as the link I found.
Maxwell Chen
|
|
|
|
|