199,113 Archived Topics
Remove Filter ![]() | |
Hi everyone, As the title of my topic says, I created a javascript loop that had some PHP code inside of it, hoping that every time the javascript function ran, it would re-call the PHP code inside of it. Turns out my hopes failed - the PHP code is only … | |
In defining MS Access tables where a 1 to many relation exists what is the best way to define a table containing the “many” records. For example, a database with orders and line-items might have the “line item” table with an order-number and a line-number which would define a unique … | |
Hi there, I have some simple code that goes off and loads a bunch of tiled images into a web page. What I am trying to do is replace one of the tiles with a blank image in the event the image does not exist on the server. I am … | |
Hello, I've stumbled upon question I can't solve on my own. What I need is to write a program in python that would perform selection sort, but here's trick - it has to be recursive. So, for example I have l = [3,2,1] after using sort(l), l = [1,2,3] I've … | |
Hi, I have a program, which uses a vector to store some pointers. The program works fine. I'm trying to convert it to use a doubly linked list now though. At the top of the program I changed: [code] vector<Diary *>vectorname; [/code] to [code] #include <list> list<Diary *>vectorname; list<Diary*>::iterator i … | |
Hello! There is possible to download automatic speech recognition engine Sphinx4 in two versions, one is bin, the other is src. It is explained how to build Sphinx4 engine with Ant here: [url]http://cmusphinx.sourceforge.net/sphinx4/#how_build[/url] . However there are many applications which use this Sphinx4, e.g. HelloDigits. I'd like to create my … | |
So for one of my university projects we have been assigned a problem to complete. I have the code working fine for the example output provided however I just need some help regarding a few errors that need fixing with different inputs. I am not asking for you to do … ![]() | |
Hello, I am having 3 pages default.aspx, default1.aspx and default2.aspx Default.aspx is the home page. When i click default2.aspx, it must check whether i have logged in, if not it must redirect to a login page(default1.aspx) | |
Hey everyone, so I am having a really annoying problem with my code. The goal of it is to be able to read a text file of an unknown length (it's more or less a class roster w/ scores) and calculate and display the average of each student. The code … | |
I've been trying to learn how to program for several years now. I've struggled with everything from C++, C#, to Python, but never got passed simple DOS text based screen programs that were very short. I'M now 24 and I work in a factory. I would love to find a … | |
Ok, I have never used Ruby before and I'm trying to figure out how to convert my following Perl code into Ruby to do exactly what is does now. Basically I used a loop structure to produces the following output (user can specify how many lines need to be printed): … | |
Hi all, I am stuck at a very basic problem. I had a quite big function which I broke into 3 parts to make is more specific. Now, there is a part of the code which assigns values to most of the variables... when I execute the program, I am … | |
I'm using [B]remove(inputPath.c_str());[/B] to remove a file after a while loop is completed, but the file remains. I'm using Vista and logged in as an administrator and the file is located in my home folder. Any help would be appreciated. Thanks in advance. [code=c] #include <cstdlib> #include <iostream> #include <fstream> … | |
I am using jGrasp IDE and i'm having trouble with the compiler i keep getting this error ----jGRASP exec: g++-3 -g C:\Users\Joe\Documents\Downloads\testfile.cpp ----jGRASP wedge2 error: command "g++-3" not found. ---- This command must be in the current working directory ---- or on the current PATH to use this function. ---- … | |
Hello all!! I've been working on this code for a while now and I'm still lost. Can anyone tell me what's wrong with this code please??? I know Line 44 is missing something but I'm not sure what goes there, here is the pseudocode as well: /* pseudocode for Binomial … | |
For those of you that are familiar with wx... I'm just dipping my toe into the world of wxPython and I've been trying to put together a very simple Wizard app. Right now I have code that is working properly, but I'd like to know how I can change the … | |
Hello! I'm a management major doing some research on educational video games: Just wanted to ask if you have any good sources/references/insights/anything interesting about video games being used in education? especially in the collegiate level. Things I want to find out are: >The usual target segment for these games have … | |
Hello I have an application in vb6 that works on MSAccess 2003. And now I have to change connection to SQL Server 2005. I changed connection string to: conn.Open "Driver={SQL Server}; Server=server; Database=Base; UID=ID; PWD=pwd" I open recorset like this Set rs = cnServer.Execute("SELECT * FROM tbl") and it is … | |
-x means (0-x) or means (-1*x) because I want to overload operators, which one is necessary to overload if i would like to make -x understanable for the compiler? I have a user defined type: real and I have operator overloading: real operator+(real x1, real x2); I also have constructor … | |
Hi guys, I am trying to create an application to serve on the web which is an integration of a java application and some php for mostly presentation functionality. Has anybody here successfully done anything like this before, and if so how? Please help. In dire need here. Thanks in … | |
Hi, I have a simple three table database in access that records events, athletes and times. I am fine getting data from one table but not sure how to get data from two different tables that relate to each other. For example the Time table has time attributes and a … | |
Well, I am making a tic-tac-toe game, and I need a way to make it so when the person enters their name it adds a ".txt" to the end of their name. For example: What is your name? Robert *ifstream infoout("Robert[COLOR="Red"].txt[/COLOR]");* The .txt highlighted in red is what I need … | |
hi, i am working on a project where i have to display an image gallery. All the images are stored in mysql and i have to display them and related info one by one using NEXT and PREV buttons. can anyone help me with this. thanx in advance. ![]() | |
I have asked the same question in asp.net forum, there are 4 days past, I still didn't get a solution. I try here and hope to gte help. I have a nested gridview in an update panel. I need to pass two boundfiled values from child gridview gdDetail through CommandArgument … | |
I have to use a very simple data structure consisting only two double type data members (like complex numbers). I have written a class because it is practical to handle that object, and it is also usefull for me to overload all overloadable operators and define constructors and friend functions … | |
Hey guys, I know the title isn't possible, but I'd like to here how you'd do it then. Suppose we have this code: [code=cpp] Class Foo {public: int x; }; //somewhere in the code.. int main() Foo one, two; one.x = 10; two.x = 20; Foo *a = &one; Foo … | |
Hey, I have been using youtube to learn how to use the JPanel, as the prof has not given a lesson regarding that… The project was a game, which I have finished, but for bonus I can do some sweet sweet graphics. Anyhow the game saves the data in arraylists … | |
What is the compound assignment operator overloading syntax? I cannot find on the web. How can for example overload operator+= ? I know that it has to be a member function but what has to be its return value? reference? | |
Hey i recently got set a project to design a c++ connect four (four in a row) program on the console or using GUI. It only has to be Human vs Human, which is prolly sumthing a lot of you hav seen or done b4. I draw a blank with … | |
I'm working on a University assignment at the moment (a final assignment). I've normally been able to figure things out, but the teacher's thrown us a curve ball by making us use <fstream>. We've only had one lecture on it which covered [I]outputting[/I] a file, but nothing really handling taking … | |
I'm trying to finish up this little shift cipher I'm writing so I can encrypt the text files on my flash drive in case the drive becomes lost or stolen. It simply reads line by line from a plain text file, encrypts each line and outputs the lines to a … | |
In my code i got two compiling errors that i cant fix one is mared by (97) and the other is marked by (213) here is the code include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; struct skater { string fName, lName; int entry; double score[5]; double … | |
Here is my assembly lang program. [CODE] mov dh,0 C: sub bl,cl mov al,bl mov ah,0 mov bh,2 div bh cmp ah,0 je A mov al,cl mov ah,0 mov bh,2 div bh A: mov al,cl add dh,al add bl,cl add cl,1 cmp cl,bl jle C[/CODE] I am trying to convert … | |
People used to use reference in operator overloading like this [CODE] Compex operator+(const Complex& c1, const Complex& c2); [/CODE] because its good for reference and static data also? (c1, c2 can be complex or complex reference also? or mixed too) Since [CODE] Compex operator+(const Complex c1, const Complex c2); [/CODE] … | |
I naturally included [CODE] #include <iostream> using namespace std;[/CODE] but the following overloading not works [CODE]friend ostream& operator<<(ostream& stream, mystruct& x); [/CODE] just if I included std:: [CODE]friend std::ostream& operator<<(std::ostream& stream, mystruct& x); [/CODE] Why it is necessary? | |
[CODE] #include <iostream> #include <string> #include <cmath> #include <conio.h> #include <cstdlib> using namespace std; class animal_game{ public: string name(){}; int leg (){}; }; //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* class bird : public animal_game{ public: string name () {return (" Bird ");} int leg () {return (2);} }; //-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* class fish : public animal_game{ public: … | |
Hi, does anyone know why I am getting these error messages? I'm using Code::Blocks IDE and MinGW(GCC) compiler. I included boost (v1.39.0) libraries already. I can use them correctly with #include <boost/lexical_cast.hpp> Also, I defined BOOST_NO_DEPRECATED [CODE]#include <boost/filesystem/operations.hpp> #include <string> using namespace std; int main() { //The meta data file … | |
Hi, i have a lot of errors on this and am not sure how to fix it. This needs to be turned in in 2 hours so all help is needed =)). Description: Design and implement an application that creates a histogram that allows you to visually inspect the frequency … | |
![]() | Im trying to set one variable equal to another but it says "No default member found for type 'Decimal'" what does that mean? Both the varuables are deciamls, one is a regular decimal that I declare in the sub and another is an array that I declare in the class. … ![]() |
Hi Everyone, I have a program built on VS 2005 which compiles fine, and when I execute the same, it runs as expected. But i see memory leaks being detected by tools like (Visual Leak Detector, Glow Code etc..), Below is the block of code for your reference. void Argument(const … | |
I don't want to know each and everything in C++, but I wan't to know what do I need to be able to Code a good big app like Notepad++? I mean what it takes to be a best C++ expert? (Or how did the Ancient Dragon became expert ;) … | |
I had a fair amount of experience with much older versions of VB, but recently made the switch to VB.net and am trying to figure my way out through the changes. I have a small form program that is basically an interface for installing different software packages so that we … ![]() | |
Hello, I build my java desktop application using NetBeans 6.7, visually. So I click on the Frame -> Events -> KeyTyped and I add a new handler. The problem is the key events are not detected! My components are Swing components. Why is this happening?? :( [CODE] private void formKeyTyped(java.awt.event.KeyEvent … | |
This is the XSLT from a SharePoint Dataview: [CODE]<tr> <td class="ms-vb">Trip Count : <xsl:value-of select="count(/dsQueryResponse/Rows/Row)" /></td> </tr> <tr> <td class="ms-vb">Warning Count : <xsl:value-of select="count(/dsQueryResponse/Rows/Row )" /></td> </tr>[/CODE] Trip Count above counts the total number of forms entered by traveller - the xpath expression works like a charm... How do I … | |
I finally got it in order for smooth compilation, but nothing gets converted [CODE] import java.util.Scanner; public class nizadi_Lab8 { public static void main(String[] args) { if(args.length > 0) { try { Integer.parseInt(args[0]); } catch(NumberFormatException f) { System.out.println("wrong format"); } } else { System.out.println("no arg"); } } public int printBin(int … | |
1)How can i delete the memory allocated if i have allocated dynamically through "new" like that: classA** instances; instances=new classA*[5]; for(int i=0;i<5;i++){ instances[i]=new classA;} 2)How can i pass arguments on the constructor while i am allocating memory in this way?: classB* instances; instances=new classB[5] | |
Alright....this is a mess, but it works (compikes) correctly....how would I create a function (probably using "switch") to return a grade based on the averages found in CalculateAvg? [code] #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; double CalculateAvg (ifstream& students, string studentid[60], string fname[60], string lname[60], … | |
I created a personal website using the Microsoft personal website starter kit ([url]http://www.asp.net/downloads/starter-kits/personal/[/url]) then tried to run it in Visual Web Developer 2008. When I did so, I got the error msg shown below. My OS is Win XP Home and I am running Visual Web Developer in an admin … | |
Start off this is my first post so go easy on me :) I am a beginner at C# programming and have been set the task of making a tamagotchi in a console application, my question is there anyone who can point me in the direction of a good tutorial … |
The End.