Forum: C++ Dec 13th, 2008 |
| Replies: 15 Views: 1,078 This looks like C not C++, so look into creating structs. |
Forum: C++ Nov 15th, 2008 |
| Replies: 18 Views: 2,645 Have a microcontroller generate the PWM.
You can communicate with the microcontroller using the PC. |
Forum: C++ Sep 22nd, 2008 |
| Replies: 10 Views: 1,750 An XY graph with amplitude on Y-axis and time on the X-axis. Excel or any software with good graphing capabitlites should do.
This is how 5 samples of 8-bit PCM with a sampling frequency of 1KHz... |
Forum: C++ Sep 21st, 2008 |
| Replies: 10 Views: 1,750 http://www.intmath.com/Fourier-series/7_Fast-fourier-transform-FFT.php
I believe that's only useful for describing
the wave mathematically, as a series of sines and cos waves added together... |
Forum: C++ Sep 19th, 2008 |
| Replies: 10 Views: 1,750 Are you able to obtain an amplitude for every sample from beginning to end from the wav file? That's the information you need.
So if the wave is sampled at 44.1 KHz, you have an amplitude at every... |
Forum: C++ Sep 18th, 2008 |
| Replies: 4 Views: 3,913 The parallel port is the most simplest port you'll find on a computer and could do those things for you. I'd start there (providing you have a parallel port). Your operating system is also a factor. |
Forum: C++ Aug 24th, 2008 |
| Replies: 4 Views: 1,295 A loopback test would verify that.
http://zone.ni.com/devzone/cda/tut/p/id/3450 |
Forum: C++ Aug 3rd, 2008 |
| Replies: 8 Views: 843 Some programs don't need human interaction directly. Just look at some of the programs that make up the software installed on your computer, or belong to your OS.
Frontends are often written for... |
Forum: C++ Jun 21st, 2008 |
| Replies: 2 Views: 3,312 Division is repeated subtraction.
6/3 = 2.
3 can be subtracted from 6 twice, until you're left with zero. Which explains why dividing by 0 is infinity.
Multiplication is simply repeated addition.... |
Forum: C++ May 29th, 2008 |
| Replies: 3 Views: 950 Yes. You'd need to limit rand to the amount of cards in a deck.
You'd typically use a switch statement instead of the if/else's there. You'll need a for loop to check if the card has already been... |
Forum: C++ Apr 30th, 2008 |
| Replies: 10 Views: 4,368 You'll have no problem there, you have the World Wide Web at your fingertips and it contains
countless examples of how to reverse strings. |
Forum: C++ Apr 30th, 2008 |
| Replies: 10 Views: 4,368 If this is C++, best to avoid functions like sprintf.
If your ints are one digit, you can add '0' to them to make them char.
If they are multidigit, you can convert them to a C++ string like... |
Forum: C++ Apr 30th, 2008 |
| Replies: 10 Views: 4,368 itoa is a non-standard function.
Have a look at sprintf instead. http://www.cplusplus.com/reference/clibrary/cstdio/sprintf.html |
Forum: C++ Apr 30th, 2008 |
| Replies: 5 Views: 624 Code::Blocks
http://www.codeblocks.org/
It comes with GCC and has support for numerous others. |
Forum: C++ Apr 30th, 2008 |
| Replies: 4 Views: 765 A timer interrupt is generally one that uses the processor's clock to generate an interrupt periodically, not one that uses an outside signal. |
Forum: C++ Apr 28th, 2008 |
| Replies: 5 Views: 2,035 No. Don't learn C if you want to learn C++.
It make things worse. Just start with C++ if you want to learn C++. |
Forum: C++ Apr 27th, 2008 |
| Replies: 9 Views: 673 http://images.google.ie/images?hl=en&safe=off&q=flowchart&um=1&ie=UTF-8&sa=N&tab=wi |
Forum: C++ Apr 20th, 2008 |
| Replies: 13 Views: 914 Hi Nimz. When declaring variables, there's a few rules. Scroll down to Names in C++ here
http://www.functionx.com/cppcli/variables/Lesson03.htm
See then if you can spot anything wrong with how... |
Forum: C++ Apr 19th, 2008 |
| Replies: 9 Views: 3,394 It won't work. The serial port has a maximum output current and will try to charge the cap with an unlimited amount of current.
We still don't know why he wants to do this. |
Forum: C++ Apr 19th, 2008 |
| Replies: 9 Views: 3,394 It won't work and you will probably fry the port. Why are you trying to do this? |
Forum: C++ Feb 26th, 2008 |
| Replies: 10 Views: 1,215 There is another programmer for that chip with source if you're interested. For windows and linux.
http://www.geocities.com/dinceraydin/8051/ |
Forum: C++ Feb 24th, 2008 |
| Replies: 10 Views: 1,215 |
Forum: C++ Feb 5th, 2008 |
| Replies: 21 Views: 8,039 Why would you attempt to start writing code to control a circuit if you're not sure of it's wiring.
Everything about the motor, you should find in the datasheet.
There's a stepper motor tutorial... |
Forum: C++ Feb 5th, 2008 |
| Replies: 4 Views: 3,377 You're calling your functions wrongly. They should look more like this.
rad = radius(x1, y1, x2, y2);
rad, is the value you'd print out as well as pass to your other functions like
area =... |
Forum: C++ Feb 5th, 2008 |
| Replies: 21 Views: 8,039 void main() is fine. There isn't an OS. The code runs in an infinite loop until the power is removed. |
Forum: C++ Feb 1st, 2008 |
| Replies: 2 Views: 827 Division by subtraction is how many times a number can be subtracted from a number until
you're left with nothing.
eg 6/3 = 2. Three can be subtracted from six twice.
Therefore you should be... |
Forum: C++ Jan 31st, 2008 |
| Replies: 2 Views: 1,342 If you have to use graphics.h for this assigment look here
http://www.electrosofts.com/cgraphics/index.html |
Forum: C++ Jan 30th, 2008 |
| Replies: 8 Views: 999 Some if else statements would be better
http://gd.tuwien.ac.at/languages/c/programming-bbrown/c_025.htm
Logical operators... |
Forum: C++ Jan 30th, 2008 |
| Replies: 1 Views: 871 graphics.h is a header for the old Borland compilers. It won't work in your environment.
You'll need TurboC++, but it's for DOS. It should run under XP, but not recommended. |
Forum: C++ Jan 28th, 2008 |
| Replies: 1 Views: 1,273 Which part don't you get? |
Forum: C++ Dec 18th, 2007 |
| Replies: 5 Views: 712 Take a look here at cin.ignore() and cin.get()
http://www.cprogramming.com/tutorial/lesson1.html |
Forum: C++ Dec 16th, 2007 |
| Replies: 10 Views: 2,737 Just to note. It isn't necessary to use binary to work out this example. ASCII goes from 0 to 127.
'a' is 97. If you add 31, you're back to 0. You could add 95 to get the same result. 223 is... |
Forum: C++ May 13th, 2007 |
| Replies: 6 Views: 8,177 F7 to compile and F5 to run. |
Forum: C++ Mar 22nd, 2007 |
| Replies: 8 Views: 2,799 Your question doesn't make sense. C++ is a programming launguage. You can't download C++. |
Forum: C++ Feb 24th, 2007 |
| Replies: 8 Views: 13,211 Oh well, the second half of my post would have worked if the OP hadn't. |
Forum: C++ Feb 23rd, 2007 |
| Replies: 8 Views: 13,211 I think it might be.
outtextxy(13,13,"a")
Or you can do
moveto(13,13);
outtext(a);
Also, if you plan on printing out integers in graphics mode, they need to be converted into a string |
Forum: C++ Jan 18th, 2007 |
| Replies: 11 Views: 5,286 How to Compile C programs in Visual C++ 2005
http://cplus.about.com/od/learningc/qt/compilingc.htm |
Forum: C++ Jan 17th, 2007 |
| Replies: 11 Views: 2,634 |
Forum: C++ Jan 10th, 2007 |
| Replies: 11 Views: 2,634 For a 2 input AND gate, you have 4 possible combination of inputs(0 to 3 in binary) . The output will only be a 1 if the two inputs are a 1, otherwise the output is a 0.
For a 2-4 bit decoder,... |
Forum: C++ Jan 7th, 2007 |
| Replies: 14 Views: 3,088 I'm sure there are some for dummies books that aren't a good idea to buy, but it's unfair to generalise though I'm only recommending the two I've mentioned. |