Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Find file is copying? Pin
suzuuu7-Jul-10 22:28
suzuuu7-Jul-10 22:28 
QuestionRe: Find file is copying? Pin
David Crow8-Jul-10 3:15
David Crow8-Jul-10 3:15 
Questionboost::format Pin
gmallax7-Jul-10 19:56
gmallax7-Jul-10 19:56 
AnswerRe: boost::format Pin
«_Superman_»7-Jul-10 20:02
professional«_Superman_»7-Jul-10 20:02 
GeneralRe: boost::format Pin
gmallax7-Jul-10 20:15
gmallax7-Jul-10 20:15 
GeneralRe: boost::format Pin
«_Superman_»7-Jul-10 20:20
professional«_Superman_»7-Jul-10 20:20 
GeneralRe: boost::format Pin
gmallax7-Jul-10 20:40
gmallax7-Jul-10 20:40 
AnswerRe: boost::format Pin
Stephen Hewitt7-Jul-10 20:54
Stephen Hewitt7-Jul-10 20:54 
This code works fine for me:
// Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <tchar.h>
#include <iostream>
#include <boost/format.hpp>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	using namespace boost;

	const char *pData = "world";
	format fmt("Hello %1%!");
	fmt % pData;
	cout << fmt;

	cout << endl;

	return 0;
}


The output is:
Hello world!

 
Steve

GeneralRe: boost::format Pin
Niklas L7-Jul-10 22:10
Niklas L7-Jul-10 22:10 
Questionlist box Pin
AbhiHcl7-Jul-10 19:47
AbhiHcl7-Jul-10 19:47 
AnswerRe: list box Pin
«_Superman_»7-Jul-10 19:49
professional«_Superman_»7-Jul-10 19:49 
GeneralRe: list box Pin
AbhiHcl7-Jul-10 19:57
AbhiHcl7-Jul-10 19:57 
GeneralRe: list box Pin
«_Superman_»7-Jul-10 20:09
professional«_Superman_»7-Jul-10 20:09 
GeneralRe: list box Pin
AbhiHcl7-Jul-10 20:44
AbhiHcl7-Jul-10 20:44 
GeneralRe: list box Pin
«_Superman_»7-Jul-10 20:46
professional«_Superman_»7-Jul-10 20:46 
GeneralRe: list box Pin
AbhiHcl7-Jul-10 21:14
AbhiHcl7-Jul-10 21:14 
AnswerRe: list box Pin
Iain Clarke, Warrior Programmer7-Jul-10 21:06
Iain Clarke, Warrior Programmer7-Jul-10 21:06 
QuestionRe: list box Pin
Niklas L7-Jul-10 22:29
Niklas L7-Jul-10 22:29 
AnswerRe: list box Pin
Iain Clarke, Warrior Programmer7-Jul-10 22:51
Iain Clarke, Warrior Programmer7-Jul-10 22:51 
GeneralRe: list box Pin
AbhiHcl7-Jul-10 23:19
AbhiHcl7-Jul-10 23:19 
GeneralRe: list box Pin
Iain Clarke, Warrior Programmer7-Jul-10 23:30
Iain Clarke, Warrior Programmer7-Jul-10 23:30 
GeneralRe: list box Pin
Niklas L7-Jul-10 23:27
Niklas L7-Jul-10 23:27 
QuestionMFC SDI multiple resource file Pin
alexander 19837-Jul-10 19:43
alexander 19837-Jul-10 19:43 
AnswerRe: MFC SDI multiple resource file Pin
Iain Clarke, Warrior Programmer7-Jul-10 21:26
Iain Clarke, Warrior Programmer7-Jul-10 21:26 
QuestionBuilding Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 19:04
T.RATHA KRISHNAN7-Jul-10 19:04 

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.