Click here to Skip to main content
15,909,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
AnswerRe: LPSTR or something like that Pin
yu-jian26-Nov-10 6:19
yu-jian26-Nov-10 6:19 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
GeneralRe: LPSTR or something like that Pin
yu-jian28-Nov-10 4:08
yu-jian28-Nov-10 4:08 
QuestionBlack out the application. Pin
Le@rner26-Nov-10 1:07
Le@rner26-Nov-10 1:07 
AnswerRe: Black out the application. Pin
CPallini26-Nov-10 1:28
mveCPallini26-Nov-10 1:28 
GeneralRe: Black out the application. Pin
Le@rner26-Nov-10 1:30
Le@rner26-Nov-10 1:30 
GeneralRe: Black out the application. Pin
CPallini26-Nov-10 1:39
mveCPallini26-Nov-10 1:39 
GeneralRe: Black out the application. Pin
Luc Pattyn26-Nov-10 1:57
sitebuilderLuc Pattyn26-Nov-10 1:57 
GeneralRe: Black out the application. Pin
CPallini26-Nov-10 2:04
mveCPallini26-Nov-10 2:04 
Generalnon si direbbe Pin
Luc Pattyn26-Nov-10 2:12
sitebuilderLuc Pattyn26-Nov-10 2:12 
GeneralPourquoi pas? Pin
CPallini26-Nov-10 2:18
mveCPallini26-Nov-10 2:18 
GeneralQue? Pin
Luc Pattyn26-Nov-10 2:22
sitebuilderLuc Pattyn26-Nov-10 2:22 
GeneralRe: Que? Pin
CPallini26-Nov-10 2:27
mveCPallini26-Nov-10 2:27 
AnswerRe: Black out the application. Pin
Richard MacCutchan26-Nov-10 2:50
mveRichard MacCutchan26-Nov-10 2:50 
AnswerRe: Black out the application. Pin
Code-o-mat26-Nov-10 3:29
Code-o-mat26-Nov-10 3:29 
GeneralRe: Black out the application. Pin
Le@rner26-Nov-10 19:03
Le@rner26-Nov-10 19:03 
GeneralRe: Black out the application. Pin
Code-o-mat28-Nov-10 3:02
Code-o-mat28-Nov-10 3:02 
AnswerRe: Black out the application. Pin
Alan Balkany1-Dec-10 5:16
Alan Balkany1-Dec-10 5:16 
GeneralRe: Black out the application. Pin
Le@rner10-Dec-10 20:35
Le@rner10-Dec-10 20:35 
QuestionReplace values Pin
raju_shiva26-Nov-10 0:32
raju_shiva26-Nov-10 0:32 
Hi all,
I am reading some values from command line and i want to replace them with other values.


Command line input ranges are from (50,51,52,........... 480,481,482)

I need to replace with (172,171,.....0,-1,-2,...-260)

Here is my code:

int main(int argn, char  **argv)
{
	char c;
	int h;
	double Pos[9];
	double pd[6];	
                 double test=51;
	printf("\nEnter position (val1, val2,val3,val4,val5,val6,val7,val8,val9):\n");
        
	for(h=0; h<9; h++)
		
	scanf("%lf",&Pos[h]);
		
	if(Pos[7]=="50")  
	   Pos[7]=172
                 if(Pos[7]=="51") 
	   Pos[7]=171;
	 if(Pos[7]=="52") 
	   Pos[7]=170; 	
	return 1;
}


Can someone help me how to do.
Thanks
Raj
AnswerRe: Replace values Pin
Luc Pattyn26-Nov-10 0:47
sitebuilderLuc Pattyn26-Nov-10 0:47 
QuestionRe: Replace values - damned Belgian fast-typer! Pin
CPallini26-Nov-10 0:48
mveCPallini26-Nov-10 0:48 
AnswerRe: Replace values Pin
Richard MacCutchan26-Nov-10 0:58
mveRichard MacCutchan26-Nov-10 0:58 
AnswerRe: Replace values Pin
Anand Todkar26-Nov-10 1:03
Anand Todkar26-Nov-10 1: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.