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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
What will I need the 2.2GHz MBP graphics card for? iMasterWeb MacBook Pro 6 Mar 12, 2011 04:26 PM
Help compiling/running graphics in terminal dflem11 Mac Programming 2 Nov 8, 2010 02:42 PM
Raw ASCII Printer Help TheRandomDude Mac Peripherals 0 Aug 12, 2008 05:00 PM
mac for graphics help designtemple Buying Tips and Advice 0 Dec 2, 2006 04:59 AM
MB MBP Graphics Help lowercaseperson MacBook Pro 3 Oct 6, 2006 11:14 AM


All times are GMT -5. The time now is 03:23 AM.

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

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