i need a complete C program to draw a sin curve without any application and the output should be displayed in dos prompt. can anyone please help me
kamal85
0
Newbie Poster
Recommended Answers
Jump to PostThat's a C++ program btw, not C.
To make it C:
#define _WIN32_WINNT 0x0500 #include <windows.h> #include <stdio.h> #include <math.h> int main() { HWND console = GetConsoleWindow(); HDC dc = GetDC(console); int pixel = 0; unsigned int loopcounter = 0; unsigned int loopmax = 126; COLORREF …
All 4 Replies
Clockowl
56
Posting Whiz
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Clockowl
56
Posting Whiz
Nick Evan
commented:
Thanks for the heads up!
+6
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.