Click here to Skip to main content

C / C++ / MFC

 
GeneralRe: Windows has triggered a breakpoint in exe....... PinmemberAndraw11123-Jul-12 7:24 
GeneralRe: Windows has triggered a breakpoint in exe....... PinmvpRichard MacCutchan23-Jul-12 8:14 
GeneralRe: Windows has triggered a breakpoint in exe....... PinmemberStephen Hewitt20-Jul-12 7:55 
Generalerror C2491: 'XXX'::entries' : definition of dllimport function not allowed PinmemberAndraw11119-Jul-12 5:51 
AnswerRe: error C2491: 'XXX'::entries' : definition of dllimport function not allowed PinmemberAlbert Holguin19-Jul-12 6:09 
GeneralRe: error C2491: 'XXX'::entries' : definition of dllimport function not allowed PinmemberAndraw11119-Jul-12 6:35 
Generalerror C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 PinmemberAndraw11119-Jul-12 5:20 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 PinmemberChris Losinger19-Jul-12 5:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 PinmemberStephen Hewitt19-Jul-12 5:27 
GeneralRe: error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'int' In VS2008 PinmemberAndraw11119-Jul-12 5:35 
Questionc++ code Pinmemberphineas kimathi19-Jul-12 3:46 
AnswerRe: c++ code PinmvpRichard MacCutchan19-Jul-12 4:21 
AnswerRe: c++ code PinmemberRajesh R Subramanian19-Jul-12 4:34 
AnswerRe: c++ code PinmemberTopCoder2319-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 PinmvpRichard MacCutchan19-Jul-12 23:20 
SuggestionRe: c++ code PinmemberDavidCrow20-Jul-12 3:29 
GeneralRe: c++ code PinmemberTopCoder2320-Jul-12 4:30 
QuestionError happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11118-Jul-12 10:16 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAlbert Holguin18-Jul-12 10:47 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11118-Jul-12 11:01 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAlbert Holguin18-Jul-12 12:35 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmvpRichard MacCutchan18-Jul-12 22:59 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11119-Jul-12 4:29 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11119-Jul-12 6:40 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11119-Jul-12 7:17 
GeneralRe: Error happen when open file while migrate VC++ 6 to VS2008 PinmemberAndraw11119-Jul-12 7:25 
AnswerRe: Error happen when open file while migrate VC++ 6 to VS2008 Pinmemberjschell20-Jul-12 8:15 
Generalsearch for a word in a text file Pinmemberbyank18-Jul-12 3:14 
QuestionRe: search for a word in a text file PinmemberDavidCrow18-Jul-12 3:18 
AnswerRe: search for a word in a text file Pinmemberbyank19-Jul-12 12:00 
GeneralRe: search for a word in a text file PinmemberDavidCrow20-Jul-12 3:24 
GeneralRe: search for a word in a text file PinmemberShaunak De20-Jul-12 4:17 
GeneralRe: search for a word in a text file PinmemberDavidCrow20-Jul-12 5:51 
GeneralRe: search for a word in a text file Pinmemberbyank20-Jul-12 8:28 
GeneralRe: search for a word in a text file PinmemberTopCoder2318-Jul-12 4:40 
GeneralRe: search for a word in a text file Pinmemberbyank19-Jul-12 12:05 
QuestionParseExact - parsing a date with a given format in C++ / MFC PinmemberBadJerry18-Jul-12 1:50 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberJochen Arndt18-Jul-12 3:27 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan18-Jul-12 4:20 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC [modified] PinmemberBadJerry18-Jul-12 4:32 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberTopCoder2318-Jul-12 5:54 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberBadJerry18-Jul-12 6:41 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan18-Jul-12 8:39 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC Pinmemberjschell20-Jul-12 8:28 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmvpRichard MacCutchan20-Jul-12 10:21 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberTopCoder2318-Jul-12 22:12 
AnswerRe: ParseExact - parsing a date with a given format in C++ / MFC Pinmemberkrmed18-Jul-12 11:04 
GeneralRe: ParseExact - parsing a date with a given format in C++ / MFC PinmemberBadJerry18-Jul-12 23:45 
GeneralRe: COleDateTime::Format("%A, %B %d, %Y") PinmemberTopCoder2319-Jul-12 7:16 
GeneralRe: COleDateTime::Format("%A, %B %d, %Y") PinmemberBadJerry19-Jul-12 8:08 

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
Web03 | 2.8.150128.1 | Last Updated 29 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid