I am using a struct for the list and I want too avoid using a while loop for the search, because my render function is in a while loop. So adding while loops on render function the search will cause a non responsive game. I am working on font system where I can call a function like so:
Say(int ID, X, Y, MSG)
where if I call that function more then once all it will do is update the current message of that ID.
...
User Profile
Collapse
-
Quick STD::List Search (C++)
-
Don't you need too add std::map to the car class? For the return pos and etc too work? -
Too create a array? Why not use map?
Can you give me a example how you would write it using my code, too speed up the typing?Leave a comment:
-
Sorry, substr, isn't going to work in this case, I actually forgot that my code returns line by line in a loop and prints it.
So what would be a good way on telling it not too show text until it see's the </script> tag?
Sorry, wasn't thinking, lol. I am making a mobile viewer and I am trying too cut off CSS and Javascript code.Leave a comment:
-
Creating a map system using a class. (C++)
Ok, I am trying too create a class that stores information of a entities in my game and be able to call functions too do what ever too the selected ID.
I.E Add a new entity, display it, change it's position/size, etc when its being rendered.
F.Y.I, OpenGL/VS2008.
Here is my class:
Car.H
Code:#ifndef CARS_H #define CARS_H #include "stdafx.h" #include "Player.h"
-
I think you mist read my topic, I already have that going, Its just it's not removing the code between the tags. str_replace is the function I want too work with.Leave a comment:
-
Strip script tags and contents in them?
I want too know how I can parse for <script and </script> and replace them with nothing. For some reason my preg_replace isn't working the way I planned it..
I don't have the code of the function since I deleted it and didn't back it up.
So can someone help me out?
Thanks, Ajm113. -
Thanks, but I got tons of pages with notes and instructions on fixing errors.
So I need something for the user not wasting more time downloading the million pages and just instead download them in one click where they can get those pages individualy in a zip file, becuase the user won't know what he'll run into when he recives errors on a applications.
Thats the point of the website I am making, pretty much. I'll play...Leave a comment:
-
Have you ever seen something like 'Download' Wikipedia articles or PHP.net manual pages you can get in one click?
Its on their website, but just like my project I want to allow users to download my web pages in one click for offline purposes (Laptops) of my database in html format so you can take important information if you don't have internet access currently and it won't slow you down working on your project.Leave a comment:
-
I already looked over them before and their is no File Creation and Content Post in a programmed new file in a php zip file.
Now if I could create fake files of say page.php?id=C54 35 TO /page/C5435.php and make the zip file upload thinking it is a actual page then I have something going so it will add a C5435.php file to the zip with the certain content in it so people could download the pages in one zip file.
Then I...Leave a comment:
-
Well about printed out to a pdf, you mite want to look into Headers.
BTW work on your formatting, bots and you are going to have issues looking at the code when they open them up and including other users looking at it, will discourage them helping you.
Header()
Use the first header function on the example...Leave a comment:
-
Zip Files, Mysql, Downloading, & PHP
Hello, I created a database and all and have a php page that displays content to the readers when a certain id is entered in the address bar.
What I want to do is to have the user download a zip file that contains copies of that php script, but rename them to a title value of each row, so no replacing is done and display the individual content on each page from that title into the php pages that where made in the zip file.
... -
Sorry for the late reply, but thanks! I got it going, idk if it was before you posted or after, but anyways thanks for replying anyways! :D...Leave a comment:
-
Enable characters like + or - in GET.
I created this form that submits well and I see the chracters like - or + in the address, but then when it seems I &_GET the address variables in the next page it looks that it gets rid of them when it echoes out...
Does htmlentities or stripslahes have to do with this in php?
Problem:
http://www.bombinaid.com/Browse/?category=C#&type=1
It just shows C then C# for some reason...... -
It could be mine or your code, but it seems that my function doesn't work at all.
[PHP]function maxWords($input , $max) {
$index = 0;
$count = 0;
while($count < $max && $index != false) {
$index = stripos($input, " ", $index);
$count++;
}
if($index...Leave a comment:
-
Remove words more then 20 in a string?
Ok, I want to limiter how many words can be displayed from a string, I seen and used this function a while ago where you enter the string and max words you wanted to display.
Then it would display the max words you wanted it too show.
I forgot where and how it was made, can anyone help me out? -
Thanks for your reply, for a couple of hrs their I thought I was the only one on this site that knew and advanced this part too php, :D
Any ways thanks, I'll look around on their see what I can dig up!Leave a comment:
-
PHP should be like C++, where you can make a while loop then get something like fgets into the while loop and count for each line into a int and get the lines into a string array and if you want to replace a certain line just enter,
array[$iLine--] = "My data goes here."; = Line1, so just minus the id number by one.
For removel just make the line equal nothing in double quotes and make a if statment weather...Leave a comment:
-
How can I check for new messages from Yahoo or Hotmail?
I been reading and found a group of functions around imap! So I am wondering is how can I set it up to see the number of new messages it finds on my Yahoo account or Hot mail?
I did Google, but didn't look like the top of the most asked questions in the world... -
GD and hotlinking
I want to display a hotlink image on a image I made on php as a background, do I have to crop the image if it was larger then the size I want it too be so I can have it as a background?
Also how can I insert a image like adding text in GD? I tried some hot linking, but I keep getting the image contains errors and I copied the code from here:
http://www.php.net/manual/en/image.examples. php
No activity results to display
Show More
Leave a comment: