Forum: PHP 27 Days Ago |
| Replies: 4 Views: 226 Alright, I'm working on my own signature rotator. At the moment the image only updates when the page is refreshed, which I'm fine with for now.
However, is it possible to force the script to... |
Forum: PHP 28 Days Ago |
| Replies: 0 Views: 180 Alright, I found this code online which basically solved my issues.
<?php
header ('Content-type:image/gif');
include('GIFEncoder.class.php');
$text = "Hello World";
// Open the first... |
Forum: C++ 28 Days Ago |
| Replies: 2 Views: 136 If I'm understanding your correctly, you basically want to use the words inside the string to define what int's are sent to the function. IE.
string one= "Height = 5'9";
string two = "Age = 20";
... |
Forum: C++ 32 Days Ago |
| Replies: 19 Views: 484 while ( !s.isEmptyStack() )/*s is not empty*/
{
int counter = 0;
if(!(u.top() == r.top())) /*compares top elements, does something if the two not equal, pop elements*/
{
... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 On the plus side, except for a few things, the beginning looks right.
while ( !s.isEmptyStack() )/*s is not empty*/
{
if(!(u.top() == r.top())) /*compares top elements, does something... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 No, using stringstream is not mandatory, but manipulating a string isn't all that easy and since it could be different, stringstream is the easiest way to do it.
while (getline( inData, line )) //... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 It's actually my first post on this thread. Right after your initial question I believe. |
Forum: PHP 33 Days Ago |
| Replies: 2 Views: 146 Well, that should make this easier. Just gotta go figure out how to do that now. XD
Thanks. |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 I'd still get rid of that header file and just use the stl stack. Did you check out the link I posted about stacks? It would help you a lot with this. http://www.cplusplus.com/reference/stl/stack/... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 I'm not sure why it is disappearing so quickly, but one way is to add getchar(); to the code before return zero. Some compliers don't understand system("pause"); so this is a way to get it to stop.... |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 181 I would first make your array size 100 and get a counter to keep track of the number of shows that have been entered. It is difficult to modify the size of an array after the program is running... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 You technically don't even need the header file to use a stack. As long as you put #include <stack> at the top, it knows to use those functions.
And you don't declare those functions, they are... |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 141 I'm not sure what you mean. Can you explain what you're trying to accomplish again? What contains what?
Do you have an array that contains the threads, and each thread contains messagebox()'s? |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 181 From what you have there, show is a one item, not an array, meaning that every time you add a show, you're overwriting the data previously placed there.
Are you stuck using an array of structs,... |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 Heh, no problem. Good luck with the rest. |
Forum: PHP 33 Days Ago |
| Replies: 2 Views: 146 I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the... |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 267 I assume that each suit has a specific numbers associated to them; i.e. Diamonds are 0 - 12, Hearts are 15 - 27, etc. With that in mind, you can do some things to help.
Like check if the cards... |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 Is a % sign between number and 2 in the line:
if (number % 2 == 0)
That's the only reason I can see why they would produce those two errors. |
Forum: C++ 33 Days Ago |
| Replies: 5 Views: 189 A simple cout tag will produce a line on the screen. What exactly are you having an issue with? Post the code you have so far and then I can help. |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 138 This forum does not write code for people. We help people by looking at the code they have already coded or by suggesting how we would go about the situation. Either provide us with what code you... |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 138 Show us what code you have done at the moment and then we can find where your mistakes are. |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 Could be. I got mine to run in Bloodshed Dev-C++. Could try downloading that and see if it gives you the errors that visual is, cause I don't know what else to suggest. |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 I got it to run fine for me. Here's the exact code I complied. See if it works for you.
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <cmath>
#include... |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 I believe the errors you are still receiving are from the rest of the code you have. Try commenting out Part E through the end of F and see if you still get the errors.
I believe that "breaks... |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 Alright, that's easy to do. This is how I would rewrite your first loop if I understand you correctly. See if it is what you are looking for your code to produce and I'm sure you can adjust the... |
Forum: C++ 33 Days Ago |
| Replies: 13 Views: 450 Let me see if I understand you here. You want the user to input a bunch of numbers, but only take the ones that are even in account right? |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 558 By using infile >> temp; you are striping the whitespace. A work around is document += temp + ' '; but you will lose the returns. If you want to preserve the returns, I would suggest the below... |
Forum: PHP 33 Days Ago |
| Replies: 5 Views: 221 There ended up being a hidden variable that, once entered, allowed me to go straight to the page with the url only. I overlooked it cause of how the page looked. Thanks for all the help. |
Forum: PHP 33 Days Ago |
| Replies: 5 Views: 221 That might be a better option because I tried my code on another site similar to it, just to see if perhaps it was a missed redirect, and it worked fine there. I'll give it a try and see how it... |
Forum: C++ 33 Days Ago |
| Replies: 19 Views: 484 First, you declare a stack like stack<char> u;.
Second, with the code your provided, you will never know if the word is almost a palindrome. The code relies on true means it is a palindrome and... |
Forum: C++ 33 Days Ago |
| Replies: 4 Views: 384 Check out this applet. It will help show how the red/black nodes are determined. http://webpages.ull.es/users/jriera/Docencia/AVL/AVL%20tree%20applet.htm
I agree with Tom. It would be much... |
Forum: PHP 33 Days Ago |
| Replies: 5 Views: 221 Not from what I can see. With the code I get, it is loading the page but doesn't actually direct me to the next page, or if it does, for some reason it copies the contents of the one before it. One... |
Forum: PHP 34 Days Ago |
| Replies: 5 Views: 221 Alright, I'm trying to get a script to visit a website and copy the contents. The problem is that I must fill out a form before I can get to the page I want, but that's not the issue really. The... |
Forum: PHP 34 Days Ago |
| Replies: 6 Views: 246 Well, that helped. Apparently URL file access is disabled. Thanks. |
Forum: PHP 34 Days Ago |
| Replies: 3 Views: 176 I believe their pop up is done using Javascript. That's at least how I was taught. Been a while though. |
Forum: PHP 34 Days Ago |
| Replies: 6 Views: 246 Alright. I think I get it. So, if I were to try and echo the contents of http://www.example.com/ , I would use this for my code right? Cause, at the moment I'm not seeing anything.
<?php... |
Forum: PHP 34 Days Ago |
| Replies: 6 Views: 246 Alright, so what would be the proper way to get information from a web path then?
The above code was what I was told in class yet it produced nothing when I tried to echo the teachers example... |
Forum: PHP 34 Days Ago |
| Replies: 6 Views: 246 I was just testing out a code and I found something rather pathetic.
This code does not produce anything.
<?php
$source = file_get_contents("http://mysite.com/random/page.html");
echo... |
Forum: USB Devices and other Peripherals May 11th, 2009 |
| Replies: 0 Views: 353 I've had this laptop for a while, and recently two keys popped off. I wasn't worried about the first, but the second is the Z key and not exactly something I can just work around. The one of the... |
Forum: C++ Apr 24th, 2009 |
| Replies: 3 Views: 266 Ok, first off, code tags are helpful. Most people won't look at your post if it's not formatted properly. Secondly, I'm not sure what you're trying to do with your code, but it's not going to... |