Click here to Skip to main content
15,881,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to built FAT mounter in c++ Pin
AtifKahn6-Jul-10 18:33
AtifKahn6-Jul-10 18:33 
AnswerRe: How to built FAT mounter in c++ Pin
Richard MacCutchan6-Jul-10 21:30
mveRichard MacCutchan6-Jul-10 21:30 
GeneralRe: How to built FAT mounter in c++ Pin
AtifKahn8-Jul-10 18:31
AtifKahn8-Jul-10 18:31 
GeneralRe: How to built FAT mounter in c++ Pin
Richard MacCutchan9-Jul-10 21:26
mveRichard MacCutchan9-Jul-10 21:26 
QuestionRemoving white space Pin
T.RATHA KRISHNAN6-Jul-10 18:23
T.RATHA KRISHNAN6-Jul-10 18:23 
AnswerRe: Removing white space Pin
«_Superman_»6-Jul-10 20:18
professional«_Superman_»6-Jul-10 20:18 
AnswerRe: Removing white space Pin
Richard MacCutchan6-Jul-10 21:32
mveRichard MacCutchan6-Jul-10 21:32 
Questionfind a effictive way!! Pin
wbgxx6-Jul-10 17:46
wbgxx6-Jul-10 17:46 
for example there is a four bits integer 1122, if someone guess and inout 1234, because 1 and 2 are in 1122, and the position is same, the computer will tell you that you are right with two numbers and they are 1 and 2;
as follows is my program, I thinnk they are too complex , could some tell me a simple algorithm, thinks in advantage

#include <stdio.h><br />
#include <stdlib.h><br />
<br />
int main()<br />
{<br />
	int data1 = 1234;<br />
	int data2;<br />
	int gewei1, shiwei1, baiwei1, qianwei1;<br />
	int gewei2, shiwei2, baiwei2, qianwei2;<br />
	int count = 0;<br />
	<br />
	gewei1 = data1%10;<br />
	shiwei1 = (data1%100)/10;<br />
	baiwei1 = (data1%1000)/100;<br />
	qianwei1 = data1 /1000;<br />
	<br />
	int arr1[4] = {qianwei1, baiwei1, shiwei1, gewei1};<br />
	<br />
	printf("Please Enter a interger:");<br />
	scanf("%d", &data2);<br />
	<br />
	gewei2 = data2%10;<br />
	shiwei2 = (data2%100)/10;<br />
	baiwei2 = (data2%1000)/100;<br />
	qianwei2 = data2 /1000;<br />
	int arr2[4] = {qianwei2, baiwei2, shiwei2, gewei2};<br />
	<br />
	for (int i=0; i<4; i++)<br />
	{<br />
		if(arr1[i] == arr2[i])<br />
			{<br />
				printf("%d ", arr1[i]);<br />
				count++;<br />
			}<br />
		else<br />
		    continue;<br />
	}<br />
	printf("the same number is %d ", count);<br />
	return 0;<br />
}

AnswerRe: find a effictive way!! Pin
CPallini6-Jul-10 20:48
mveCPallini6-Jul-10 20:48 
AnswerRe: find a effictive way!! Pin
Richard MacCutchan6-Jul-10 21:35
mveRichard MacCutchan6-Jul-10 21:35 
GeneralRe: find a effictive way!! Pin
wbgxx6-Jul-10 21:56
wbgxx6-Jul-10 21:56 
GeneralRe: find a effictive way!! Pin
Richard MacCutchan7-Jul-10 2:48
mveRichard MacCutchan7-Jul-10 2:48 
QuestionIME Pin
Ed SHaw6-Jul-10 13:46
Ed SHaw6-Jul-10 13:46 
Questionc++ code to solve M simultanous linear equations with N variables - N<M Pin
mrby1236-Jul-10 12:42
mrby1236-Jul-10 12:42 
AnswerRe: c++ code to solve M simultanous linear equations with N variables - N<M Pin
Maximilien6-Jul-10 13:22
Maximilien6-Jul-10 13:22 
AnswerRe: c++ code to solve M simultanous linear equations with N variables - N<M Pin
Stephen Hewitt6-Jul-10 13:37
Stephen Hewitt6-Jul-10 13:37 
QuestionMFC debug version mfc90d.dll issue Pin
kasi146-Jul-10 8:35
kasi146-Jul-10 8:35 
AnswerRe: MFC debug version mfc90d.dll issue Pin
Maximilien6-Jul-10 10:22
Maximilien6-Jul-10 10:22 
GeneralRe: MFC debug version mfc90d.dll issue Pin
kasi146-Jul-10 13:00
kasi146-Jul-10 13:00 
Questioncan not see progress in the progress Bar Pin
mrby1236-Jul-10 7:51
mrby1236-Jul-10 7:51 
QuestionRe: can not see progress in the progress Bar Pin
David Crow6-Jul-10 7:54
David Crow6-Jul-10 7:54 
AnswerRe: can not see progress in the progress Bar Pin
mrby1236-Jul-10 8:19
mrby1236-Jul-10 8:19 
GeneralRe: can not see progress in the progress Bar Pin
Cedric Moonen6-Jul-10 9:54
Cedric Moonen6-Jul-10 9:54 
QuestionHow to build 64bit SDI with MFC? [modified] Pin
hztj20056-Jul-10 7:24
hztj20056-Jul-10 7:24 
QuestionRe: How to build 64bit SDI with MFC? Pin
David Crow6-Jul-10 7:52
David Crow6-Jul-10 7:52 

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.