Click here to Skip to main content
16,016,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:04
David Crow16-May-07 3:04 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:15
Immunity1816-May-07 3:15 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:16
David Crow16-May-07 3:16 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:20
Immunity1816-May-07 3:20 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:44
David Crow16-May-07 3:44 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:56
Immunity1816-May-07 3:56 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 4:13
David Crow16-May-07 4:13 
Questionpointers and structures Pin
klutez12316-May-07 2:43
klutez12316-May-07 2:43 
Right now I'm creating a program that declares a structure, which also has enum inside it. Now I believe I declare the structure right, but the next step is to create a loop that has the user enter 5 different items of data for library information. But I have to use pointers, so when the loop runs and I enter the information, the data has to be sent to a structure variable only once all six attributes are entered, and the pointer values should be used to create the structure.

I was given an example:

cin >> a;<br />
cin >> b;<br />
library.dewey = &aptr;


This is my code so far:

	struct card_catalogue                //declare a structure then declare all<br />
	{                                    //the varibles needed for the struct<br />
		float dewey;<br />
		string title;<br />
		string author;<br />
		int released;<br />
	    int num_pages;<br />
		enum type {fiction, nonfiction, reference, pond};<br />
    };<br />
<br />
int main()<br />
{		<br />
	card_catalogue books;<br />
<br />
<br />
	cout<< "Enter the Dewey Decimal Number please: ";<br />
	cin>> books.dewey;<br />
	cout<< "Enter the Title of the book please: ";<br />
	getline(cin, books.title);<br />
	cout<< "Enter the Author of the book please: ";<br />
	getline(cin, books.author);<br />
	cout<< "Enter the Year of Release please: ";<br />
	cin>> books.released;<br />
	cout<< "Enter the Number of Pages please: ";<br />
	cin>> books.num_pages;<br />
	cout<< "Enter the type: ";<br />
	getline(cin, books.type);<br />
<br />
	<br />
	return 0;<br />
}

AnswerRe: pointers and structures Pin
David Crow16-May-07 2:50
David Crow16-May-07 2:50 
AnswerRe: pointers and structures Pin
ajitatif angajetor16-May-07 4:00
ajitatif angajetor16-May-07 4:00 
QuestionBLOB object with ADO Pin
Vlad~16-May-07 2:08
Vlad~16-May-07 2:08 
QuestionI implemented a chat Program But I am not able to connect to the server properly Pin
yaminisridaran16-May-07 0:28
yaminisridaran16-May-07 0:28 
AnswerRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Cedric Moonen16-May-07 1:52
Cedric Moonen16-May-07 1:52 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
yaminisridaran16-May-07 1:56
yaminisridaran16-May-07 1:56 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Cedric Moonen16-May-07 2:08
Cedric Moonen16-May-07 2:08 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Roger Stoltz16-May-07 3:01
Roger Stoltz16-May-07 3:01 
AnswerRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Moak16-May-07 3:31
Moak16-May-07 3:31 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Mark Salsbery16-May-07 5:35
Mark Salsbery16-May-07 5:35 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Moak16-May-07 5:43
Moak16-May-07 5:43 
GeneralRe: I implemented a chat Program But I am not able to connect to the server properly Pin
Mark Salsbery16-May-07 6:03
Mark Salsbery16-May-07 6:03 
AnswerRe: I implemented a chat Program But I am not able to connect to the server properly Pin
dharani16-May-07 18:20
dharani16-May-07 18:20 
QuestionHow to make visible the inserted item in Tree control? Pin
swamy Narasimha16-May-07 0:21
swamy Narasimha16-May-07 0:21 
AnswerRe: How to make visible the inserted item in Tree control? Pin
GuyM16-May-07 0:59
GuyM16-May-07 0:59 
GeneralRe: How to make visible the inserted item in Tree control? Pin
swamy Narasimha16-May-07 1:23
swamy Narasimha16-May-07 1:23 
QuestionProblem reading a unicode text file Pin
balu chettri16-May-07 0:14
balu chettri16-May-07 0:14 

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.