- This topic has 1 reply, 1 voice, and was last updated 17 years, 5 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › easy one
1 2 3 4 5 6 7 8 9 10 | DWORD i;<br /> for (i=0; i<read; i++)<br /> if("%i ", (unsigned char)buf){<br /> printf ("%i ", (unsigned char)buf);<br /> printf ("- this value was sent to the serial port and returned through the loopback.");<br /> }<br /> else{<br /> printf("Bad or No LoopBack");<br /> // okay I put the loop back on and it prints fine - take the loopback out and else doesnt print this is simple isnt it. What am I doing wrong?<br /> } |
//I finally got it werking…
1 2 3 4 5 6 7 8 9 10 | DWORD i;<br /> for (i=0; i<read; i++)<br /> if("%i ", (unsigned char)buf){<br /> printf ("%i ", (unsigned char)buf);<br /> std::cout << "- This value was sent to the serial n "<br /> << " port and returned thru loopback." << std::endl ;<br /> }<br /> else;<br /> if(!read )<br /> std::cout << "No loopback installed."; |