I'm using a code snippet from the Invision Power Board forum software on my own site to, sort of, connect the two. I have a "member bar" that I wanna put on every page in my website that has a login link, profile link, etc. I've already done this, the only problem is that on the pages I want to implement it on, I have to put a ? after the ".php". So I need a mod_rewrite condition that turns `http://www.mysite.com/index.php` into `http://www.mysite.com/index.php?` `http://www.mysite.com/html/about.php` into `http://www.mysite.com/html/about.php?` I know this is probably very simple, but I've tried to learn regular expressions …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone, So I have a binary tree class, Stree, that holds names of cities and pointers to other cities. Running the program and typing "insert Memphis Atlanta" inserts a node with Memphis, and inserts a node with Atlanta as Memphis's left child. Typing "insert Memphis Tampa" inserts a node with Tampa as Memphis's right child. Typing "insert" with two cities not already in the tree should generate an error, but when I try it, i get a seg fault. The insert function runs a recursive function, searchInsert, that finds the city and sets a pointer to that city, target: …

Member Avatar
Member Avatar
+0 forum 6

Hi everyone, So I tried making my program here, and I got an error that I can't figure out. I have a class for a Binary Tree, "Stree", with a few methods defined publicly, and a "Node" class defined privately, within "Stree". These methods use "Nodes" as parameters. Now when my main cpp file calls in stree.h, on each line that contains a method, it says "Node has not been declared". The errors are below: g++ -Wall -g -c train.cpp In file included from train.cpp:8: stree.h:22: error: 'Node' has not been declared stree.h:22: error: 'Node' has not been declared stree.h:23: …

Member Avatar
Member Avatar
+0 forum 2

Hey everyone, So in a few of my programs, when I have the user enter input, which then gets stored in a list, there seems to be some error. I use a while loop to allow for continuous input, like [CODE] while (!cin.eof()) { cin >> value; list.insert(value); } [/CODE] so that when they hit CTRL-D, the loop terminates and the list has all of its values. When someone enters the following values: 1 2 3 4 5 My function prints the values backwards, so when I print the list, I get: 5 5 4 3 2 1 Could someone …

Member Avatar
Member Avatar
+0 forum 1

The End.