Search Results

Showing results 1 to 11 of 11
Search took 0.00 seconds.
Search: Posts Made By: hammerhead ; Forum: C and child forums
Forum: C May 11th, 2008
Replies: 23
Views: 2,135
Posted By hammerhead
Perhaps I did not make my statement clearly. I agree with jephthah that assembly should be learned after C/C++ . I dont have much experience at microcontroller programming but I did try my hand at...
Forum: C May 11th, 2008
Replies: 23
Views: 2,135
Posted By hammerhead
I have to agree with jephthah, I have programmed AVR and 8051 both in C. Though there is option to program in assembly but when sometimes it becomes difficult to learn the instruction set especially...
Forum: C Apr 18th, 2008
Replies: 2
Views: 996
Posted By hammerhead
Another alternative.

a=a-b
b=b+a
a=b-a
Forum: C Apr 14th, 2008
Replies: 3
Views: 4,653
Posted By hammerhead
inport() and outport() functions do work if you have opened the port. I use a software called Userport to do the same. Alternatively you could try inportb() and outportb(). Here is a tutorial on...
Forum: C Mar 12th, 2008
Replies: 12
Views: 1,912
Posted By hammerhead
Factorial of any number greater than 5 ends with a zero. For a larger number, the number of zeroes at the end constitute a large part of the number. If you can eliminate those zeroes it will help.
...
Forum: C Mar 10th, 2008
Replies: 4
Views: 810
Posted By hammerhead
What I would suggest is that you make a function of everything starting from "int g;" to the end of the while loop. Then in main() call the function inside another loop as

do
{
function_here();...
Forum: C Mar 9th, 2008
Replies: 21
Views: 9,866
Posted By hammerhead
I dont understand, sum of the subset [5,10] is clearly greater than that of [5,-2,10]
Forum: C Mar 2nd, 2008
Replies: 3
Views: 1,336
Posted By hammerhead
In strcmp you are passing a pointer of node where you should pass a pointer of char.
Forum: C Feb 28th, 2008
Replies: 2
Views: 1,055
Posted By hammerhead
Use else if statement. According to your code, if a=0 and b=0 then both the first and the second if statements will be executed. And the output will be
"There are no solutions"
"There is one...
Forum: C Jan 21st, 2007
Replies: 10
Solved: a moving object
Views: 2,032
Posted By hammerhead
You can clear the entire screen using the cleardevice() function and redraw the square in a loop with the new positions.
Forum: C Jun 3rd, 2006
Replies: 2
Views: 3,545
Posted By hammerhead
You can also try better options for searching such as making the BST threaded.
Showing results 1 to 11 of 11

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC