132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gothicmisery85

I have a bank account project using inheritance that I have to do for my C++ class, and some suggestions would be great as how to go about doing this project. Here's what we have to do. "Design a generic class to hold the following information about a bank account: …

Software Development c++
Member Avatar for gothicmisery85
0
238
Member Avatar for Jennifer84

I have a vector that contains these elements( std::vector<string> Values(6); ) What I wonder here is how it is possible to remove "dublicates" from Values(6) ? As in this example there is 2 dublicates that are exactly the same. 5,1536 5,1537 5,1538 5,1537 //This is a dublicate 5,1538 //This is …

Software Development c++
Member Avatar for Jennifer84
0
346
Member Avatar for torbecire

I am trying to make a calculator. It requires I use a string Tokenizer. I have done so fine with the numbers but can't figure out how to put the & and / in there. The input is supposed to be as follows These are improper fractions whole & numerator …

Software Development java
Member Avatar for torbecire
0
522
Member Avatar for curt22

Hi everyone, I'm having trouble with this code. It compiles fine, but clicking the menu item I just added the actionlistener to doesn't work. I'm new to java and I can't figure it out. [CODE]/* * NewJFrame.java * * Created on March 10, 2008, 2:47 PM */ package javaapplication5; import …

Software Development java java-swing
Member Avatar for curt22
0
116
Member Avatar for shannonpaul

I have Two Text Boxes where the user enters their name. I need to validate that the boxes are not left empty and also no numeric data is entered. If it either is entered the click event Cost will determine invalid values and display message box error. Obviously my problem …

Software Development vb.net
Member Avatar for bwkeller
0
155
Member Avatar for fufu123

the program is supposed to enter type of a car,enter arrival hr.enter arrival min,exit hr,exit min,then it supposed to print type of the car,enter time and exit time in military style and then the charges... i dont know what am i doing wrong that its not doing that any advices …

Software Development java
Member Avatar for Ezzaral
0
114
Member Avatar for maggz

[code] #pragma once #include <iostream> /* * Author: Makhdoom Shah 4872 * Date of creation:22/2-2008 * Date of revision: * Revesion #: 1 */ using namespace std; //typedef double itemType; // need for another type, change it here template<class T> class dynarray { public: dynarray( int s = 0 ); …

Software Development algorithm c c# c++ legal visual-studio
Member Avatar for Narue
0
290
Member Avatar for kishan4every1

Hi, i found this Function to convert any integer into its BINARY VALUE... I could not make it through.. Can someone Help me out.... I need a good explanation on how it works... Here is the code. [code=c] char *binString(int value) { static char bin[17]; int index; for(index=0;index<16;index++) { if(value …

Software Development c
Member Avatar for jephthah
0
105
Member Avatar for Parsu7

Is it necessary to declare an inner class private?If it is then plz specify the reason why is it necessary to declare an inner class private?

Software Development java
Member Avatar for jwenting
0
139
Member Avatar for lAmoebal

Hi guys, I'm writing a simple script that uses snmpget statements to check the errors received by ports on a router and have the results going to a file. I've never worked with Perl before but one of my coworkers had a really basic script that I've been trying to …

Software Development perl
Member Avatar for lAmoebal
0
176
Member Avatar for devilgod

ive created a program using the actionperformedmethod...even though the panel and all other things r coming in the output nothing is happening when i perform an action.... here is the program...... [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.Color.*; public class goku extends JFrame implements ActionListener { int clicked=0; …

Software Development java java-swing
Member Avatar for new_2_java
0
156
Member Avatar for kittycat07us

I have a random question, but how would you link a string into a char? To explain the program, it reads from a standard input character by character. Then it rewrites the it to make the output characters from uppercase to all lowercase.. if you would like to see what …

Software Development c++
Member Avatar for kittycat07us
0
109
Member Avatar for Gerritt

Another problem has occoured. How can I get the highlighted function to run? Whenever I run the program, the function is totally skipped. [code] void add() { int vala, valb, valc, bog=5, count; char alakazam; double log[0], vald, valf; clearer(); do { for(count = 0; count < 5; count++) { …

Software Development c
Member Avatar for jephthah
0
118
Member Avatar for atrusmre

I am currently trying to write a Telnet Client program in Visual C++. I was wondering if anyone knows where I can find a tutorial on how to write the protocals for telnet, or how to connect to a telnet server. I have written a small "chat" program (the one …

Software Development c++ client-server
Member Avatar for Devoney
0
2K
Member Avatar for pavya133

there is problem in java program. I want to send object of a particular class as a parameter to a method in other class dynamically. e.g Suppose there is method named 'insert' in a class 'Daobase' and parameter to this method is object of any class that is i want …

Software Development java
Member Avatar for masijade
0
158
Member Avatar for dilip.mathews

Hi all, Can anybody help me with a an algorithm to find the maximum subset sum in an array. It would be better if the solution is of O(n). [example: {5,-2,10,-4} the maximum is 5 + (-2) + 10 => 13].

Software Development algorithm c
Member Avatar for omko
0
1K
Member Avatar for Lensva

me and my amateur code again :$ This time if works somewhat fine, but gives a error table. any ideas mates? [code] #include <iostream> using namespace std; long fib_sk(int); int fib_mas(int); //=========================== int main() { int iSk; cout<< "element count- "; cin>> iSk; if (iSk<0) { cout<< "need positive value …

Software Development c++
Member Avatar for Lensva
0
93
Member Avatar for amitahlawat20

[code=cplusplus] #include<iostream.h> #include<string.h> int main() { int x; cout<<endl<<"enter x:"; cin>>x; int temp=x; int count=0; while(temp!=0) { count++; temp=temp/10; } char *p=new char[count+1]; for(int i=0;i<count;i++) { *(p+i)='\0'; } for(i=count-1;i>=0&&x!=0;i--) { *(p+i)=x%10; x=x/10; } *(p+count)='\0'; cout<<endl<<"converted string : "; for(i=0;i<count;i++) cout<<(int)*(p+i); // int type cast used , if not used then …

Software Development c++
Member Avatar for Narue
0
127
Member Avatar for gast74830

Is it possible to find out the number of signals which are in the signal mask. If so, how?

Software Development c++
Member Avatar for Narue
0
68
Member Avatar for asadullah

How to make your program to be fast. 1. Use Pre Increment or Pre Decrement in place of Post Increment or Post Decrement operator. i.e. use ++i or --i in place of i++ or i--. Because ++i operator take increment and save it i.e. One CPU Instruction is required for …

Software Development c++
Member Avatar for Narue
0
354
Member Avatar for yellowflashboy

Hey, guys. i desperately need some help designing a university project. the project is called Grocery shop. it has a product class which will hold all the products description and set thresholds finally it will need a stock management class which will allow the user to add, remove and edit …

Software Development java
Member Avatar for yellowflashboy
0
110
Member Avatar for Jennifer84

If my startform is Form1 and I will open Form2 from Form1 and press a button with this code on Form2. Form2 will close. Is it possible to write something here so the whole application will close wich meens both Form2 and Form1. [code] this->Close(); [/code]

Software Development c++
Member Avatar for Jennifer84
0
100
Member Avatar for t_yalthis

hi everybody, I need arrays which has boolean type of data in them.. is it possible to do it in vb6? I searched the web but couldn't find any related information.. thanx..

Software Development visual-basic
Member Avatar for Mbt925
0
122
Member Avatar for begyu

Hi, I would like to define a function, but I get errors... What's wrong with this? [CODE] #include <cstdlib> #include <fstream> #include <iostream> #include <ctime> #include <cmath> #define N 5 using namespace std; const float M_2PIf = 6.283185307179586476925286766559f; const float M_PIf = 3.141592653589793238462643383279f; const float epsilon = M_PIf/(1e-06f); /* -----------------RANDOM_GENERATOR------------------------------- …

Software Development c++
Member Avatar for Narue
0
149
Member Avatar for dinilkarun

I am new to VB.Is there anything similar to checkedstbox(VB.net) in VB 6.0?. If not, can i make one using listbox,checkboxes and scroll bars?

Software Development vb.net visual-basic
Member Avatar for Mbt925
0
77
Member Avatar for ravipawar1

i am new to the c++ prog. the main problem with me is that i have no teacher to teach me c++ prog. so i am doing it by myself. so i want to ask u that which kind of book should i use to understand the c++ and do …

Software Development c++
Member Avatar for codeaa
0
81
Member Avatar for cyberdyne

hi frnds, I need a batch program that can reboot every time a system starts.It should work in NT systems too.

Software Development shell-scripting
Member Avatar for chris5126
0
128
Member Avatar for rahul.b123

I have undergone a basic course in C Programming and I wish to enrich my programming skills by learning how to code for graphics in C and my main interest is to learn to write virus and so on. Could you please guide me what books should I need to …

Software Development api c c# c++
Member Avatar for DangerDev
0
94
Member Avatar for dougy83

Hi, I have a problem compiling a project in Dev-C++ (MingW32). For some reason I can't assign an iterator from map::erase(iterator). My sources (MSDN) for map::erase(iterator) says that erase(iterator) returns an iterator... Does anyone know what I'm doing wrong? [code] bool TCPIPRedirectManager::poll(){ bool haveMsg = false; for(map<ConnHandle, TCPIPRedirect*>::iterator it = …

Software Development c++
Member Avatar for vijayan121
0
223
Member Avatar for Lensva

new guy in this sphere, dont bash too much :S [code] #include <iostream> using namespace std; int main() { int x,y; cin>> x; cin>> y; if (x==0) cout<< "x = 0"; else cout<< "x isnt 0"; return 0; } [/code] this piece works ok but if i add 1 more …

Software Development c++
Member Avatar for Lensva
0
107
Member Avatar for the juice

hey i am doing an assignment and it is to create a multithreaded bubble sort but i am having problems initialising and assigning jobs to the threads. i have included the classes and the errors i am getting and was wondering if someone could tell me what is going wrong. …

Software Development java
Member Avatar for the juice
0
2K
Member Avatar for roswell1329

I've recently been elevated in my team to a lead position, and one thing I have identified as a problem is that we don't have any existing curriculum or program for teaching programming to those members on our team without programming experience. There seems to be a barrier to people's …

Software Development perl
Member Avatar for trudge
0
78
Member Avatar for SubProf

Hello, I have a combobox on my form that I need to be populated with data from a table in MS Access. I am new to coding in Visual c# and would appreciate any help I can get with this. Thanks in advance, SubProf

Software Development display visual-basic
Member Avatar for SubProf
0
89
Member Avatar for technogeek_42

can any body here knows how to create a program that will count the vowels and constants for example: the quick vowels:3 constants:5 can any one help me or can any one have idea on doing that using #include <string.h>

Software Development c++
Member Avatar for technogeek_42
0
66
Member Avatar for fluidtype

Hello there! I was asked to replace the bitmaps in an existing software. The software was compiled using Visual C++ 8. Do you guys have any idea how to go about this? Cheers!

Software Development c++
Member Avatar for fluidtype
0
123
Member Avatar for heshangho

hey guys I have a question on this guessing game. I want to make this game to repeat. when the guess is correct, i wanted the user to input 'y' or 'n' and if yes it should repeat. How can i do that? Do I have to put the whole …

Software Development c
Member Avatar for heshangho
0
142
Member Avatar for cseale03

Hey everyone! I have been working on this project for about a week now. It reads in a text file and outputs how many times the top five characters are used, what the percentages are for the top five compared to the rest of the ASCII characters, and shows the …

Software Development c++ visual-studio
Member Avatar for cseale03
0
107
Member Avatar for hawada99

Good Morning to all of you. I just joined today. I am a freasher in programming, live in India. I made a project and want to create a setup of project. Can anyone tell me the solution. Thanks in advance. Raj

Software Development visual-basic
Member Avatar for Jx_Man
0
80
Member Avatar for sk8ndestroy14

Okay, so here's the challenge. I want a continously running program that will automatically close all running programs, log off the user account and shut down the computer when the batterly life of my laptop reaches a certain amount. First of all, can that be done with visual basic and …

Software Development laptop visual-basic
Member Avatar for Jx_Man
0
168
Member Avatar for teked

Hi i have just begun to develop a calculator in C++.net. I have created 10 buttons on the form 0 to 9 and the usual operands + - * / = etc. I want the code to work out the preceidence i.e. * before / etc but cant seem to …

Software Development c++
Member Avatar for priyad2
0
166
Member Avatar for technogeek_42

can anyone here who knows where can i find the posted one problem that is to convert the month-day-year birthday to a simple day like sunday?? and who knows the answer to this problem using getdate setdate??

Software Development c++
Member Avatar for technogeek_42
0
442
Member Avatar for Rand al'Thor

I want to make some functions that I expect I will use again and again, but I don't want to copy and paste them everytime I make a program that will use them. My thought was to make a .h file with a namespace. Would that work? Or would I …

Software Development c++
Member Avatar for Rand al'Thor
0
168
Member Avatar for sbv

Hi How to get sum and avg in crystal report? please refer [URL="http://www.daniweb.com/forums/thread112804.html"]

Software Development vb.net
Member Avatar for sbv
0
61
Member Avatar for ccclay

I want to put the date and time into a file. Below is what I have tried. import time import datetime >>> test_time = open('test.time', 'w') >>> test_time.write('today is') >>> test_time.close() >>> test_time = open('test.time', 'a') >>> today = datetime.date.today() >>> print today 2008-03-09 >>> test_time.write(today) Traceback (most recent call …

Software Development python
Member Avatar for ccclay
0
14K
Member Avatar for nurulshidanoni

How to count how many (3, 10 appears in data? I have done a little bit programming but abnormal program. (3 , 10) (3 , 31) (3 , 51) (3 , 71) (3 , 78) (3 , 97) (3 , 105) (3 , 113) (3 , 135) (3 , 138) …

Software Development c++
Member Avatar for nurulshidanoni
0
87
Member Avatar for mathisfunwith

this is a program that the user is suppose to select a computation from a menu, the menu calls the function. and then the output is displayed in a nice java window. I think most of the coding is correct but i am having problems with the switch statement at …

Software Development java java-swing
Member Avatar for darkagn
0
183
Member Avatar for Jennifer84

How is it possible in C++ .NET to open a file on the computer. Lets say that I am trying to open this file. Is this possible to do. In this case, Wordpad will open. Thanks [code] "C:\\WordPadFile.rtf" [/code]

Software Development c++
Member Avatar for Jennifer84
0
92
Member Avatar for bashir matovu

invalid sql statement,expected "delete","insert","procedure","select" or "update" it a run time error which i recieve when an saving a record to the database. and this is the code. [B]rsord.Open "order", cnnord, adOpenKeyset, adLockPessimistic[/B] cnnord.Execute "INSERT INTO order(OrderId,DateOrdered,CustomerId,QuatityOrdered,ProductTitle,PurchasedUnitPrice);" _ & "VALUES('" & txtoid.Text & "','" & txtod.Text & "','" & txtcid.Text & …

Software Development visual-basic
Member Avatar for cometburn
0
89
Member Avatar for adnanius

Hi again; Today I've got some silly questions about the translation of an algorithm to c++ :S (hey matrimkar, I found something that should work!:idea: ) well, my questions are in comments in this code: You can just read the first 2 paragraphs of the code, the 3rd one is …

Software Development algorithm c++
Member Avatar for adnanius
0
112
Member Avatar for hawisme000

im making an installation form in VB -i already made the installer/setup for my project using another installer maker im having a prob on the syntax, i just googled this and try it but have a error Dim TaskID As Long TaskID = Shell(App.Path \ CAIsetup.exe, vbNormalFocus) my only guess …

Software Development visual-basic
Member Avatar for cometburn
0
148

The End.