Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COM STA thread Pin
George_George8-Sep-08 0:39
George_George8-Sep-08 0:39 
GeneralRe: COM STA thread Pin
Roger Stoltz8-Sep-08 2:06
Roger Stoltz8-Sep-08 2:06 
GeneralRe: COM STA thread Pin
George_George8-Sep-08 20:21
George_George8-Sep-08 20:21 
QuestionExecutable COM Pin
RYU^^7-Sep-08 13:58
RYU^^7-Sep-08 13:58 
AnswerRe: Executable COM Pin
RYU^^7-Sep-08 16:31
RYU^^7-Sep-08 16:31 
Questionset values to charachter arrays which are entered [modified] Pin
toprogramminguy7-Sep-08 13:54
toprogramminguy7-Sep-08 13:54 
AnswerRe: set values to charachter arrays which are entered Pin
Vincen Wang7-Sep-08 15:04
Vincen Wang7-Sep-08 15:04 
GeneralRe: set values to charachter arrays which are entered [modified] Pin
toprogramminguy8-Sep-08 5:51
toprogramminguy8-Sep-08 5:51 
#include "stdafx.h"
#include "iostream"
#include "cstring"
using namespace std;




	
int main()
{
	int x, y;
    char ppl[5][80];
	
	for(y = 0; y < 5; y++){
	    gets_s(ppl[y]);
	}

	for(x = 0; x < y; x++){
			cout << ppl[x] << "\n";
	}
	
	int a[5];
	for(x = 0;x < y; x++){  
		*ppl[x] = a[x];
	}
	
	for(x = 0;x < y; x++){
			cout << a[x] << "\n";
	}

	



		    


		return 0;
}


compile this and see what the values for each of the strings are, it doesn't work.
and how do you output the values when the variable name is the same as the name for the string,
for example if you want to display the strings showing what their values are.
GeneralRe: set values to charachter arrays which are entered [modified] Pin
Vincen Wang8-Sep-08 16:09
Vincen Wang8-Sep-08 16:09 
GeneralRe: set values to charachter arrays which are entered Pin
toprogramminguy10-Sep-08 6:19
toprogramminguy10-Sep-08 6:19 
GeneralRe: set values to charachter arrays which are entered Pin
Vincen Wang15-Sep-08 15:03
Vincen Wang15-Sep-08 15:03 
Questioncannot open any more tables pls help Pin
GPat247-Sep-08 11:49
GPat247-Sep-08 11:49 
AnswerRe: cannot open any more tables pls help Pin
Rane7-Sep-08 19:21
Rane7-Sep-08 19:21 
GeneralRe: cannot open any more tables pls help Pin
GPat248-Sep-08 1:49
GPat248-Sep-08 1:49 
QuestionRe: cannot open any more tables pls help Pin
Mark Salsbery8-Sep-08 6:29
Mark Salsbery8-Sep-08 6:29 
Questionsorting a CListCtrl by clicking on one of it's column's headers makes an arrow appear, but also makes the header appear flat Pin
Sternocera7-Sep-08 8:25
Sternocera7-Sep-08 8:25 
QuestionVirtual World Pin
MrMcIntyre7-Sep-08 4:23
MrMcIntyre7-Sep-08 4:23 
AnswerRe: Virtual World Pin
Perspx7-Sep-08 4:44
Perspx7-Sep-08 4:44 
GeneralRe: Virtual World Pin
AndrewMcIntyre7-Sep-08 5:03
AndrewMcIntyre7-Sep-08 5:03 
GeneralRe: Virtual World Pin
Cedric Moonen7-Sep-08 6:22
Cedric Moonen7-Sep-08 6:22 
AnswerRe: Virtual World Pin
Hamid_RT7-Sep-08 6:39
Hamid_RT7-Sep-08 6:39 
GeneralRe: Virtual World Pin
AndrewMcIntyre7-Sep-08 6:59
AndrewMcIntyre7-Sep-08 6:59 
Question'/RTC1' and '/clr' command-line options are incompatible [modified] Pin
rasred7-Sep-08 0:08
rasred7-Sep-08 0:08 
AnswerRe: '/RTC1' and '/clr' command-line options are incompatible Pin
Rane7-Sep-08 19:41
Rane7-Sep-08 19:41 
QuestionCallback with meber functions Pin
progDes6-Sep-08 20:48
progDes6-Sep-08 20:48 

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.