|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
for the programmers in da hizzouse...
got a quick question...
ok, i'm reading from a file, and if the first character in the file is a backslash (\), i need to tell it to go to the next *line* of the document, not next character. i can increment the pointer, but that just goes to the next character. anyone? also, if i have a pointer FILE *fp; can i use 'fp--' to decrement the pointer, go backwards through characters, or does that not work? thanks
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Nov 2001
Location: MTL
Posts: 5,060
|
You can't use -- to decrement a pointer...a pointer is just an integer representing an address in your memory...if you decrement it, you'll get some fucked up results....
__________________
mmm my sig was too big... no more cool animation but hey still! need php? ICQ: 94586959 |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
fuck... so how do i go backwards then? gonna have to find a way around that. i need to search text for a specific patter of 8 characters. but if i go through it, the pointer will be past it to replace, so i'd have to go backwards or something.... it's either that or use an array to store the file, but that uses a bunch of memory, there's got to be a way around that...
it's been too long since i've done this stuff oh yeah, i just pulled the comments out of the file, fuck it. i can put those in the readme.
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
fucking microsnot...
the compiler says the program runs, but then it dies in xp. if the program doesn't work, then it shouldn't let it run. no errors or warnings, according to visual studio...
__________________
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a> icq: 1 7 6 4 2 0 9 6 0 Gallery templates for ONLY $25! w00t! |
|
|
|