Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 15, 2006, 01:26 PM   #1
Quboid
macrumors 6502
 
Join Date: Oct 2006
Location: everywhere
Ascii Graphics??, help

I am about to do my last progmramming assignment and last project for this semester. I making a calculator and i want to use the ascii codes the build the body for it. I can't seem to google the right code table, anyone have an idea. I am looking for codes that would generate a block on the screen through the printf function.
__________________
"My anger far outweighs my guilt"
Quboid is offline   0 Reply With Quote
Old Dec 15, 2006, 01:59 PM   #2
bronxbomber92
macrumors regular
 
Join Date: Nov 2006
I'm not exactly sure what your asking... I think you need to format it your self with printf statements...
bronxbomber92 is offline   0 Reply With Quote
Old Dec 15, 2006, 02:15 PM   #3
Quboid
Thread Starter
macrumors 6502
 
Join Date: Oct 2006
Location: everywhere
Quote:
Originally Posted by bronxbomber92 View Post
I'm not exactly sure what your asking... I think you need to format it your self with printf statements...
i baasically need the ascii code that would print a square for me.
__________________
"My anger far outweighs my guilt"
Quboid is offline   0 Reply With Quote
Old Dec 15, 2006, 02:22 PM   #4
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Quote:
Originally Posted by Quboid View Post
i baasically need the ascii code that would print a square for me.
http://www.asciitable.com/

See the extended section
jeremy.king is offline   0 Reply With Quote
Old Dec 15, 2006, 03:08 PM   #5
Quboid
Thread Starter
macrumors 6502
 
Join Date: Oct 2006
Location: everywhere
Thanks guys!!!!, hey, is it even possible to use the gotoxy operator and gechar, gethe etc in Xcode?, the absence of the conio.h library is killing me. I tried curses.h but it still wont work. Any help?, i really need it this time.
__________________
"My anger far outweighs my guilt"
Quboid is offline   0 Reply With Quote
Old Dec 15, 2006, 03:23 PM   #6
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Quote:
Originally Posted by Quboid View Post
Thanks guys!!!!, hey, is it even possible to use the gotoxy operator and gechar, gethe etc in Xcode?, the absence of the conio.h library is killing me. I tried curses.h but it still wont work. Any help?, i really need it this time.
I thought OS X uses ncurses?
jeremy.king is offline   0 Reply With Quote
Old Dec 15, 2006, 03:33 PM   #7
Quboid
Thread Starter
macrumors 6502
 
Join Date: Oct 2006
Location: everywhere
Quote:
Originally Posted by kingjr3 View Post
I thought OS X uses ncurses?
ncurses?, I am not sure. But does it allow one to use GOTOXY?
__________________
"My anger far outweighs my guilt"

Last edited by Quboid; Dec 15, 2006 at 04:22 PM.
Quboid is offline   0 Reply With Quote
Old Dec 16, 2006, 05:23 AM   #8
fimac
macrumors member
 
Join Date: Jan 2006
Location: Finland
Google is your friend

Quote:
Originally Posted by Quboid View Post
ncurses?, I am not sure. But does it allow one to use GOTOXY?
In terminal (or, if you prefer, google):
Code:
man ncurses
Functions that move the cursor include the word "move" or are prefixed with the letters "mv". Conio gotoxy(x,y) is ncurses move(y,x).

Good luck
fimac is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Dedicated graphics 15" rMBP not displaying the right graphics info Warrenpfo MacBook Pro 4 Oct 31, 2013 08:07 AM
ASCII String Dump? ArtOfWarfare Mac Programming 2 Aug 22, 2013 03:31 PM
String chars to ASCII decimals inside terminal hakonandersson Mac Programming 14 Jun 16, 2013 11:11 AM

Forum Jump

All times are GMT -5. The time now is 06:30 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC