No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello! I'm having a very difficult time with this problem. What I'm trying to do is generate a sine wave for a specific frequency and output it as raw pcm data to a file. The sine wave is generated as follows: [code] samples[i]=static_cast<int>(32767 * amplitude * sin(static_cast<double>(i)*scale) ); [/code] where … |
|
Re:
I am using Visual C++ 6.0 and am getting, "error C2447: missing function header (old-style formal list?)" The code is: #include <stdafx.h> { int main (); printf("Fuck off Asshole.\n You suck. \n Bit Me Dickhead\n"); return 0 } I cannot figure out what is going wrong. |
|
Suppose I have a class, Animal, that contains the virtual method eat(). Now suppose Dog is derived from Animal, and also implements eat(). Now somewhere else, I have a class Barn with a feed method that takes Animal& as a parameter. How can I force class Barn to call Dog's … |
|
Re:
I am using BloodshedDev-CPP GNU. Assembly codes are written in this format : int Variable=45; /*a random value*/ __asm(mov %ax,_Degisken); The crap compiler uses 'AT&T Assembly Syntax'. The problem is I don't know that AT&T stuff and I want to call some interrupts in my program. In the [I]normal[/I] assambly … |