Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to store a file in a single variable? Pin
Paulraj G15-Nov-09 17:44
Paulraj G15-Nov-09 17:44 
AnswerRe: How to store a file in a single variable? Pin
Adam Roderick J15-Nov-09 18:20
Adam Roderick J15-Nov-09 18:20 
GeneralRe: How to store a file in a single variable? Pin
Paulraj G15-Nov-09 18:22
Paulraj G15-Nov-09 18:22 
Questionprint it only if it is not a duplicate [modified][solved] Pin
Omegaclass15-Nov-09 14:01
Omegaclass15-Nov-09 14:01 
AnswerRe: print it only if it is not a duplicate Pin
Chris Losinger15-Nov-09 15:16
professionalChris Losinger15-Nov-09 15:16 
GeneralRe: print it only if it is not a duplicate Pin
Omegaclass19-Nov-09 20:56
Omegaclass19-Nov-09 20:56 
GeneralRe: print it only if it is not a duplicate Pin
Chris Losinger20-Nov-09 4:32
professionalChris Losinger20-Nov-09 4:32 
GeneralRe: print it only if it is not a duplicate Pin
Omegaclass20-Nov-09 14:56
Omegaclass20-Nov-09 14:56 
Thanks Chris for taking your valuable time and helping me out, i really want to learn c++ and plan to take OOP next semester. so far my grades are in the low 90's and don't want to blow it towards the end of this semester.

dose all this belong in the same for loop? i am not sure what you are 
saying in "read a value" could this be what you are 
saying, "newVal = read_a_value[i];" or is 
this it "newVal = rand()%91+10;" 


how do i implement "see if you've already read that number" if after the 
2nd number i will need to see if the previous number has been read and 
chick if it's a duplicate. and each time a new number is generated it 
must be checked to the others to see if its already there. i am having 
a hard time visualizing the logic and i really do appreciate your time 
to help me with this.  



for loop 0 to 20, i
{

   // read a value
   int newVal = read_a_value;

   // see if you've already read that value
   bFound = false

// loop over stored numbers
   loop 0 to numStored
      // if it's in the storage array, set the bFound flag
      if storage[i] = newVal 
         bFound = true
         break

}

GeneralRe: print it only if it is not a duplicate Pin
Chris Losinger20-Nov-09 15:16
professionalChris Losinger20-Nov-09 15:16 
GeneralRe: print it only if it is not a duplicate Pin
Omegaclass21-Nov-09 20:31
Omegaclass21-Nov-09 20:31 
QuestionHooking CreateRemoteThread [modified] Pin
hxhl9515-Nov-09 13:50
hxhl9515-Nov-09 13:50 
AnswerRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 16:56
Naveen15-Nov-09 16:56 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:09
hxhl9515-Nov-09 17:09 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:17
Naveen15-Nov-09 17:17 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:20
hxhl9515-Nov-09 17:20 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:32
Naveen15-Nov-09 17:32 
GeneralRe: Hooking CreateRemoteThread Pin
hxhl9515-Nov-09 17:39
hxhl9515-Nov-09 17:39 
GeneralRe: Hooking CreateRemoteThread Pin
Naveen15-Nov-09 17:59
Naveen15-Nov-09 17:59 
QuestionWhat Windows API function is called to create / show a dialog box. Pin
hongheo7615-Nov-09 11:43
hongheo7615-Nov-09 11:43 
AnswerRe: What Windows API function is called to create / show a dialog box. Pin
Code-o-mat15-Nov-09 20:25
Code-o-mat15-Nov-09 20:25 
QuestionProblem debugging an app with VC++ Pin
timbk15-Nov-09 10:09
timbk15-Nov-09 10:09 
AnswerRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 10:58
professionalChris Losinger15-Nov-09 10:58 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 14:23
timbk15-Nov-09 14:23 
GeneralRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 14:43
professionalChris Losinger15-Nov-09 14:43 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:01
timbk15-Nov-09 15:01 

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.