199,114 Archived Topics
Remove Filter ![]() | |
hello ive been working on this project for the past couple of days, and i keep on getting the same error. it tells me that the term will not evaluate a function with two arguments. please help me! thanks [CODE]#include <iostream> #include <cmath> using namespace std; int main () { … | |
hi, i wrote this program on polynomials and how to manipulate them. however, i am having a problem with my eval function. it is supposed to evaluate the polynomial at a particular number. however, whenever i call a.eval(2.0), i keep getting polynomial a. please help me look into this. [code] … | |
I have a table with a column containing a single character representing what type of animal described by the record. I have a comboBox which has the Items property filled with the descriptions corresponding to each code. Example "A" = Amphibian, "C" = Coldwater fish... and so on). What I … | |
Hi, I'm getting this error: Asig 2.cpp In function `void ManiMatrix()': 31 Asig 2.cpp expected primary-expression before "int" Asig 2\Makefile.win [Build Error] ["Asig 2.o"] Error 1 Here is how I'm calling it from main: customMatrix.checkIfMagic(); Prototype in the class: void checkIfMagic(int**); void matrix::checkIfMagic(int **arrayOfArray) {// function began } // function … | |
when i use a dynamic 2d char array using pointers, i dont get any errors but the program is not executed correctly... //Pro to enter and display strings using dynamic 2d char array. [code=c] #include<iostream.h> #include<conio.h> void main() { char **v; int s; cout<<"Enter size :: "; cin>>s; v=new char[s]; … | |
Can anyone help me wiht the prog. arrange a 1D array in ascending order. No need for the prog. code just explain me the logic. | |
Hi all, i am trying to do a quadratic hashing but i am having some difficulties probably because i am not in the right logic.using this code: [CODE] #include <iostream> using namespace std; int find(int); void insert(int); const unsigned int size = 13; int load = 0; // number of … | |
can anyone help me finish my program please. thank you [code=c] #include <stdio.h> #include <math.h> int main() { int product; float product1 = 2.98; float product2 = 4.50; float product3 = 9.98; float product4 = 4.49; float product5 = 6.87; float quantity = 1; double unitprice; float result; double total; … | |
i am trying to pair a vector and an integer but [code] map<vector[i][j],int>m; m.insert(pair<vector[i][j],int>,(v[1][0],sum)); [/code] did not work?? | |
I want to do two-dimensional array.. STUDENT1 take 001, 003, 005,006 STUDENT2 take 005, 007, 009, 001 001 002 003 004 like this 001 0 2 1 .... 002 003 004 and I do a programming like below, but how to fill inside the { }? [code=c++] // -------------------------------------------------------------- // … | |
Hi, I created an object to create buttons in console applications. But somehow, the program doesn't do much when it's checking if the button is clicked. I got this code from the internet, I could give the original code if you want to study it. I have stripped it down … | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton … | |
Is there something wrong with the Frame Element that prevents these events from firing (AllowDrop is set to true)? | |
Guys Does any one read about include a SMS GatWay through asp.net site. any help will be great. SAM | |
HI, can any tell me how to develop a application to send bulk sms from computer | |
Hi I am not much experienced in JSP. I am facing one problem while printing a XML String on the screen. Code snippet -> String result = ab.returnResult(); result is returning a XML String..Suppose <A>123</A><B>SIR</B><C>21</C> I am printing -> <tr><td><%= result %></td></tr> I am getting 123SIR21 as output in the … | |
hai... i have develop a website using templet (from free provider) but i have a problem when run it at localhost (i'm using php & mysql-xampp package) i edited that templet at dreamweaver, i have no problem when view it at dreamweaver but when i run that website at the … | |
[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the … | |
Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists … | |
[B][COLOR="Red"]Value.h[/COLOR][/B] [code=c++] #ifndef VALUE_H #define VALUE_H #include <iostream> template<typename DataType> class Value { public: Value(DataType val); Value(const Value<DataType>& aValue); Value& operator =(const Value& aValue); Value& operator +(const Value& aValue); void SetValue(DataType val) { _value = val; } DataType GetValue() const { return _value; } template<typename DataType> friend std::ostream& operator <<(std::ostream& … | |
Hi, i have been making a server for a client I made to connect to. I don't have a static IP, so I need a way for someone on another computer to connect to me without me telling the user what it is every time. I have tried to just … | |
Hello everyone, I am trying to write a program to help a friend out with updating virus definitions. In order to update their definitions, they must manually go out and download and install the file themselves. I would like to be able to write a program that automatically downloads the … | |
Hello All, I am looking for automated testing tool mainly for ASP.Net applications... Please share if you have some references. | |
Hello, I have a vector of callbacks and I'd like to execute them. This is what I do: [CODE=C++] typedef boost::function<void (void)> FCallBack; std::vector<FCallBack> c; // Execute every callback std::for_each(c.begin(), c.end(), boost::bind(&FCallBack::operator(), _1)); [/CODE] This works, but is there an easier way to do so? For some reason reference to … | |
i am trying to overload subtraction between two separate classes. Class Id is basically several strings such as the information of a voter database. Class Collect would be the collection of several class Id's in an array along with a total of Class Id's and the title of the collection … | |
I have borland C++ compiler on my system.while generating random numbers in C++,though i have incuded #include<cstdlib> and #include<iostream> i get these errors 1.cannot open include file cstdlib 2.call to undefined function rand please help me with a solution | |
I have just moved into a new postion where I need to work with USB hubs. We have a portable device (I.e battery, limited power) with USB On The Go and need to drive a USB thumb drive. The thumb drive takes more current than we have but a powered … | |
Hello everyone. I have attached a folderBrowserDialog1 to my Form1. To a button I will do a function. What I will do now is when I press the button, I want to open this folderBrowserDialog wich works fine. After this I will click on a folder wich contains *.txt Files … | |
Hello, I'm doing (post) #2 of 'Projects for the Beginner' and I used for making this the 'The Address Book Revisited' example on this [URL="http://www.freenetpages.co.uk/hp/alan.gauld/tutor2/tutfiles.htm"]page[/URL] The author says he even put in two errors on purpose. I have re-written the code and changed it more to a Code Library like … | |
[code]program pics; var N : integer; OutString : string; begin for N := 1 to 6 do begin Str(2*N, OutString); writeln('image'+ OutString) end end.[/code] That is the code I've got and here is its output: image2 image4 image6 image8 image10 image12 but here is the output format that I want: … | |
Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array … | |
Hi I am trying to increment the date using weekly increments. I need to determine the start and end dates and the week number of the year. If you can suggest another approache that is OK, but this is what I came up with. I am having problems getting the … | |
Hi. Need to know what's the difference when using Templates between: [inlinecode]template<class T>[/inlinecode] and [inlinecode]template<typedef T>[/inlinecode] | |
Hi, I'm trying to use the pow function. Extremely simple program like the following, but it never passed compiler: #include <iostream> #include <cmath> int main() { int a, b, c; a=2; b=3; [COLOR="Red"]c=pow(a, b);[/COLOR] cout << c; return 0; } Compiler would highlight the red part. What's wrong?:icon_rolleyes: Thanks in … | |
[code=c++] // Input the plaintext in the array char d; string temp; ifstream myfile1 ("Plaintext.txt"); if (myfile1.is_open()) { do { for ( j=0; j<BC; j++) // BC=4 for ( i=0; i < 4; i++) { myfile1.get(d); a[i][j] = d; // plaintext } Encrypt(a, rk); /* strcpy(temp,a); // Code to write … | |
I've got two tables - members and sponsor, their simplified structure below. members: id_num program_id sponsor_program_id sponsor: id_num sponsor Some of the members in members table are sponsors. I need to update the field sponsor_program_id in all records in members table with their sponsors program_id field. Sponsor table tells me … | |
I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will … | |
Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved. Basically the run method itself can throw an exception but others can't see it (RuntimeException) but can it throw … | |
Does Python have a built-in GUI kit? Meaning without using Tcl/Tk. Because, I'm developing for the iPod touch / iPhone, and I don't want to have the user need to install the Python and Tcl runtimes. | |
is it possible to retrieve live data (maybe an xml file) from a website to use on your own website? ,lacking in knowledge of new technology | |
Hi, I am using dev c++ 4.9.9.2 and I am new to DLLs. I am tryig to create a DLL which I am not creating thru the "DLL project" in dev cpp. Here are my three files: //dlltest.h [CODE] #ifndef _DLLTEST_H #define _DLLTEST_H #ifdef BUILD_DLL #define EXPORT _declspec(dllexport) #else #define … | |
Hi, I've made a console Pong game. I've added some sounds but the sounds are about 10 external .wav sounds. It seems a bit like a mess when I send the game to somebody, and it's not really user friendly. I want these sounds to be included IN the .exe … | |
I am trying to do a sort of and expiry date so that when an account is created about 3 months later I'll be informed so that the account can be renewed. I don't know how I can do this and to tell you the truth I never used the … | |
Hi I don't know if this is the right place to post my problem. I m new to YUI, I ve modified the exemple listed here [url]http://developer.yahoo.com/yui/examples/datatable/dt_enhanced_clean.html[/url] well, FireFox and Opera diplay what I want, but as always the IE drive me nut, and this time IE7/IE6 gives me errors, … | |
(Note: sizeof(character) == 68 bytes) I am having issues with fstream::seekg()/seekp(). It seems like when one is invoked to modify the get or put pointer, the other pointer follows it instead of staying in place. Example: [CODE=cplusplus] charfile.seekp(0,ios::beg); cout << endl << "Put pointer is at " << charfile.tellp() << … | |
Hi All, i'm new to this board. I'm having a spot of bother with the following: Here is what i'm trying to do. From the drop down list (generated from my database) a style is selected and the image is displayed in the preview box next to it. The problem … | |
I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String … |
The End.