Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless dialog - How do I (clear the contents of an edit box) Pin
simon alec smith3-Sep-08 12:54
simon alec smith3-Sep-08 12:54 
QuestionHTMLHelp on x64, linking Pin
Chris Losinger3-Sep-08 10:00
professionalChris Losinger3-Sep-08 10:00 
GeneralRe: HTMLHelp on x64, linking Pin
Perspx3-Sep-08 10:04
Perspx3-Sep-08 10:04 
GeneralRe: HTMLHelp on x64, linking Pin
Chris Losinger3-Sep-08 10:09
professionalChris Losinger3-Sep-08 10:09 
Questionfastest way to look up a string Pin
Jim Crafton3-Sep-08 9:05
Jim Crafton3-Sep-08 9:05 
AnswerRe: fastest way to look up a string Pin
Nemanja Trifunovic3-Sep-08 9:37
Nemanja Trifunovic3-Sep-08 9:37 
QuestionGetting VID and PID from device using UsbSer Pin
Roger Stoltz3-Sep-08 6:03
Roger Stoltz3-Sep-08 6:03 
QuestionSimple array-problem Pin
Joplinazz3-Sep-08 5:54
Joplinazz3-Sep-08 5:54 
Hey all,

I've got this really annoying problem I just can't solve - I'm trying to print the elements of my array of strings, but I can't make it, I've tried several different ways.

Here's my code, which won't compile:

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
	string a[]={"a", "b", "c", "d", "e"};
	cout << a[3];
	return 0;
}</iostream>


I've been googling around for quite a while now and this code looks so right to me.


And one other thing; how can i create a string from several elements of this array?

Thx

/Joplinazz
AnswerRe: Simple array-problem Pin
toxcct3-Sep-08 6:05
toxcct3-Sep-08 6:05 
GeneralRe: Simple array-problem Pin
Joplinazz3-Sep-08 6:11
Joplinazz3-Sep-08 6:11 
GeneralRe: Simple array-problem Pin
toxcct3-Sep-08 6:24
toxcct3-Sep-08 6:24 
GeneralRe: Simple array-problem Pin
Joplinazz3-Sep-08 6:38
Joplinazz3-Sep-08 6:38 
AnswerRe: Simple array-problem Pin
Roger Stoltz3-Sep-08 6:31
Roger Stoltz3-Sep-08 6:31 
GeneralRe: Simple array-problem Pin
Joplinazz3-Sep-08 8:03
Joplinazz3-Sep-08 8:03 
QuestionCreating a UI thread with CWinThread Pin
sashoalm3-Sep-08 4:57
sashoalm3-Sep-08 4:57 
AnswerRe: Creating a UI thread with CWinThread Pin
Mark Salsbery3-Sep-08 5:06
Mark Salsbery3-Sep-08 5:06 
GeneralRe: Creating a UI thread with CWinThread Pin
sashoalm3-Sep-08 5:10
sashoalm3-Sep-08 5:10 
GeneralRe: Creating a UI thread with CWinThread Pin
Mark Salsbery3-Sep-08 5:20
Mark Salsbery3-Sep-08 5:20 
GeneralRe: Creating a UI thread with CWinThread Pin
sashoalm3-Sep-08 5:26
sashoalm3-Sep-08 5:26 
Questionifstream Pin
FrankMookie3-Sep-08 4:36
FrankMookie3-Sep-08 4:36 
AnswerRe: ifstream [modified] Pin
toxcct3-Sep-08 4:52
toxcct3-Sep-08 4:52 
GeneralRe: ifstream Pin
FrankMookie3-Sep-08 5:05
FrankMookie3-Sep-08 5:05 
GeneralRe: ifstream Pin
toxcct3-Sep-08 5:06
toxcct3-Sep-08 5:06 
AnswerRe: ifstream Pin
David Crow3-Sep-08 4:57
David Crow3-Sep-08 4:57 
GeneralRe: ifstream Pin
FrankMookie3-Sep-08 5:03
FrankMookie3-Sep-08 5:03 

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.