Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWant to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 2:33
WindowsVsLinux25-Oct-09 2:33 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 3:08
mveRichard MacCutchan25-Oct-09 3:08 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 3:27
WindowsVsLinux25-Oct-09 3:27 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 3:59
mveRichard MacCutchan25-Oct-09 3:59 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 4:14
WindowsVsLinux25-Oct-09 4:14 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 5:53
mveRichard MacCutchan25-Oct-09 5:53 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
hugewave25-Oct-09 6:44
hugewave25-Oct-09 6:44 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
cmk25-Oct-09 6:51
cmk25-Oct-09 6:51 
QuestionRe: Want to ask about recv() and sent() function in sockets. Pin
David Crow26-Oct-09 3:55
David Crow26-Oct-09 3:55 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
cmk26-Oct-09 6:52
cmk26-Oct-09 6:52 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
Moak26-Oct-09 0:37
Moak26-Oct-09 0:37 
QuestionFont metric questions Pin
transoft24-Oct-09 9:34
transoft24-Oct-09 9:34 
AnswerRe: Font metric questions Pin
«_Superman_»24-Oct-09 9:37
professional«_Superman_»24-Oct-09 9:37 
GeneralRe: Font metric questions Pin
transoft24-Oct-09 9:49
transoft24-Oct-09 9:49 
GeneralRe: Font metric questions Pin
«_Superman_»24-Oct-09 9:53
professional«_Superman_»24-Oct-09 9:53 
GeneralRe: Font metric questions Pin
transoft24-Oct-09 10:22
transoft24-Oct-09 10:22 
GeneralRe: Font metric questions Pin
«_Superman_»24-Oct-09 10:26
professional«_Superman_»24-Oct-09 10:26 
AnswerRe: Font metric questions Pin
Richard MacCutchan24-Oct-09 22:54
mveRichard MacCutchan24-Oct-09 22:54 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 4:01
transoft25-Oct-09 4:01 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:03
mveRichard MacCutchan25-Oct-09 6:03 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 6:05
transoft25-Oct-09 6:05 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:19
mveRichard MacCutchan25-Oct-09 6:19 
Questionwrite CString Datatype to a DaoDatabase in UTF8 Format? Pin
A&Ms24-Oct-09 9:26
A&Ms24-Oct-09 9:26 
AnswerRe: write CString Datatype to a DaoDatabase in UTF8 Format? Pin
«_Superman_»24-Oct-09 9:47
professional«_Superman_»24-Oct-09 9:47 
QuestionCREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 7:07
rhenry8424-Oct-09 7:07 
I have a C++ project where I am reading data line by line from a text file in order to create a file header and store the records from the text file in a binary file.

The records will have a certain number of fields but you do not know how many fields until you've opened and read from the text file.

For example:

Record Fields:

Title (string)
Price (double)
In Stock/Out of Stock (char)


Is there a way to create an empty struct and fill it later when you know the number of fields or is there some other structure besides a vector or array that will store records with different fields of different data types??

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.