I'm trying to write some code to parse out comments from an html file, as it is now, it parses out the first comment fine, but any subsequent comment isn't removed.. it finds the start tag odf the...
Type: Posts; User: slcjoey
I'm trying to write some code to parse out comments from an html file, as it is now, it parses out the first comment fine, but any subsequent comment isn't removed.. it finds the start tag odf the...
I think your reply is a bit confusing.
int a = 0x0a;
printf("%d",a); /* outputs 10 (decimal)
printf("0x%x",a); /* outputs 0xa */
I think the original OP is looking how to print out the...
This code was perfectly fine up until 1999. heh.
Of course, I guess code riddled with buffer overlows was perfectly fine until the Morris Internet Worm opened up everyones eye -- and yet still...
Seems to work here.
One thing I noticed quickly is that you will output the line "Your pay this week will be $x" twice if the user has worked < 40 hrs.
You should move this:
check =...
Considering the information I can glean from this post and the other thread you've started today, I'd say that you are still very much a beginner.
I hope you don't take it as an insult, it just...
Your first thoughts of what the problem may be should not be malfunctioning hardware/problems with .NET -- it should be your code.
Not much anyone can do without seeing the code in question.
Sounds like it's working as intended ?
It skipped "text2" because "text2" did not exist, there was no token.
I hate to be a nit, but..
#1:
Your loop will fill fmt[0] to fmt[9]
You skip fmt[10] and you overflow the buffers bounds in #2 by writing to fmt[11].
fmt[10] should be the null terminating...
It wasn't an attack on his intelligence. I'm sure McDonalds has a lot of smart people working for them, what they aren't chalk full of is people with drive and motivation, people who can take the...
www.mcdonalds.com/career_opportunities.html
Being newbie doesn't mean to have everyone else do the research and work for you.
You'll never get anywhere if you have to have your hand held for such trivial "problems".
I hear McDonalds is hiring.
Thank goodness the art of game development never requires one to convert an integer value to a string!!
:cool:
Just out of curiosity. How do you do this?
I'm guessing you'd use the "resume" features of the ftp protocol? so you'd just tell the server to resume at say half way into the file?
Hi, thanks for the reply.
Indeed, I stumbled upon this myself and have done what I needed to do.. but I must say, it's quite a hassle :o
I've only ever had to do some small IPC stuff that was...
Anyone?
Hi,
I have a program that displays a listview of items. I want to be able to grab these items from a seperate program.
I can't just SendMessage() because it requires passing LVITEM structs.
...
You need to read a book....
I'm just trying to write a generic class to parse all tags and their associated data so that in the future if I need to parse out certain data from an html page I could use this.
Mostly, I'm...
Can anyone suggest a good method to parse html files?
I started out using just a linked list with each node containing a vector of strings that contain the html tag and the data inside that tag.
...
You require sockets/network programming.
A good tutorial exists here:
http://www.ecst.csuchico.edu/~beej/guide/net/
For windows specific(WINSOCK) you can read this:...
in the mani thread i have something like
while(rt.Running)
{
switch(rt.State)
{..}
..
}