Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to insert a "#" to some lines ? Pin
Faez Shingeri29-Feb-12 18:12
Faez Shingeri29-Feb-12 18:12 
AnswerRe: How to insert a "#" to some lines ? Pin
David Crow1-Mar-12 3:03
David Crow1-Mar-12 3:03 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri1-Mar-12 22:41
Faez Shingeri1-Mar-12 22:41 
GeneralRe: How to insert a "#" to some lines ? Pin
David Crow2-Mar-12 2:39
David Crow2-Mar-12 2:39 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri5-Mar-12 0:37
Faez Shingeri5-Mar-12 0:37 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri5-Mar-12 19:37
Faez Shingeri5-Mar-12 19:37 
QuestionRe: How to insert a "#" to some lines ? Pin
David Crow6-Mar-12 2:23
David Crow6-Mar-12 2:23 
AnswerRe: How to insert a "#" to some lines ? Pin
Faez Shingeri6-Mar-12 23:53
Faez Shingeri6-Mar-12 23:53 
while(fgets(buffer,MAX_LEN_SINGLE_LINE+2,fp1))
	{
		buff_ptr = buffer;
		strcpy(buffer2,buffer);
		//Remove Spaces from start for comparision
		i = 0;
		while( i++ < strlen(buffer))
		{
			if(isspace(buffer[i]))
				continue;
			strcpy(buffer2,&(buffer[i]));
			break;
		}
		if(strncmp(buffer2,"READ",4) == 0)
		{
			found = true;
			sprintf(buffer1,"# %s",buffer);
			fputs(buffer1,fp2);
		}
		else if(found == false)
		{
			fputs(buffer,fp2);
		}
		else
		{
			sprintf(buffer1,"# %s",buffer);
			fputs(buffer1,fp2);
			// Search if "." is found.
			if(strstr(buffer,".") != NULL)
				found = false;
		}
	}


Alot of thanks to Chandrakantt also in helping me in this one..
AnswerRe: How to insert a "#" to some lines ? Pin
CPallini28-Feb-12 21:39
mveCPallini28-Feb-12 21:39 
Questionray tracing in a selected region from a 3d volume Pin
MarziehBere28-Feb-12 17:13
MarziehBere28-Feb-12 17:13 
QuestionDeviceIoControl question Pin
RomTibi28-Feb-12 8:11
RomTibi28-Feb-12 8:11 
AnswerRe: DeviceIoControl question Pin
Randor 28-Feb-12 15:17
professional Randor 28-Feb-12 15:17 
GeneralRe: DeviceIoControl question Pin
RomTibi1-Mar-12 4:49
RomTibi1-Mar-12 4:49 
GeneralRe: DeviceIoControl question Pin
Randor 1-Mar-12 8:00
professional Randor 1-Mar-12 8:00 
GeneralRe: DeviceIoControl question Pin
RomTibi1-Mar-12 9:53
RomTibi1-Mar-12 9:53 
GeneralRe: DeviceIoControl question Pin
Randor 2-Mar-12 0:39
professional Randor 2-Mar-12 0:39 
GeneralRe: DeviceIoControl question Pin
RomTibi2-Mar-12 4:25
RomTibi2-Mar-12 4:25 
GeneralRe: DeviceIoControl question Pin
Randor 2-Mar-12 18:18
professional Randor 2-Mar-12 18:18 
GeneralRe: DeviceIoControl question Pin
RomTibi5-Mar-12 8:25
RomTibi5-Mar-12 8:25 
GeneralRe: DeviceIoControl question Pin
Randor 5-Mar-12 12:38
professional Randor 5-Mar-12 12:38 
GeneralRe: DeviceIoControl question Pin
RomTibi5-Mar-12 18:14
RomTibi5-Mar-12 18:14 
GeneralRe: DeviceIoControl question Pin
Randor 6-Mar-12 4:16
professional Randor 6-Mar-12 4:16 
GeneralRe: DeviceIoControl question Pin
RomTibi6-Mar-12 4:29
RomTibi6-Mar-12 4:29 
GeneralRe: DeviceIoControl question Pin
RomTibi9-Mar-12 9:19
RomTibi9-Mar-12 9:19 
QuestionRe: DeviceIoControl question Pin
Randor 9-Mar-12 11:45
professional Randor 9-Mar-12 11:45 

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.