Click here to Skip to main content
15,891,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to execute java exe in VC++ 2010 ? Pin
David Crow19-Feb-13 4:32
David Crow19-Feb-13 4:32 
Questionreading cell value from excel through C++ Pin
Magesh Cool17-Feb-13 20:19
Magesh Cool17-Feb-13 20:19 
AnswerRe: reading cell value from excel through C++ Pin
_Flaviu17-Feb-13 21:47
_Flaviu17-Feb-13 21:47 
AnswerRe: reading cell value from excel through C++ Pin
abhi sharma19-Feb-13 1:56
abhi sharma19-Feb-13 1:56 
AnswerRe: reading cell value from excel through C++ Pin
_AnsHUMAN_ 19-Feb-13 3:04
_AnsHUMAN_ 19-Feb-13 3:04 
Generalconvert the code VB6 to VC++ 6. Pin
Asem Alsaif17-Feb-13 7:38
Asem Alsaif17-Feb-13 7:38 
GeneralRe: convert the code VB6 to VC++ 6. Pin
David Crow17-Feb-13 12:17
David Crow17-Feb-13 12:17 
QuestionWinHttpClient code Pin
el_tel17-Feb-13 1:21
el_tel17-Feb-13 1:21 
AnswerRe: WinHttpClient code Pin
Richard MacCutchan17-Feb-13 2:41
mveRichard MacCutchan17-Feb-13 2:41 
GeneralRe: WinHttpClient code Pin
el_tel17-Feb-13 2:43
el_tel17-Feb-13 2:43 
QuestionCSplitter and CTabCtrl - looking for ideas Pin
Vaclav_16-Feb-13 5:53
Vaclav_16-Feb-13 5:53 
Questioncalculator Pin
abhi sharma15-Feb-13 21:45
abhi sharma15-Feb-13 21:45 
AnswerRe: calculator Pin
Jibesh15-Feb-13 22:03
professionalJibesh15-Feb-13 22:03 
AnswerRe: calculator Pin
Thomas Daniels17-Feb-13 4:42
mentorThomas Daniels17-Feb-13 4:42 
AnswerRe: calculator Pin
庄伟东17-Feb-13 15:30
庄伟东17-Feb-13 15:30 
QuestionHo to add auto scroll feature on Dialog box? Pin
VCProgrammer15-Feb-13 20:11
VCProgrammer15-Feb-13 20:11 
AnswerRe: Ho to add auto scroll feature on Dialog box? Pin
Richard MacCutchan15-Feb-13 22:21
mveRichard MacCutchan15-Feb-13 22:21 
GeneralRe: Ho to add auto scroll feature on Dialog box? Pin
VCProgrammer17-Feb-13 17:30
VCProgrammer17-Feb-13 17:30 
AnswerRe: Ho to add auto scroll feature on Dialog box? Pin
_Flaviu17-Feb-13 19:54
_Flaviu17-Feb-13 19:54 
QuestionClient Certificates in WinHTTP Pin
basementman15-Feb-13 9:27
basementman15-Feb-13 9:27 
QuestionPossible to resolve the question ... in a short time Pin
Haiathem alhmoud15-Feb-13 7:48
Haiathem alhmoud15-Feb-13 7:48 
) If two dice are rolled. what is the probability of getting (1, 2), or (2, 3) and so on. We can answer
these questions analytically, but you need to write a code to verify the results. You can do that
following the steps:
a. Write a function rollDices that takes two parameters as output parameters (return values through
them). The function when called should return two random integers, each one between 1 and 6,
where each one represent the value of a rolled die.
Use the following code to generate a random number between a and b. We seed the random
number generator using srand function as shown below.#include <time.h>
#include <stdlib.h>
using namespace std;
//... you other functions ...
int main () {
// seed random number generator
srand ( time(NULL) );
// your other code here
// generate a random number between 1 and 10
int randomNumber = rand() % 10 + 1;
}
b. Write another function rollProb that takes a two dimensional array 6x6 and an integer
numberOfRolls. The function should call the rollDices function numberOfRolls times, and for
each call it should increment the corresponding cell in the array.
c. Your main program should prompt the user for the numberOfRolls and calls the function rollProb
and then prints the probability of obtaining each pair of values. Try it with 4 different number of
rolls: 100, 1000, 10000, 100000. I will explain it more in class.
AnswerRe: Possible to resolve the question ... in a short time Pin
jeron115-Feb-13 8:08
jeron115-Feb-13 8:08 
AnswerRe: Possible to resolve the question ... in a short time Pin
David Crow16-Feb-13 14:56
David Crow16-Feb-13 14:56 
QuestionWindows 8 Modified Windows API List... Pin
Blake Miller15-Feb-13 7:35
Blake Miller15-Feb-13 7:35 
AnswerRe: Windows 8 Modified Windows API List... Pin
Richard MacCutchan15-Feb-13 22:18
mveRichard MacCutchan15-Feb-13 22:18 

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.