Forum: PHP Oct 21st, 2006 |
| Replies: 9 Views: 2,396 Re: need to make a link thanks a lot man. I was wondering what all the wierd characters. I am used to c++. It is a little more plain than this. Shockingly similar though like the switch statement is almost the same as... |
Forum: PHP Oct 19th, 2006 |
| Replies: 9 Views: 2,396 Re: need to make a link It is giving me an error. This is what I entered:
$title = $row["location"];
echo "<tr>
<td>";
echo "<a href="$link$title">$title</a>";
echo "</td><td>";
echo "</td></tr>"; |
Forum: PHP Oct 19th, 2006 |
| Replies: 9 Views: 2,396 Re: need to make a link when the user does the search he/she selects a system to search under. then that is put through a switch statement and the $var variable determines the address i.e. www.foo.bar/nes/roms/ the... |
Forum: PHP Oct 18th, 2006 |
| Replies: 9 Views: 2,396 Re: need to make a link Thanks man. The link by the way is created dunamically do I have to use anytthing different to have a variable plug in the value rather than actually using the address. |
Forum: PHP Oct 17th, 2006 |
| Replies: 9 Views: 2,396 need to make a link I am new to php and am building a search function for my website. The problem is I cannot seem to make the Aa> tags work to make the link I keep on getting parse error. could someone tell me how to... |
Forum: C++ Apr 23rd, 2006 |
| Replies: 10 Views: 1,202 Re: string? I have now added to the if statement a call to a function which has a linear search. It finds them correctly and changes them if I do not have any other transactions in the Trans.data file. but the... |
Forum: C++ Apr 22nd, 2006 |
| Replies: 10 Views: 1,202 Re: string? the single quotes are working I put a cout in there to check. |
Forum: C++ Apr 22nd, 2006 |
| Replies: 10 Views: 1,202 Re: string? int ProcessTransData(ifstream& transIn, int& i, int& numClients)
{
char transCode;
transIn >> transCode;
if (transCode == "C")
{
ChangeName(transIn, numClients);
}
else if (transCode == "A") |
Forum: C++ Apr 22nd, 2006 |
| Replies: 10 Views: 1,202 Re: string? the value is not a string it is a char. it is char transCode. Then i have if (transCode == "C")i am using double quotes and it is telliing me c++ forbids comparison between pointer and integer. ... |
Forum: C++ Apr 22nd, 2006 |
| Replies: 10 Views: 1,202 Re: string? If i am reading in a value name transCode. It will be an A V or C is this how i set up the if statements
if(transCode == 'A') do i need to use quotes or single quotes or quotes at all. I have... |
Forum: C++ Apr 21st, 2006 |
| Replies: 10 Views: 1,202 Re: string? Also if I have an array serviceCounts[I][j] how do I add one to the j value? |
Forum: C++ Apr 21st, 2006 |
| Replies: 10 Views: 1,202 string? I am trying to read in information from an external file using ifstream. I use fin >> to input the data usually. Now I have to input a full name. Can anyone tell me what I use to do this? do I... |
Forum: C++ Apr 21st, 2006 |
| Replies: 4 Views: 1,846 |
Forum: C++ Apr 20th, 2006 |
| Replies: 4 Views: 1,846 Re: ifstream so how would I set second stream? would i just do another ofstream then the new name
like ifstream fin2? |
Forum: C++ Apr 19th, 2006 |
| Replies: 4 Views: 1,846 ifstream I have an assignment which will pull data from Trans.data and Lawn.data. Can I not use fin to open both the files at once or do i need to setup another stream. Here is my code I am getting the... |
Forum: C++ Apr 7th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I have fiddlesd with it, but am obviously missing some points Here it is now::;
void SelectionSort(double WeightedScore[MAXMEMBERS], int numPlayers)
{
int i, j;
double indexOfNextSmallest;
for... |
Forum: C++ Apr 7th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays nevermind on the precision thing i fixedi it. I am completely lost on the selection sort though. Here is what I got. It is incomplete. Can you point me in the right direction?
void... |
Forum: C++ Apr 6th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays Is there a way to make just the weightedd average be a fout.precision(2);?I trid to just put that in front but that obviously int the way to do it. thanks |
Forum: C++ Apr 2nd, 2006 |
| Replies: 50 Views: 6,428 |
Forum: C++ Mar 29th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays What is the statement with cont int& i what does that mean? The sorting still gives me segmentation fault. If i use this it causes an infinite loop. Why?
while (judgeNumber[i][j] !=... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays also my switch for the prof level is not cycling for each player. any thoughts. I will definately be hooking you up for all this help |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays no you didnt offend me. I am just used to being the one that solves all the problems. She has led us into the darka with no flashlight. How she does the selection if this helps is by seting a low... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I want to sort by weighted player average descending. Also can you change the
if (!(fin >> judgeNumber[i][j]) || judgeNumber[i][j] == -1)
{
judgeCount[i] = j;
break;
}
if (!(fin... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I know that I am not that good. The reason I do not understand that if (!(fin stuff is because we have not learned it yet. I am not supposed to use things we have not learned yet. Thanks for making... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays Here is what I changed it to. It still does not work. It is totally off I dont know where it is coming up with the numbers.
void ProcessScores ()
{
int i = 0, j=0;
double totalScore;
//... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I also am having problem with the switch statement I set up. It is staying on the same i. How do I pass that variable to other functions. I am also completely lost on the selection sort. My notes... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I have finished for the most part. I tried to pull out the formatting of the scores into a printjudges function, but it alway prints 4 judges. I cannot figure out why. Any ideas on how to seperate... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays Ok Lerner thanks. I fixed the problem with the players, but it is still reading in 7 judges per player. The problem is in the array. Here is the code to fill the array:
if (!(fin >>... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I think in the print report function is the problem. It prints until maxmembers regardless as well as for maxjudges. that is why i think i need that other array to say < judgeCountArray |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays All I need now is the array for the judge count. I have to have it. It isnt working correctly anyway. I need the counter controlled repitition to be controlled by the judge count array instead of... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I copied it while in the middle of doing something. Kick ass I have prevented it from printing judges that dont exist. I am having problems with the average score thing. I need to average the... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays It is still posting all eight judges regardless of the -1. Here is the code I am using.
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
const int MAXMEMBERS =... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays basically I need the loop to stop when it hits -1. Rather than read the judges till the MAXJUDGES has been reached. she says call by reference not by value. you add a + to a variable in the... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays that rocks. Thank you. I am still running into the problem of it reading 8 judges for every player. It is not exiting at the -1. I see that it is reading until MAXJUDGES has been read. I do not... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I have setup the arrays sucessfully I think. At least the score and the player ids. For some reason it is pulling in the negative one before exiting though. Is there a way to avoid this? Here it... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays Here is what I have been working on. It will not print to the report.out. It does not have all the arrays built, but it should fill the ones necessary at least to output some text to file. What am... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays In the assignment sheet it requires the 5 arrays. She does do shit messy. She is an awful teacher I think. This whole class is code. |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 6,428 Re: help with parrallel arrays I am not supposed to know how to do vectors or structures yet. Lerner was right in his assumptions. They are supposed to be loaded into 5 partially filled arrays. Some of them hitting the max... |