132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for krishniha
Member Avatar for chococrack

I have three files (myClass.h, myClass.cpp, and main.cpp) [code] // // myClass.h #ifndef MYCLASS_H_ #define MYCLASS_H_ template <class element_type> class myClass { public: myClass(); ~myClass(); }; #endif /* MYCLASS_H_ */ [/code] [code] // // myClass.cpp #include "myClass.h" template <class element_type> myClass<element_type>::myClass() { } template <class element_type> myClass<element_type>::~myClass() { } [/code] …

Software Development c++
Member Avatar for Alex Edwards
0
188
Member Avatar for sekola

i have used c++ to run windows commands in windows\system32. i am sure u r all very farmiliar with that. however, the procedure seems not to be able to access other .exe files in other folders on my machine. please advice.;)

Software Development c c# c++
Member Avatar for Salem
0
99
Member Avatar for sbhavan

I have to update 5 tables simultaniously which are inter related with each other. My requirement is if all tables are updated successfully then all the updates will be commited. if any one of the query is failed due to some reason all the queried should be rolledback. The way …

Software Development apache java
Member Avatar for Ezzaral
0
123
Member Avatar for piggysmile

I came across [URL="http://www.brainbashers.com/searchengineshow.asp?ref=ZESB"]this interesting puzzle[/URL]. How would you code the solution to this?

Software Development c++ puzzle
Member Avatar for ArkM
0
91
Member Avatar for Jason123

I am required to create a program that will allow user to enter employee name,age and update salary later on. After which able to generate out the details. I am trying to declare a class object in the form of an array so that i can input data and then …

Software Development c++
Member Avatar for Jason123
0
189
Member Avatar for salman1354

Hello all, I'm having difficulty with reading data from external files. I have to read two inputs from two Excel files. One is a matrix A[3][20] which is stored as a 3x5 matrix (in Excel format) in the file AData.xls and the other one is a vector dV[35] which is …

Software Development c++
Member Avatar for Lerner
0
87
Member Avatar for hajjo

I have this code [CODE]#include <stdio.h> int addthree(int x); int main() { int num; int d = 0; printf("enter ur num"); scanf("%d", &num); d = addthree(num); return 0; } int addthree(int x) { int s = 0; s = x +3; return s; } [/CODE] Okey I want this code …

Software Development c
Member Avatar for Narue
0
108
Member Avatar for Grub

Hi, Is it possible to compare files by hash code? If so how do I do this. I am attempting to locate duplicates. Simply calling the file.sashCode() generates a hash code but if a duplicate file is located the hash code if different, depending on name and location. Naturally you …

Software Development java
Member Avatar for ~s.o.s~
0
2K
Member Avatar for jodyf1717

anyone kno any simple example of the quick sort merge sort and shell sort? i cant come across any in C.

Software Development c
Member Avatar for Narue
0
57
Member Avatar for srinivasanb4u

Hi I am new to python . I need source code to draw scatter plot using Python my Input_1 is something like below: ------------------------------------------- ID X Y Z 120321 172.15 -285.03 -870.09 120323 244.31 -257.18 -870.19 120324 274.65 -277.03 -870.10 120327 226.51 -263.98 -870.09 120328 268.55 -271.05 -870.10 my Input_2 …

Software Development python
Member Avatar for srinivasanb4u
0
238
Member Avatar for IrishUpstart

So I need to create a set of data points for the function v*t+.5at(squared). The data points need to be every .02 seconds from 0 to 2.0 seconds. How do I set up the counter for that? Also, all of these points need to be wrote to a location so …

Software Development c
Member Avatar for ArkM
0
153
Member Avatar for K.Vanlalliana

I am doing one project in which Whenever I export the result, the list of record should be extracted as Excel file and the list of record should be listed within Excel Table with formated Line. So, I want to format Excel from VB so as to make line / …

Software Development visual-basic
Member Avatar for K.Vanlalliana
0
213
Member Avatar for dtaylor01

Can someone take a look at my code and see if they notice something wrong. [ICODE]int score; char grade =0; // read in total score cout << endl; cout << "Enter total score (float, must be <= 100): "; cin >> score; if (score >= 85); grade = 'A'; else …

Software Development c++
Member Avatar for chococrack
0
249
Member Avatar for DragonReborn225

hey, this program is supposed to calculate fractions, and I feel that I have most of the code down, but I can't get past the fractions.cpp:50: error: expected primary-expression before 'char' error, its probably something misicule, but I can't get it for the life of me. The error is in …

Software Development c++
Member Avatar for emotionalone
0
476
Member Avatar for rione

i really need help on this, i need code for this project, please help me, thanks in advance.. (Power Set) Given an input set with entries separated by commas, output all the possible sets that can be generated from this set. Sets are described in the file power.txt The lines …

Software Development gui java
Member Avatar for Chaster
0
104
Member Avatar for Aashath

Hi I have a LinkedList of class called Room. Now i want display elements that i stored in that class . i also implemented toString() in my Room class which returns string. The code i tried is below but its not working . i dont know the reason . can …

Software Development api java
Member Avatar for darkagn
0
120
Member Avatar for tefismp

Someone out there please help me i must do a function for a bucket sort but i dont know how and the only things i must use are normal arrays and pointers no strange functions and libraries i need the code in c++ please i know what the program does …

Software Development c++
Member Avatar for Freaky_Chris
0
164
Member Avatar for Oscar G. Gidei

i want to link my forms with access tables and dont want to use the odbc object. i need to use the ADO is it posible and how. for in my first instance it worked, but when i moved it to another computer it signaled "Canot find database" Help pliz

Software Development visual-basic
Member Avatar for jireh
0
186
Member Avatar for asifjavaid

Hi all guys, I am using MS VC++.NET 2003 I have also installed MS VS++2005 and 2008 on the same computer. Now when I ran the previous programs which are programed in VC++2003, now I am facing the following errors. Error spawning 'link.exe' Error spawning 'cl.exe'. can any one tell …

Software Development c++
Member Avatar for Denniz
0
227
Member Avatar for efus

Hi. If given an arraylist in an interface like this: [code] interface Dictionary { public boolean hasWord(String word); public ArrayList<String> suggestions( String word ); public void addWord( String word ); } [/code] How do I use it? If I try to use it as a normal arraylist, I get the …

Software Development java
Member Avatar for stultuske
0
101
Member Avatar for christiangirl

I need to print the contents of an array backwards, but every time I try it just prints a a smiley face, or something like that. Here's the code, it isin three files: [code] main file: #include <iostream> #include "testArray.cpp" using namespace std; int main() { testArray test; char ch; …

Software Development c++
Member Avatar for Freaky_Chris
0
244
Member Avatar for grisha83

Hello, it the same old program calculator i have corrected errors that were preventing me from running the program. Now that i have done it i am facing another issue; It doesnt perform needed computations such as +-* and etc. It must be my switch fn. Any help will be …

Software Development c++
Member Avatar for Evan M
0
145
Member Avatar for annie_singh

Hello, I am a beginner in perl. I am stuck with a problem. I have an array which looks like this 6.324 32.707 50.379 5.197 32.618 46.826 4.020 36.132 46.259 7.131 38.210 45.919 6.719 38.935 42.270 2.986 39.221 41.892 -0.269 37.184 41.565 `Inline Code Example Here` These are the X, …

Software Development perl
Member Avatar for KevinADC
0
864
Member Avatar for potatochips

hi, i have a Windows Application using visual studio.net 2005.. is there any way to close only the report in the report viewer n not the rest of the windows that r running? =/ thanks so much! :)

Software Development vb.net visual-studio
Member Avatar for potatochips
0
134
Member Avatar for Evan M

As I was busy inlining some of my functions, I was wondering if it is really necessary to inline anything. Doesn't the compiler automatically inline stuff, or do I have false memories? And if the compiler does inline stuff for me, would it be best to let it do its …

Software Development c++
Member Avatar for Evan M
0
135
Member Avatar for mode17

Hi, I'm a beginner in c# and I'm now work in a project with image editing. i already figure how to do this manually but my professor wants it automatically. and i tried to call the class type after i load the image but it doesn't work. here is my …

Software Development
Member Avatar for LizR
0
93
Member Avatar for grisha83

Hello, I am writing the code for my basic calculator program and having some issues with it. I keep getting the same error, which doesn't let even let me see whether my program works. Could you please take a look at it and at least direct me in a direction? …

Software Development c++
Member Avatar for grisha83
0
100
Member Avatar for neighbordave

Hi all, first time user on this website and I'm very new to Java so I'm kind of stuck on this I would appreciate any help I can get. My assignment is as follows and I got everything except one last part that I cant figure out how to write …

Software Development java
Member Avatar for neighbordave
0
144
Member Avatar for kenji

I have a question regarding pointers to member functions, this is the first time that I have come across them and I have no idea how to write the function for it. This is the function prototype: [icode] const char* getData() const; [/icode] I understand what it is and how …

Software Development c++
Member Avatar for seanhunt
0
158
Member Avatar for koman

[code] #include <iostream> using namespace std; int main () { int j; int t; int p; int num; cout << " Please enter an even integer greater than 2: "; cin >> num; for ( int i = 2 ; i < num; i++ ) if ( ( i == …

Software Development c++
Member Avatar for stilllearning
0
165
Member Avatar for samjars

I have just started studying C++ and am trying to write an interactive C++ program. The program should be a form of supermarket receipt. The format/sample is given below CASH 20000 [U][B]ITEM(S) PRICE[/B][/U] Soap 2000 beef 3000 cake 1500 book 2000 Bags 4000 CHANGE 7500 I have tried my best …

Software Development c++
Member Avatar for Salem
0
97
Member Avatar for Jason123

i have a 2D array of emp[20][10] How can i do it such that it only prints out the selected index like emp[0][0] to emp[0][10] etc. It will print around more than the selected.. [code=cplusplus] for(int i= 0; i < 20; i++) { for (int j = 0; j < …

Software Development c++
Member Avatar for seanhunt
0
101
Member Avatar for JpegUser

Hi, I'm trying to figure out how to scale down a jpeg image in the jpeg library. From the documentation, i've come across these two variables "int scale_num, scale_denom". I've changed the value of scale_denom to 8 but my image could not be displayed. In my jdapimin.c, cinfo->scale_num = 1; …

Software Development c
Member Avatar for JpegUser
0
87
Member Avatar for guest7

Hi, How can i delete a particular element using delete operator? Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
127
Member Avatar for cerb63

Modify the original Hero's Inventory I assignment to allow the user to create an inventory which not only holds the name of the objects obtained, but their point values as well. You will do this using a single structure, so that string names and numeric point values may be housed …

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for Baskar_engg

hi The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception. this is the Exception im getting while im fetching records from excel file help me to solve thiz

Software Development vb.net
Member Avatar for technicalganesh
0
195
Member Avatar for atreides27

I'm cryptically told nothing more then "your code is almost completely wrong" this is supposed to be a program that reads from an input file (infile.dat) one line of "programming advice" to a user. Then the user enters their own advice for the next person who runs the program to …

Software Development c++
Member Avatar for Ancient Dragon
0
117
Member Avatar for vkiller

I have a program to write that can binarize a gray-level image based on the assumption that the image has a bimodal histogram. The code should report both the binarized image and the optimal threshold value. Assume that foreground takes a value of 1 and the background a value of …

Software Development c image
0
77
Member Avatar for it2051229

Hello, i'm interested on learning the PERL language and I do not have any idea on the installation and what really PERL does although i've made research but still confused. Is PERL for the WEB like PHP? or it is like C for creating executable applications?.. I have E-books of …

Software Development perl
Member Avatar for KevinADC
0
179
Member Avatar for LADY187

Hi i did the simple part of my project and got it to run but now i have to add in prototypes. can someone please help bool validRadius(double); bool validLengthAndWidth(double, double); bool validBaseAnd Height(double, double); I will also create functions which will calculate the area of the various geometric objects. …

Software Development c++
Member Avatar for LADY187
0
107
Member Avatar for Duki

Hey everyone, I have a program using databases and I want to send a click event for the AddNewItem binding. I was able to do something similar for the "Save" icon, so that when a user modifies an entry they can click a link label that says "Apply" and it …

Software Development vb.net
Member Avatar for Duki
0
111
Member Avatar for guest7

Hi, I am getting the following error : test.o(11488) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug test.o(11488) malloc: *** mmap(size=2097152) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug test.o(11488) malloc: …

Software Development c++ storage
Member Avatar for guest7
0
190
Member Avatar for Se7Olutionyg

[CODE]#include <math.h> #include <iostream> using namespace std; void instruction(); int calculator (char); void divide_by_zero (); float do_next_op (char, float, float); int main() { //input char input; float accum,num; // instructions (); void instruction(); accum = 0 ; do { //get input cout<< " : " ; cin >> input; cin …

Software Development c++
Member Avatar for Denniz
0
182
Member Avatar for sankari27

Hello, I have one application that reads and writes from the serial port. Sometimes the function read(): "read(fd,buffer,numbytes)" returns before than read bytes reachs numbytes. (Because there are more data in the serial port buffer) I mean. if numbytes is 32, sometimes read returns 12, and in the next read …

Software Development c
Member Avatar for Ancient Dragon
0
92
Member Avatar for LADY187

[code=cplusplus] #include <iostream> #include <fstream> #include <stdlib.h> #include <iomanip> using namespace std; int main () { ifstream inFile; //declare variables int counter = 0, //row counter countErr = 0, //counter for error message id; double grade1, grade2, grade3, grade4, gpa, cTotal1 = 0, cTotal2 = 0, cTotal3 = 0, cTotal4 …

Software Development c++
Member Avatar for chococrack
0
107
Member Avatar for Ancient Dragon

If anyone can answer [URL="http://www.programmingforums.org/thread16958.html"]my question on PFO [/URL]I'd apprecaite an answer. I don't want to repeat it here because it is somewhat lengthy.

Software Development c++ mysql
Member Avatar for Ancient Dragon
0
82
Member Avatar for dreamgirl

hello, well my question is that when am creating a standard vb calculator, am unable to display the number 1,2 and so on the textbox?? How do we do that? Thx in advance

Software Development visual-basic
Member Avatar for Froot Loops
0
122
Member Avatar for reno02

Hello: I am a newbie and need help with a celsius to fahrenheit script. If anyone can help, it would be greatly appreciated. Right now, it comes back with the error Here is my HTML code: <!xxxx.html> <HTML> <HEAD><TITLE>XXXXX Temperature Conversion</TITLE></HEAD> <BODY> <H3>Use this form to convert a temperature.</H3><BR /> …

Software Development perl
Member Avatar for KevinADC
0
98
Member Avatar for RonaldvanMeer

I'm writing a program wich is using an array -> startpoint[4] this array will be later filled by values from an other array. this is not the problem! the problem begins here: I have a class: computerPlayer.cpp with a method: getStartpoint() [code=cpp] int *startPoint[4]; // global variable int* computerPlayer::getStartpoint(){ int …

Software Development c c# c++
Member Avatar for RonaldvanMeer
0
165

The End.