Click here to Skip to main content
15,914,209 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Taskbar button Pin
ThatsAlok14-Jun-05 23:41
ThatsAlok14-Jun-05 23:41 
GeneralRe: Taskbar button Pin
Ravi Bhavnani16-Jun-05 6:04
professionalRavi Bhavnani16-Jun-05 6:04 
QuestionCreateEx memory leak? Pin
Tomer Kanza14-Jun-05 23:17
Tomer Kanza14-Jun-05 23:17 
AnswerRe: CreateEx memory leak? Pin
Alexander M.,15-Jun-05 5:41
Alexander M.,15-Jun-05 5:41 
GeneralRe: CreateEx memory leak? Pin
Tomer Kanza15-Jun-05 6:11
Tomer Kanza15-Jun-05 6:11 
GeneralRe: CreateEx memory leak? Pin
Alexander M.,15-Jun-05 9:30
Alexander M.,15-Jun-05 9:30 
GeneralRe: CreateEx memory leak? Pin
Tomer Kanza16-Jun-05 0:03
Tomer Kanza16-Jun-05 0:03 
GeneralArray Problem Pin
aaadetos14-Jun-05 22:41
aaadetos14-Jun-05 22:41 
Hi,
im trying to use the specific value of an array in a computation in another function; but don't know how to set it up. In test(), i want to use the 6th value of C[] in the computation. How do i set this up please?
<br />
#include "stdafx.h"<br />
#include <cmath><br />
<br />
const int size = 10;<br />
double A[size] = {0},B[size] = {0}, C[size],c,d;<br />
<br />
double PI = 3.141592653589793238462643383279502884197;<br />
<br />
void rah(double C[])<br />
{<br />
<br />
	for (int i=0;i<size;i++)<br />
	{<br />
		A[i] = sqrt(10*i);<br />
		B[i] = 2*PI*i;<br />
		C[i] = A[i]*B[i];<br />
	}<br />
}<br />
<br />
double test()//how do i write this correctly?<br />
{<br />
	rah(C);<br />
	d = PI * rah(C[5]);<br />
<br />
}<br />
<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
	test();<br />
//	printf("Hello World!\n");<br />
	return 0;<br />
}<br />
<br />

GeneralRe: Array Problem Pin
narendra_ b14-Jun-05 23:48
narendra_ b14-Jun-05 23:48 
GeneralRe: Array Problem Pin
David Crow15-Jun-05 5:14
David Crow15-Jun-05 5:14 
GeneralRe: Array Problem Pin
aaadetos15-Jun-05 6:58
aaadetos15-Jun-05 6:58 
GeneralRe: Array Problem Pin
David Crow15-Jun-05 7:35
David Crow15-Jun-05 7:35 
GeneralMultiple options Pin
Rostfrei14-Jun-05 22:33
Rostfrei14-Jun-05 22:33 
GeneralRe: Multiple options Pin
Cedric Moonen14-Jun-05 22:39
Cedric Moonen14-Jun-05 22:39 
GeneralRe: Multiple options Pin
Rostfrei14-Jun-05 23:12
Rostfrei14-Jun-05 23:12 
Questionchange Location URL in IE using BHO? Pin
ThinkingPrometheus14-Jun-05 21:47
ThinkingPrometheus14-Jun-05 21:47 
GeneralActiveX Setup program Pin
Anonymous14-Jun-05 21:25
Anonymous14-Jun-05 21:25 
GeneralRe: ActiveX Setup program Pin
Cedric Moonen14-Jun-05 21:52
Cedric Moonen14-Jun-05 21:52 
GeneralActiveX in Excel Pin
Mimmi51114-Jun-05 21:01
Mimmi51114-Jun-05 21:01 
General#include ... Pin
pardis14-Jun-05 20:43
pardis14-Jun-05 20:43 
GeneralRe: #include ... Pin
Bob Stanneveld14-Jun-05 20:45
Bob Stanneveld14-Jun-05 20:45 
GeneralRe: #include ... Pin
Rick York15-Jun-05 8:21
mveRick York15-Jun-05 8:21 
GeneralTab Icon Pin
LiYS14-Jun-05 20:06
LiYS14-Jun-05 20:06 
Generalclient-server application Pin
ask_you14-Jun-05 20:03
ask_you14-Jun-05 20:03 
GeneralRe: client-server application Pin
ThatsAlok14-Jun-05 21:13
ThatsAlok14-Jun-05 21:13 

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.