Click here to Skip to main content
15,905,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to check a directory is existed or not Pin
kcynic18-Sep-07 15:25
kcynic18-Sep-07 15:25 
QuestionRe: How to check a directory is existed or not Pin
David Crow18-Sep-07 16:56
David Crow18-Sep-07 16:56 
GeneralRe: How to check a directory is existed or not Pin
Karismatic19-Sep-07 2:15
Karismatic19-Sep-07 2:15 
AnswerRe: How to check a directory is existed or not Pin
Hamid_RT18-Sep-07 3:12
Hamid_RT18-Sep-07 3:12 
AnswerRe: How to check a directory is existed or not Pin
David Crow18-Sep-07 4:11
David Crow18-Sep-07 4:11 
QuestionString of integers Pin
Herboren17-Sep-07 16:24
Herboren17-Sep-07 16:24 
AnswerRe: String of integers Pin
fefe.wyx17-Sep-07 16:45
fefe.wyx17-Sep-07 16:45 
GeneralRe: String of integers Pin
Herboren17-Sep-07 18:47
Herboren17-Sep-07 18:47 
forgive me I had noticed that earlier I corrected it. Edit:

<br />
<br />
#include "stdafx.h"<br />
#include <<conio.h>><br />
#include <<iostream>><br />
using namespace std;<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
	int aArray[4];<br />
	int n;<br />
	<br />
	<br />
	cout << "Input 5 digits: "; cin >> aArray[0];<br />
<br />
	for ( n=0; n<5; n++ )<br />
	{<br />
		cout << "Integer: " << aArray[n] << endl;<br />
	}<br />
	_getch();<br />
	return 0;<br />
}<br />


of course knowing the array is 5 integers long '01234'. Basically the program is supposed to read a string of integers from the user, for example, input '12345' all together on the first line. Then each value within that string is stored in an array therefore if I wanted to print the first value of that array the value would come out as the '1' and so on. Now when you build the code it asks for an input the downside to this is it asks for 5 elements as a string or individual, in 5 different columns. so if you typed '12345' you would have to press enter and repeat that 4 more times, which is what im trying to avoid. The operation of the program is supposed to ask for the string of integers once and place each element of the string into an array therefor the string '12345' would be placed in aArray[4] thus giving me 5 elements in in one column. smell my drift? Poke tongue | ;-P
GeneralRe: String of integers Pin
nbugalia17-Sep-07 19:15
nbugalia17-Sep-07 19:15 
AnswerRe: String of integers Pin
Russell'17-Sep-07 23:24
Russell'17-Sep-07 23:24 
AnswerRe: String of integers Pin
David Crow18-Sep-07 4:17
David Crow18-Sep-07 4:17 
GeneralRe: String of integers [modified] Pin
Herboren18-Sep-07 4:43
Herboren18-Sep-07 4:43 
GeneralRe: String of integers Pin
David Crow18-Sep-07 5:32
David Crow18-Sep-07 5:32 
GeneralRe: String of integers Pin
Herboren18-Sep-07 6:13
Herboren18-Sep-07 6:13 
QuestionRe: String of integers Pin
David Crow18-Sep-07 6:51
David Crow18-Sep-07 6:51 
AnswerRe: String of integers [modified] Pin
Herboren18-Sep-07 9:04
Herboren18-Sep-07 9:04 
GeneralRe: String of integers Pin
David Crow18-Sep-07 10:36
David Crow18-Sep-07 10:36 
GeneralRe: String of integers Pin
Herboren18-Sep-07 10:58
Herboren18-Sep-07 10:58 
QuestionRe: String of integers Pin
David Crow18-Sep-07 11:06
David Crow18-Sep-07 11:06 
AnswerRe: String of integers [modified] Pin
Herboren18-Sep-07 11:17
Herboren18-Sep-07 11:17 
GeneralRe: String of integers Pin
David Crow19-Sep-07 7:58
David Crow19-Sep-07 7:58 
Questioncode for opening,closing and saving an image file Pin
itsgood12317-Sep-07 14:23
itsgood12317-Sep-07 14:23 
AnswerRe: code for opening,closing and saving an image file Pin
Sarath C17-Sep-07 15:49
Sarath C17-Sep-07 15:49 
QuestionRe: code for opening,closing and saving an image file Pin
Mark Salsbery17-Sep-07 18:22
Mark Salsbery17-Sep-07 18:22 
AnswerRe: code for opening,closing and saving an image file Pin
Hamid_RT18-Sep-07 3:15
Hamid_RT18-Sep-07 3:15 

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.