Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL exported function Signature Pin
David Crow5-May-03 3:46
David Crow5-May-03 3:46 
GeneralRe: DLL exported function Signature Pin
John R. Shaw5-May-03 7:05
John R. Shaw5-May-03 7:05 
GeneralDLL question...driving me crazy though! Pin
pankajdaga1-May-03 22:58
pankajdaga1-May-03 22:58 
GeneralRe: DLL question...driving me crazy though! Pin
John R. Shaw2-May-03 19:26
John R. Shaw2-May-03 19:26 
GeneralRe: DLL question...driving me crazy though! Pin
pankajdaga3-May-03 3:43
pankajdaga3-May-03 3:43 
Generalcreate a sine wave and sample it Pin
flora_k1-May-03 22:54
flora_k1-May-03 22:54 
GeneralRe: create a sine wave and sample it Pin
jmkhael2-May-03 3:06
jmkhael2-May-03 3:06 
GeneralRe: create a sine wave and sample it Pin
jhaga2-May-03 3:59
professionaljhaga2-May-03 3:59 
Or like this:

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

#define PI 3.1415926

int main(int argc, char **argv){
double h, x,i,m;

h=15; // number of samples
m=2*PI/h; // sample interval

// create one sinus wave = 360 dgr
for (i=m; i<2*PI;) {
x = sin(i) ;
printf("At time %2.1f %f\n", i, x);
i=i+m;
}
return 0;
}

and display like this
http://www.charlespetzold.com/pw5/SineWave.c

jhaga
GeneralRe: create a sine wave and sample it Pin
flora_k4-May-03 22:49
flora_k4-May-03 22:49 
GeneralRe: create a sine wave and sample it Pin
jhaga5-May-03 3:17
professionaljhaga5-May-03 3:17 
GeneralRe: create a sine wave and sample it Pin
John R. Shaw2-May-03 20:16
John R. Shaw2-May-03 20:16 
GeneralAspect Ratio Setting Pin
Prog Mmer1-May-03 22:28
Prog Mmer1-May-03 22:28 
GeneralATL dll's Pin
Mazdak1-May-03 22:02
Mazdak1-May-03 22:02 
GeneralExplorer style File Dialog Pin
vin1-May-03 21:46
vin1-May-03 21:46 
GeneralRe: Explorer style File Dialog Pin
Hans Ruck2-May-03 0:51
Hans Ruck2-May-03 0:51 
QuestionDoxygen for COM? Pin
Davy Mitchell1-May-03 21:25
Davy Mitchell1-May-03 21:25 
Questionhow to apply xp theme to the vc6 projects Pin
User 160551-May-03 20:53
User 160551-May-03 20:53 
AnswerRe: how to apply xp theme to the vc6 projects Pin
Gary R. Wheeler4-May-03 3:07
Gary R. Wheeler4-May-03 3:07 
GeneralString assignment blackout Pin
Ron Levine1-May-03 20:44
Ron Levine1-May-03 20:44 
GeneralRe: String assignment blackout Pin
Toni781-May-03 21:15
Toni781-May-03 21:15 
GeneralRe: String assignment blackout Pin
Anonymous1-May-03 21:31
Anonymous1-May-03 21:31 
GeneralRe: String assignment blackout Pin
jhaga1-May-03 22:57
professionaljhaga1-May-03 22:57 
GeneralRe: String assignment blackout Pin
David Crow2-May-03 4:49
David Crow2-May-03 4:49 
GeneralRe: String assignment blackout Pin
basementman2-May-03 9:16
basementman2-May-03 9:16 
Generaloperator<< question Pin
Anonymous1-May-03 19:53
Anonymous1-May-03 19:53 

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.