Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WinSock2 help! Pin
Parthiban4-May-10 23:02
Parthiban4-May-10 23:02 
Questionhow to trim Spaces from unsigned char* Pin
Member 36537514-May-10 3:47
Member 36537514-May-10 3:47 
AnswerRe: how to trim Spaces from unsigned char* Pin
Maximilien4-May-10 4:20
Maximilien4-May-10 4:20 
GeneralRe: how to trim Spaces from unsigned char* Pin
Member 36537514-May-10 4:43
Member 36537514-May-10 4:43 
AnswerRe: how to trim Spaces from unsigned char* [modified] Pin
stebich4-May-10 4:59
professionalstebich4-May-10 4:59 
GeneralRe: how to trim Spaces from unsigned char* Pin
Maximilien4-May-10 5:06
Maximilien4-May-10 5:06 
GeneralRe: how to trim Spaces from unsigned char* Pin
CPallini4-May-10 5:09
mveCPallini4-May-10 5:09 
GeneralRe: Copy the string char by char and skips the spaces. Pin
Software_Developer4-May-10 7:06
Software_Developer4-May-10 7:06 
Hi.
This litte program copys the string char by char and skips the spaces.
#include <iostream.h>
int count=0,count2=0;
int strLength=0;

int main()
{
	unsigned char Cstr[100] = "this is a program";
	unsigned char Cstr2[100] = "";

    while(Cstr[count] != '\0')
    {
		  if((int)Cstr[count] !=32)	 
		  {
			Cstr2[count2 ] = Cstr[count];
			  count2++;
		  }
			  
			count++;
	  
      strLength++;
    }
    for(count=0;count<strLength;count++) cout<<Cstr2[count]<<"";
    cout<<"\n\n\n";
	return 0;
}

QuestionRe: how to trim Spaces from unsigned char* Pin
David Crow4-May-10 4:20
David Crow4-May-10 4:20 
AnswerRe: how to trim Spaces from unsigned char* Pin
Fareed Rizkalla5-May-10 0:20
Fareed Rizkalla5-May-10 0:20 
QuestionIs it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh4-May-10 2:37
G Haranadh4-May-10 2:37 
QuestionRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»4-May-10 6:19
professional«_Superman_»4-May-10 6:19 
AnswerRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh5-May-10 20:45
G Haranadh5-May-10 20:45 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 6:33
professional«_Superman_»6-May-10 6:33 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh6-May-10 17:49
G Haranadh6-May-10 17:49 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 18:13
professional«_Superman_»6-May-10 18:13 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh6-May-10 19:02
G Haranadh6-May-10 19:02 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 19:03
professional«_Superman_»6-May-10 19:03 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh6-May-10 19:14
G Haranadh6-May-10 19:14 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 19:21
professional«_Superman_»6-May-10 19:21 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
G Haranadh6-May-10 19:45
G Haranadh6-May-10 19:45 
GeneralRe: Is it possible to browse through Hidden Drives. Using VC++/C++? Pin
«_Superman_»6-May-10 19:46
professional«_Superman_»6-May-10 19:46 
Questionhow to find out that there is a value in a subkey or not Pin
learningvisualc4-May-10 1:43
learningvisualc4-May-10 1:43 
AnswerRe: how to find out that there is a value in a subkey or not Pin
Richard MacCutchan4-May-10 1:48
mveRichard MacCutchan4-May-10 1:48 
GeneralRe: how to find out that there is a value in a subkey or not Pin
Michel Godfroid4-May-10 2:03
Michel Godfroid4-May-10 2: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.