b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 8680842 (Thread)

# URGENT ANSI C help needed, please!
struct {
int
int
string
string
char
int
}

I'm taking each of those and building a string which I'm then writing to a file.
I'm using itoa() and strcpy to build the string.
When dealing with the char value, it's putting in the ASCII code not the letter!

HELP! OMG HELP! It's 23:25 and the assignment is due at 23:59!

edit: I fixed it. Inelegant but it works.
Submitting assignment then off for a celebratory wank.
(, Sun 24 Aug 2008, 14:26, archived)
# ciijasiie
(, Sun 24 Aug 2008, 14:26, archived)
# ^this
(, Sun 24 Aug 2008, 14:30, archived)
# REROUTE THE GASPIPES!
HACK ALL INTERNETS
SET CONDITION ONE THROUGHOUT THE FLEET
(, Sun 24 Aug 2008, 14:28, archived)
# HACK THE PLANET!
HACK THE PLAAAANNNEEEETTT!!!!
(, Sun 24 Aug 2008, 14:29, archived)
# PUT MICE ON THE FRONT LINES
MICE WITH TITS
(, Sun 24 Aug 2008, 14:33, archived)
# i can't remember that line from 'hackers'
director's cut?
(, Sun 24 Aug 2008, 14:35, archived)
# mediocre's cut
(, Sun 24 Aug 2008, 14:42, archived)
# chr(...) = the letter
if i remember correctly
(, Sun 24 Aug 2008, 14:30, archived)
# nope :(
value but it's complaining about trying to make a pointer from an int.
(, Sun 24 Aug 2008, 14:34, archived)
# didn't touch C
for 4 years... i can't remember :(
(, Sun 24 Aug 2008, 14:43, archived)
# sorry don't know c
:(
(, Sun 24 Aug 2008, 14:37, archived)
# Been a while...
but sprintf(s , "&d %d %s %s %c %d", [struct variables]); ought to do it.
(, Sun 24 Aug 2008, 14:55, archived)
# Tsk tsk!
Ascii silly question, get a silly ANSI.
(, Sun 24 Aug 2008, 15:00, archived)