Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to dynamically load GdiPlus.dll? Pin
Cyrus Dang16-Jun-06 7:08
Cyrus Dang16-Jun-06 7:08 
AnswerRe: How to dynamically load GdiPlus.dll? Pin
Maxwell Chen16-Jun-06 7:11
Maxwell Chen16-Jun-06 7:11 
QuestionRe: How to dynamically load GdiPlus.dll? Pin
Cyrus Dang16-Jun-06 7:27
Cyrus Dang16-Jun-06 7:27 
AnswerRe: How to dynamically load GdiPlus.dll? Pin
Maxwell Chen16-Jun-06 8:01
Maxwell Chen16-Jun-06 8:01 
AnswerRe: How to dynamically load GdiPlus.dll? Pin
Jun Du16-Jun-06 7:48
Jun Du16-Jun-06 7:48 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
bob1697216-Jun-06 9:11
bob1697216-Jun-06 9:11 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
Jun Du16-Jun-06 12:09
Jun Du16-Jun-06 12:09 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
Cyrus Dang16-Jun-06 13:35
Cyrus Dang16-Jun-06 13:35 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
Jun Du16-Jun-06 15:51
Jun Du16-Jun-06 15:51 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
bob1697216-Jun-06 17:35
bob1697216-Jun-06 17:35 
GeneralRe: How to dynamically load GdiPlus.dll? Pin
James Brown18-Jun-06 22:20
James Brown18-Jun-06 22:20 
Questionenter key Pin
Tara1416-Jun-06 6:51
Tara1416-Jun-06 6:51 
AnswerRe: enter key Pin
Jun Du16-Jun-06 7:56
Jun Du16-Jun-06 7:56 
GeneralRe: enter key Pin
Tara1416-Jun-06 8:58
Tara1416-Jun-06 8:58 
GeneralRe: enter key Pin
Tara1416-Jun-06 9:27
Tara1416-Jun-06 9:27 
QuestionExcluding random choices (std c++) Pin
Peter Charlesworth16-Jun-06 5:01
Peter Charlesworth16-Jun-06 5:01 
AnswerRe: Excluding random choices (std c++) Pin
capricious_00116-Jun-06 5:14
capricious_00116-Jun-06 5:14 
AnswerRe: Excluding random choices (std c++) [modified] Pin
Stephen Hewitt16-Jun-06 5:28
Stephen Hewitt16-Jun-06 5:28 
Here's how I'd do it:
#include <algorithm>
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
	// Names and tasks.
	//
	typedef const char* PCSTR;

	PCSTR names[] =
		{
			"Bob",
			"Jane",
			"Tina",
			"Bill"
		};
	PCSTR* names_end = names+sizeof(names)/sizeof(names[0]);

	PCSTR tasks[] =
		{
			"is laughing",
			"is crying",
			"is jumping",
			"is having fun"
		};
	PCSTR* tasks_end = tasks+sizeof(tasks)/sizeof(tasks[0]);

	// Shuffle both arrays.
	//
	random_shuffle(names, names_end);
	random_shuffle(tasks, tasks_end);

	// Print out all entries in both arrays.
	//
	for (
		PCSTR *pName=names, *pTask=tasks;
		pName!=names_end && pTask!=tasks_end;
		++pName, ++pTask )
	{
		cout << *pName << " " << *pTask << "." << endl;
	}

	return 0;
}



Steve
GeneralRe: Excluding random choices (std c++) Pin
Garth J Lancaster16-Jun-06 16:33
professionalGarth J Lancaster16-Jun-06 16:33 
AnswerRe: Excluding random choices (std c++) Pin
Chris Losinger16-Jun-06 6:35
professionalChris Losinger16-Jun-06 6:35 
Question'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 4:49
kitty516-Jun-06 4:49 
AnswerRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
Viorel.16-Jun-06 4:54
Viorel.16-Jun-06 4:54 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 5:02
kitty516-Jun-06 5:02 
GeneralRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
Viorel.16-Jun-06 5:13
Viorel.16-Jun-06 5:13 
QuestionRe: 'HDEVINFO' and 'SP_DEVICE_INTERFACE_DATA' Pin
kitty516-Jun-06 5:18
kitty516-Jun-06 5:18 

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.