- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
4 Posted Topics
Here is a code for those who wants Tic Tac Toe [CODE]#include <string.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <io.h> main() { //_setcursortype(_NOCURSOR); int x1=0, x2=0, x3=0, x4=0, x5=0, x6=0, x7=0, x8=0, x9=0; int o1=0, o2=0, o3=0, o4=0, o5=0, o6=0, o7=0, o8=0, o9=0; int a1=0, a2=0, a3=0, a4=0, a5=0, …
Make a while loop to make a number (I called this one divisor) an multiply it by 10 till its larger than the number you're calculating. Then in another loop, you're going to need to divide by divisor, get both the remainder AND the front digit and store them. Don't …
Well i suggest you reading this one. [url]http://www.cprogramming.com/tutorial/c/lesson7.html[/url] Hope it helps! [IMG]http://1.bp.blogspot.com/_IYGc_MWwkfw/S61SVlEz98I/AAAAAAAAA1U/9Q2_gUZwglA/s1600/koma_is_a_mac_addict_by_pixteca_mx_from_flickr_cc-by.jpg[/IMG]
HERES THE CODE: [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int a,b,c,d; cout << "Enter Four Digit positive number: "; a = getch(); cout << char(a); b = getch(); cout << char(b); c = getch(); cout << char(c); d = getch(); cout << char(d); cout << "\nOutput:\n"; …
The End.
mixmagz