Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
68% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
~5K People Reached
Favorite Tags
Member Avatar for pac-man

hi guys, I'm designing a website - [url]www.pchristou.com[/url] - to showcase some of my work but am having an issue when using an image as the background. For some reason, when scrolling in Firefox its not smooth (in particular, when clicking the anchor links at the top) however, other browsers …

Member Avatar for pac-man
0
106
Member Avatar for pac-man

hi all, I'm a newbie to AJAX (spent most my time on the C++ forum) but I'm in need of some advice. I plan on building a web-application in PHP with AJAX functionality. Now, I've never touched AJAX before and wanted to know which route would be more convenient a) …

Member Avatar for kvprajapati
0
133
Member Avatar for pac-man

hi guys, I've created a function that returns the number of times a value resides in a container (in this case, vector). The user is able to specify were in the vector they wish to search for the value. [CODE] int number(int n, vector<int>::iterator start, vector<int>::iterator end) { int count …

Member Avatar for pac-man
0
227
Member Avatar for pac-man

Hi guys, just playing about with pointers and keywords and to my surprise, this code does not throw up an error... can anyone tell me why? [CODE] int main() { int *P = new int; *P = 50; cout << *P << endl; // output: 50 delete P; *P = …

Member Avatar for pac-man
0
113
Member Avatar for fadia

Hi all.. This function should work recursively.. Meaning call the function inside the same function. So i'm supposed to write a recursive function that takes a single parameter from type integer and decrements that number until it reaches zero. Ex. If the user entered 7, he'll get this output: 7 …

Member Avatar for fadia
0
125
Member Avatar for pac-man

Hi guys, I found this thread ([url]http://www.daniweb.com/forums/thread19814.html[/url]) that gave me guidance on this topic but I wanted to further develop my understanding. I understand that in Java, everything 'passes by value', even references. That is, a copy of the value is passed to the parameter so the original value is …

Member Avatar for JamesCherrill
0
185
Member Avatar for pac-man

Hi guys, I understand the difference is that the params of ctor 2 are declared const with n being passed by reference. However, I don't seem to understand what difference having these params (n and a) declared constant with n being passed by reference makes? I mean, I'd understand the …

Member Avatar for Excizted
0
127
Member Avatar for inmar

Hi, I'm trying to use the system() command to invoke "eseutil.exe" and store the output in a text file using VC++. The way i used this command is mentioned below. code snippet: ========= [CODE]string command= "\"C:\\Program Files\\Microsoft\\Exchange Server\\Bin\\eseutil.exe\" /mh \"F:\\fsg\\edb\\mailbox database.edb\" | find \"Log Required\" >output.txt"; system(command.c_str());[/CODE] Compilation is success. …

Member Avatar for donaldw
0
308
Member Avatar for manosha

HI, I have a prog. assignment, I did most of it, but I couldn't write some functions properly, so try 2 help.? these are the functions I wrote b4.[CODE] #include "Array.h" #include <iostream> using namespace std; Array::Array() //constructor to set size=6 { size=6; } void Array::read() // read array elements …

Member Avatar for DanielGreen
-2
120
Member Avatar for thewonderdude

Hello, I have to read from a .txt file which has info as such, 10:5:23 2:343:54 1:4:7 and so on. 3 Columns, lots of rows. How can i read each column for example 10 to x, 5 to y, 23 to z.

Member Avatar for jonsca
0
135
Member Avatar for Ruffio1981

I'm working on a bonus project for my C++ class. The original problem was to add two large numbers given by the professor, or more specifically, write a program that would add these two numbers. After a while I got it working, relitively easy bit of code with some pointers …

Member Avatar for DanielGreen
0
106
Member Avatar for BobFX

I have a very basic problem, which answer is not covered in the 1200 pages of the C++ book I'm using to teach myself. Consider this simple code: [code]#include "stdafx.h" using namespace System; class EventListener { long mRef; public: EventListener() { mRef = 0; } }; int main(array<System::String ^> ^args) …

Member Avatar for BobFX
0
121
Member Avatar for Japus

Hello I'm making a dungeons and dragons and i need something to contain all inventoryitems like pieces of equipment, potions,... How can I put them all in one array or vector? Thanks, Jasper

Member Avatar for Japus
0
707
Member Avatar for kevinkev

using functions write a program that captures details of a customer at a bank, account number, opening balance.The program should also include a function that allows a client to deposit money to account , withdraw money,calculate balance & query balance.

Member Avatar for pac-man
-3
79
Member Avatar for pac-man

Quick q, What function takes precedence with a template function vs a non-template function? I set up the following code but my result had the following output Template Template even though a guide I read said it should read: Template Non-template [CODE]// Testing template function vs non-template function to see …

Member Avatar for mrnutty
0
109
Member Avatar for PDB1982

I'm now stuck on trying to figure out why my letterGrade function isn't working....I'm trying to take the numerical values found right before it, in the Avg colum, and turn it into a letter grad (which I assume needs to be as a string). Any suggestions? [code] Total Number of …

Member Avatar for Zjarek
0
217
Member Avatar for tango2009

I have this iterator that I want to format so the output is something like this. < "Index of first node"(first value of iterator)<<"Second index"(second value of iterator). Can anyone help me with this.[code]void Level::printAstarList(list<int> AstarList) { // cout<<"<"; std::list<int>::const_reverse_iterator it; for (it = AstarList.rbegin(); it != AstarList.rend(); ++it) { …

Member Avatar for pac-man
0
97
Member Avatar for pac-man

[CODE]class Car { public: Car(string name, const int wheels = 4){} private: string name; }; void main() { Car("Ford",3); // Why can I put in a 3? } [/CODE]

Member Avatar for pac-man
0
104
Member Avatar for pac-man

I'm trying to configure my application so that a user without wxWidgets installed on their computer can compile the code. I'm not sure how to do this although I believe I have to use .DLLs? Has anyone got some info on how I can do this? Thanks in advance.

0
44
Member Avatar for pac-man

Hi guys, I'm banging my head against the wall with this one. I want to sort a <string> vector which contains the following: "Pen 0.99" "Pen 0.99" "Paper 1.50" "Pad 1.99" "Paper 1.50" Into a vector which would sort it as follows: "Pen 1.98" "Paper 3.00" "Pad 1.99" I know …

Member Avatar for mrPaul
0
267
Member Avatar for pac-man

Hi guys, I have a static vector which holds objects of a class. I want this vector to be singleton i.e. be the only vector of this type which will indefinitely store the relevant objects. Unfortunately, a problem arises whereby, when I access the vector from a different class, for …

Member Avatar for pac-man
0
809
Member Avatar for pac-man

As the title says please. The issue I'm having is I've got a class which holds the vector. When I create a new instance of the class I assume a new vector is also created which results in the vector losing all its contents?

Member Avatar for pac-man
0
129
Member Avatar for pac-man

Hi guys, I was hoping someone could explain to me how I would go about grabbing a pointer/reference to my variable 'textName' contained within the Reports class, (some code omitted to try to simplify the scenario) [CODE] //Reports.h class Reports : public wxPanel { public: void AddStudent(wxCommandEvent & event); wxTextCtrl …

Member Avatar for pac-man
0
94
Member Avatar for pac-man

I'm trying to filter the contents of a vector of type string, based upon a regular expression. NB: I'm using the boost::Regex library So far, I've got the following [CODE] boost::regex r("[A-Z][A-Z]{3}<\\/t|[A-Z]{3}<\\/t|[A-Z\\.]{3}<\\/t"); for(int i = 0; i < vStream.size(); i++){ if(boost::regex_match(vStream[i],r)) cb->Append(vStream[i]); // cb is a combobox for my GUI …

Member Avatar for pac-man
0
51
Member Avatar for pac-man

Hi there, I am relatively new to C++ and was hoping someone could provide me with some guidance, I have a .txt file that contains a heap of HTML and I wish to extract a small portion of [B]dynamic[/B] text from differing places. For example: [U] .txt file before filter[/U] …

Member Avatar for pac-man
0
149