Use if and goto. Not tested, cos I rarely use gotos: int i=0; :loop printf("%d "); i++; if (i<10) goto loop;
Well you know more about Psoc than me. I've only been using PICs so far. 1. depends on the project requirements. An ADC takes an amount of time...
16 decimal is 0x10 in hexadecimal, are you sure the register really contains only 10 decimal and that you're not misreading hex output? What does...
Which compiler are you using? Which microcontroller (specify exactly, e.g. Microchip PIC16F887)? What hardware is it connected to? Post a circuit...
Nope, you have to figure it out yourself. We don't do homework here. But if you're stuck, post the code you've got and explain what the problem...
How far have you got and where are you stuck? Post the code you've written so far.
Hint: abs.
http://lmgtfy.com/?q=Class+diagram
1. Yes 2. Yes 3. Writing C++ programs. It's not much use for anything else. This is all "competent programmer" stuff though. I suggest you...
int a=12; int b=33; int sum; sum=a+b; cout << a << "+" << b << "=" << sum << endl;
Semaphores are done differently on Windows than on Unix/Linux. sem.h and the related libraries are Unix. If you're programming Windows then...
> Can I call free with the argument ptr in main? Yes. > And what if I wrote the following...? You would have a memory leak because you would...
OK, post your code, and tell us what's wrong with it. Is it doing something you don't expect? Or not doing something that you do expect? We're...
msdn.microsoft.com It's not as simple as just adding windows.h to your project; you need the full Windows SDK.
Validating means checking for errors and, optionally, not allowing the user to continue if the data is not correct. So if the user has to enter a...
Your code doesn't use fgets or gets. What is the problem? Does string[s] not contain what you expect? Have you RTFM on scanf?
Does it work? Build it and if it builds, run it, and enter some data, and see if the displayed output is what you expected. If so, well done!...
How far have you got and where are you stuck? We won't do your assignment for you, but don't mind giving some hints. Also please use code tags...
"allot" isn't a word, or if it is, it doesn't mean "a lot". Let's see what happens if we use the "a xyyy"="axxyyy" principle some more... Your...
Go4Expert isn't a site about trojans, viruses and so on. This site is about helping people, not about making them miserable by f*cking up their...
Separate names with a comma.