Click here to Skip to main content
11,412,526 members (71,176 online)

C / C++ / MFC

 
Generalerror C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Andraw111 at 19-Jul-12 5:20
memberAndraw11119-Jul-12 5:20 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Chris Losinger at 19-Jul-12 5:27
memberChris Losinger19-Jul-12 5:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Stephen Hewitt at 19-Jul-12 5:27
memberStephen Hewitt19-Jul-12 5:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 Pin
Andraw111 at 19-Jul-12 5:35
memberAndraw11119-Jul-12 5:35 
Questionc++ code Pin
phineas kimathi at 19-Jul-12 3:46
memberphineas kimathi19-Jul-12 3:46 
AnswerRe: c++ code Pin
Richard MacCutchan at 19-Jul-12 4:21
mvpRichard MacCutchan19-Jul-12 4:21 
AnswerRe: c++ code Pin
Rajesh R Subramanian at 19-Jul-12 4:34
memberRajesh R Subramanian19-Jul-12 4:34 
AnswerRe: c++ code Pin
TopCoder23 at 19-Jul-12 7:52
memberTopCoder2319-Jul-12 7:52 
The integer difference between a lowercase char and a uppercase char when subtracted is 32.
simply subtract the lowercase by 32 to get a uppercase char.

 
#include <stdio.h>
#include <string.h>
 
int main(void)
{
	char strchr[32] = "the quick fox";
	int strlength=strlen(strchr);
 
        printf("Before\n" );
	printf("%s\n\n", strchr);
 
	for (int i=0; i<strlength; i++) 
	{
		if((strchr[i] >= 97) && (strchr[i] <= 122)) 
		{
			strchr[i] = strchr[i] -32;
			
		}
	}
        printf("After\n" );	 
	printf("%s\n\n", strchr);
 
return(0);
 
} 

GeneralRe: c++ code Pin
Richard MacCutchan at 19-Jul-12 23:20
mvpRichard MacCutchan19-Jul-12 23:20 
SuggestionRe: c++ code Pin
DavidCrow at 20-Jul-12 3:29
memberDavidCrow20-Jul-12 3:29 
GeneralRe: c++ code Pin
TopCoder23 at 20-Jul-12 4:30
memberTopCoder2320-Jul-12 4:30 
QuestionError happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 18-Jul-12 10:16
memberAndraw11118-Jul-12 10:16 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Albert Holguin at 18-Jul-12 10:47
memberAlbert Holguin18-Jul-12 10:47 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 18-Jul-12 11:01
memberAndraw11118-Jul-12 11:01 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Albert Holguin at 18-Jul-12 12:35
memberAlbert Holguin18-Jul-12 12:35 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Richard MacCutchan at 18-Jul-12 22:59
mvpRichard MacCutchan18-Jul-12 22:59 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 19-Jul-12 4:29
memberAndraw11119-Jul-12 4:29 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 19-Jul-12 6:40
memberAndraw11119-Jul-12 6:40 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 19-Jul-12 7:17
memberAndraw11119-Jul-12 7:17 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
Andraw111 at 19-Jul-12 7:25
memberAndraw11119-Jul-12 7:25 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 Pin
jschell at 20-Jul-12 8:15
memberjschell20-Jul-12 8:15 
Generalsearch for a word in a text file Pin
byank at 18-Jul-12 3:14
memberbyank18-Jul-12 3:14 
QuestionRe: search for a word in a text file Pin
DavidCrow at 18-Jul-12 3:18
memberDavidCrow18-Jul-12 3:18 
AnswerRe: search for a word in a text file Pin
byank at 19-Jul-12 12:00
memberbyank19-Jul-12 12:00 
GeneralRe: search for a word in a text file Pin
DavidCrow at 20-Jul-12 3:24
memberDavidCrow20-Jul-12 3:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150427.1 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid