132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cubathy

Hi everyone. Getting compile errors with the following code that i can not figure out...: [code] template <class T> class X{ class Y{ public: Y(); }; X(); }; template <class T> typename X<T>::Y * operator[](X<T> * obj1, int index); [/code] The compile error from mingw is: [code] test.h:18: error: 'typename …

Software Development c++
Member Avatar for cubathy
0
110
Member Avatar for hpdv2000

Hi all, Im having trouble understanding the two sorting method. How do you find the number of comparison made by merge sort and quicksort? isit using the O(nlogn)?? What is it supposed to mean by " sort, by hand, the folllowing array... using a)merge sort b)quicksort Thanks

Software Development java
Member Avatar for mahlerfive
0
70
Member Avatar for Church

i'm trying to put a function call inside of a function call: [CODE]switch_statement(menu());[/CODE] switch_statement is a function call and so is menu. I want what menu is returning to go into switch_statement but i kinda don't want to bother making a new variable just for this task.. So is it …

Software Development c
0
91
Member Avatar for f.ben.isaac

To make things easier for cosing in Win32 API, MFC is created which wraps Win32 API in classes. At the beginning i though MFC is there only to aid you making C/C++ GUI Application. For example, CSocket() wraps the function socket(), printf() gets wrapped in another class, and so on. …

Software Development api c++ delphi gui windows-api
Member Avatar for f.ben.isaac
0
244
Member Avatar for chchiu

can someone help me to slove this using c++ please. :X

Software Development c c# c++
Member Avatar for mrboolf
0
128
Member Avatar for Shinedevil

I need to find out, because my program deals with numbers, how to block characters from being inputted. Such as, [code] int input; cout<<"Please type in a number."<<endl; cin>>input; //input should be a number. A letter? Oh no. [/code] if the input would have been a character, BOOM! Program == …

Software Development c++
Member Avatar for StuXYZ
0
202
Member Avatar for abhijitm

Hi In the below code , i am getting compile time error when declaring the copy constructor . C:\work\Dev-Cpp\bin>"mingw32-c++.exe" dynamicArray.cpp dynamicArray.cpp:13: error: expected `,' or `...' before '&' token dynamicArray.cpp:13: error: ISO C++ forbids declaration of `dynarrray' with no t ype dynamicArray.cpp:13: error: `dynarray::dynarray(int)' and `dynarray::dynarray(in t)' cannot be overloaded …

Software Development c++
Member Avatar for abhijitm
0
147
Member Avatar for richasr1

Hi, I am currently working on an elevator simulation in MS Visual C# that will eventually involve at least 2, preferrably 3 elevators running across 5 floors. There is currently one elevator that will service all floors when a call button is pressed, though adding a 2nd one brings up …

Software Development queue
Member Avatar for ddanbe
0
600
Member Avatar for sid78669

I have a very similar issue. I am also doing and assignment and needed a function grow. This was to increase the size of the object array Savings by s, if it was not NULL, or make its size s if it was null. In both the case it was …

Software Development c++
Member Avatar for ArkM
0
143
Member Avatar for koushal.vv

Hi All, i have a problem in converting CString to Int/Double, function i am using is _wtoi , _wtof..... Here if the CSting value has say "12345" this works perfectly. But if any other value is say ( Over flow ) " 11111111111111111111111111111" which exceeds the max size of int …

Software Development c++
Member Avatar for koushal.vv
0
235
Member Avatar for Pareshja

Is it possible to call a sql view in vb.net? I can call stored procs, but when I change the code to read a view it says that "request for procedure failed because it is a view object"

Software Development sql vb.net
Member Avatar for Jx_Man
0
1K
Member Avatar for littlestone

Does it need a copy constructor and an operator= for a class which have array member? for example: Class A { private: B data_[100]; //B is a class }; does class A need a copy constructor and an operator? in other words, is the default copy constructor is OK for …

Software Development c++
Member Avatar for abhijitm
0
212
Member Avatar for AutoC

I have a c++ program that performs a functionality. generate.h [code] struct code { bool out; bool *reg; }; class Cyclic { private: struct code *cy; int rgsize; bool *gen; int gensize; unsigned short cycodes[256]; public: Cyclic(int a, int b,bool c[]); void leftShift(); bool* cyclicCode(bool mssg[],int msize); void printReg(); bool* …

Software Development c++ client-server socket-programming
Member Avatar for ArkM
0
230
Member Avatar for Stefano Mtangoo

I was playing with ListCtrl and I have only been able to get first value of the selected row. Is there any method I can use to get the rest of column's value in the selected row? Help please Steve

Software Development python
Member Avatar for Stefano Mtangoo
0
697
Member Avatar for Sereal_Killer

i'm a realy newbie stil only been taking this course for a few months. i have a problem with 2 things in the folowing codes and im gona ask ure help with them . they are semi english since im in europe and these are codes the teachers used as …

Software Development java
Member Avatar for VernonDozier
0
126
Member Avatar for efus

I have a binary tree which I would like to get printed out inorder. Right now I have this recursice loop: [code] public void inorder() { if(leftChild != null ) leftChild.inorder(); System.out.print(" " + data); if(rightChild != null ) rightChild.inorder(); } [/code] This get the right order printed. The problem …

Software Development java
Member Avatar for quuba
0
101
Member Avatar for Gribouillis

The following program is able to download the python programs contained in a thread of the python forum. Just start the program, it will prompt you for the thread number and create a directory with the code extracted from the thread. I used it to download all the wx examples. …

Software Development algorithm os-x python
0
112
Member Avatar for xinix

Hey all, I posted a question earlier this week regarding dev-c++ and my inability to keep the output window (#include <iostream>) open long enough to see my program running! I have already tried the following things and would be grateful for any other suggestions! 1: (Without typing using namespace std;) …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for Dell XPS

I need in some way to generate maze because I want to create a maze game. If anybody has any idea on how to do this... please help

Software Development vb.net
Member Avatar for Dell XPS
0
268
Member Avatar for littlebean21289

hi so i have just joined today but if i had known about this site i would have joined much sooner, i asked if anyone could help me with how i should post in the intro but dont wanna wait a day for a response so if i make any …

Software Development java java-swing
Member Avatar for littlebean21289
0
774
Member Avatar for deepu16

can any1 suggest me how many modules should b desinged to develope a file splitter sw n wat shuld b they???

Software Development file-system java
Member Avatar for quuba
0
36
Member Avatar for ichiwa

I am doing a program implemented in Mobile Phone. It's quite similar with this one though. The data which I want to save and load is phonenumber. What I want to ask is, can it also use XML serialization?

Software Development xml
Member Avatar for LizR
0
74
Member Avatar for the_swan

Hiiiiiiiiiiiiii I’m beginner in vb.net And I’m going to build a page that contains a file up loaded (web server control) How to insert a submitted item from file up loaded and save it in a data table object??? I need the VB code thanks

Software Development vb.net web-server
Member Avatar for the_swan
0
156
Member Avatar for Stefano Mtangoo

I have so far been playing with wxpy's media control and is greater, but needs backend which is not good habit anyway. Is there any framework, that can in its own play multimedia file independent of OS's as backend?? I use python 2.5.2 Thanks all

Software Development multimedia python
Member Avatar for Stefano Mtangoo
0
90
Member Avatar for blossomus

Hi all.. dis is kinda urgent case though coz i dun have much time to complete my final project.:'( I've installed sql server 5.0 and the connection is on.I have also created the tables related to my interfaces As for vb.net, i've finished with all my interfaces. Now, the problem …

Software Development sql vb.net
Member Avatar for blossomus
0
216
Member Avatar for vladdy191

I'm trying to make a symbol table, for a project. The project as a whole is a translator/compiler that translates an imaginary language into java. I have everything down except for the symbol table. I am currently using a Stack of Lists. The Lists are vectors of Strings so I …

Software Development java
Member Avatar for ~s.o.s~
0
122
Member Avatar for emmann

Hello, I am trying to do something i could call gaming utility in delphi. I have one mayor problem. I don't know how to get the data i need. You can find data i need on the link bellow, it is player stats table from game called runescape, you don't …

Software Development delphi gaming pascal
Member Avatar for ebi1
0
247
Member Avatar for cristi2008

hy! How can I do so that my input to be a file.To read a file as input.thanks

Software Development shell-scripting
Member Avatar for eggi
0
110
Member Avatar for cristi2008

hy! I would like to know how can i ckeck the input if its a number or if its a text?

Software Development shell-scripting
Member Avatar for eggi
0
103
Member Avatar for abhishek.com

Hi Guys I have a query regarding "sizeof" operator and it is related to the program: [B][COLOR="Red"]{ int x; x=sizeof (-32768); printf("%d",X); getch(); }[/COLOR][/B] Then it's printing it's value as [COLOR="Red"]4[/COLOR], But logically it should be[COLOR="Green"] 2[/COLOR] because the integer range is from -32768 to 32767. ============================================== [B]And my second …

Software Development c++
Member Avatar for vmanes
0
119
Member Avatar for pyth0n

Hi I am trying to ask the user to input a binary number and checking to see if the input contains 0's and 1's. If not, I want to inform the user that the input was invalid and ask them to retry. Any help to fix my code would be …

Software Development python
Member Avatar for Murtan
0
3K
Member Avatar for axn

need to read the config file and then zip files in path. dont get any errors but files not zipping [ICODE]# config file [clean1] path = C:/Project/Log1 action=zip [clean2] path = C:/Project/Log2 action = zip #zip.py import zipfile, os, time, sys, ConfigParser, zlib def zip_fh(): zip = zipfile.ZipFile('%s.zip' % (path), …

Software Development python
Member Avatar for woooee
0
218
Member Avatar for solimanmuttawa

this is a linked list assigment and the required from me is to fill the functions: i have one fucntion left that i was unable to do which is void DeleteElement(int ID); and i have another problem the compiler states that i hve o errors but when i compile the …

Software Development c++ linked-list
Member Avatar for Lerner
0
89
Member Avatar for pocku

I am trying to create a heap sort method using recursion but whenever one of my methods called maxHeapify is called, it would throw a StackOverflowError. I understand that this error will pop up whenever my application recurses too deeply but the problem is I don't see anything wrong with …

Software Development java
Member Avatar for pocku
0
119
Member Avatar for AcesWild160

Hello and Happy holidays to all. I am new here, so sorry to bother you. I'm working on a project for a class and have run into a bit of a snag. I have a method that reads integer values from a text file and stores them into an array …

Software Development file-system java
Member Avatar for BestJewSinceJC
0
112
Member Avatar for ebiz

I have a button which opens up the file chooser. When a txt file is selected a Jframe appears with the data in. How do I change this, so the data displays in a JTable? Here is my current code package org.project; import java.util.*; import java.io.*; import javax.swing.*; public class …

Software Development java java-swing
Member Avatar for quuba
0
207
Member Avatar for bombe

Hi viewers, I was trying to delete a file from my hard drive and I don't really have a good place to start. I googled it and came up with a code derived from multiple sources. I was wondering if anyone could help me out with the code to delete …

Software Development c++ file-system hard-drive
Member Avatar for permoda
0
122
Member Avatar for robgeek

I am trying to read a file from fstream in a switch statement but something in the code seems to be stopping this part of my code to be read by the compiler. Please some one let me know what am I doing wrong. Its not the text file thats …

Software Development c++ ios
Member Avatar for robgeek
0
303
Member Avatar for jimbob90

[code=c++] 4 char *min(char *a, char *b, char *c){ 5 if(strcmp(a,b) > 0) && (strcmp(a,c) > 0) 6 return a; 7 else if(strcmp(b,a) > 0) && (strcmp(b,c) > 0) 8 return b; 9 else 10 return c; 11 } [/code] Code won't compile and the irony is i just did …

Software Development c++
Member Avatar for ArkM
0
3K
Member Avatar for StephNicolaou

Hi all, Background: I am dealing with graphical objects on a canvas in which the user draws four lines and out of these four lines I get the top left corner, bottom right corner and figure out the width and height from these two points. Problem: I have completed this …

Software Development java
Member Avatar for peter_budo
0
125
Member Avatar for valluvanl

Is it possible to call a void function from another void function? will this work? [code] mainMenu() { int input; cout<<"\t\t Main Menu \n\n"; cout<<"\t\t 1. Student Details \n"; cout<<"\t\t 2. Payment Details \n"; cout<<"\t\t 3.Exit \n\n"; cout<<"\t\t Select 1/2/3 : "; cin>>input; if(input==1) { void studentDetails(); } if(input==2) { …

Software Development c++
Member Avatar for valluvanl
0
122
Member Avatar for christiangirl

Hello, I had to make this program and it is all working except it is not writting to the file. Can you help me out? Here is the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a meal. * Includes …

Software Development apple file-system java java-swing
Member Avatar for christiangirl
0
139
Member Avatar for MosaicFuneral

Here's what I'm trying out: [icode]Substitute characters into values with no set left bits; check if the next position is a vowel(or whatever), turn it into a value with no right bits set, join the two characters into a single byte, delete the unused position now.[/icode] Here's the code using …

Software Development algorithm c++
Member Avatar for MosaicFuneral
0
296
Member Avatar for Majestics

[code] Apply all steps of conceptual and logical database design on the following requirements: The system should be able to store a customer’s name, address, and contact information and a book’s ISBN, publisher, authors, and title information. A customer should be able to purchase one or many books at a …

Software Development c++ database-design
Member Avatar for Majestics
0
106
Member Avatar for Panithuli

The class should support a function named Profiles which takes a ID as an Integer parameter and returns the name corresponding to that ID as a String. If the name is NULL, then the function should simply return an empty string (String.Empty). If the ID does not exist in the …

Software Development sql vb.net
Member Avatar for Rogachev
0
109
Member Avatar for MaxVK

Hi, Iv been playing about trying to get a string onto the clipboard, but Iv had no luck at all. Iv done quite a bit of searching, but Iv only ever seen any examples that relate to Windows, and I'm using Ubuntu here. Any ideas anyone? Max

Software Development python ubuntu
Member Avatar for MaxVK
0
145
Member Avatar for apsu

Hi, I have a problem with a sequence. The sequence is a number range from 1 to 100. I need to show each number and also the running total of each number. for example First number in sequence is 1, running total 1. Next number in sequence is 2, running …

Software Development python
Member Avatar for apsu
0
110
Member Avatar for MaxVK

Hi there. I'm writing a program that uses a tree control as a form of navigation, and the structure of the tree is set up in code as the program loads. This is fine for now, but there is the possibility that the structure will need to expand considerably, which …

Software Development python
Member Avatar for MaxVK
0
1K
Member Avatar for deepas

I have to insert certain data in excel to sql database on weekly basis & also has to dump a report shown in gridview control to excel so can anyone help me to import data from excel to datagrid view so that user can upload in one click.And how to …

Software Development
Member Avatar for LizR
0
120
Member Avatar for rtmarch

so i have been sitting here for about 2 days finishing this thing and i still have one error left and i am having a hard time fixing it 1>k:\c++\energy bill part 3\energy part 2.cpp(119) : error C2059: syntax error : ';' here is my code thanks for your help …

Software Development c++ ios
Member Avatar for TheBeast32
0
125

The End.