199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bob Arctor

Hello all, Newbie and running out of steam here. I have a form passing the checkbox value to a db. The db is essentially 2 fields news and id (auto-increment). I'm pretty baffled as how to extract the data. Ideally I would like to give each form submission a unique …

Member Avatar for Bob Arctor
0
440
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 …

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 …

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 …

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 …

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"

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 …

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* …

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

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 …

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 …

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. …

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;) …

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

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 …

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???

Member Avatar for quuba
0
36
Member Avatar for VernonDozier

I have some simple php code. It worked fine on the old server, but now I am getting an error on the new server. Both former and present servers are Linux. [code=php] <?php function ConfirmationEmail () { $from = "mo@abc.com"; $recipient = "bill@yahoo.com"; $cc1 = $from; $cc2 = "mo@gmail.com"; $subject …

Member Avatar for blocblue
0
193
Member Avatar for almualim
Member Avatar for PomonaGrange
0
163
Member Avatar for Run.[it]

Im creating some pseudo code for a test and I was wondering if its possible to have a case statement inside a Repeat Loop. Is there any specific rules for this kind of thing? Thanks for any reply.

Member Avatar for Run.[it]
0
85
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?

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

Member Avatar for the_swan
0
156
Member Avatar for mapidea

I have a basic question in .Net Why there is a need for .Net Framework supporting different languages? Is it not better to train everyone in a single language? Thanks.

Member Avatar for jbennet
0
113
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

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 …

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 …

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 …

Member Avatar for ebi1
0
247
Member Avatar for cristi2008
Member Avatar for eggi
0
110
Member Avatar for cristi2008
Member Avatar for eggi
0
103
Member Avatar for Venom Rush

Well the title pretty much says it all. I'm reading through a php OOP book and I'm having trouble understanding why you'd want to create an abstract class. Can anyone perhaps shed some light on this for me as I haven't found any resources that explain this well enough.

Member Avatar for digital-ether
0
159
Member Avatar for devon.philip

A cookie is a flat file that stores tiny bits of information. It is stored on the client’s machine and is passed to the client when they visit your site. Each cookie can store anything from usernames to number of visits to a site. This tutorial will teach you how …

Member Avatar for digital-ether
0
126
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 …

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 …

Member Avatar for Murtan
0
3K
Member Avatar for RuneMan

I am developing a website which encrypts every user's password with sha1() method and is stored in the database. Now the problem is I want to offer a recover password function for my users. but i dont know how to get the password from the salted string Help me!!!

Member Avatar for digital-ether
0
110
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), …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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 …

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) { …

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 …

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 …

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 …

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 …

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

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 …

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 …

Member Avatar for MaxVK
0
1K

The End.