43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Frederick2

Been meaning to ask that question for a long time. With Visual Studio 6 I seem to recall I had to include iostream.h to use the CString class. Do I have that right? I think I also had to specify in a configuration dialog that I wanted to either link …

Software Development c++ gui visual-studio
Member Avatar for Frederick2
0
302
Member Avatar for EntangledDesi

How do I go about coding the 'Calculate button' so that when a user is prompted to input a number into a Input box it will will calculate the square and square root of it? This is what I have so far. I'm pretty sure about the first part, but …

Software Development visual-basic
Member Avatar for EntangledDesi
0
86
Member Avatar for railmaster7

I'm having trouble figuring out how I would replace a value in my vector once it is found by the if statement. [code] void ExprTree::setVariable(const string& s, double d) { vector<Variable>::iterator pos; for(pos = varList.begin(); pos!= varList.end(); ++pos) { if(pos->data = s) ; //here is where i'm stuck else if(pos …

Software Development c++
Member Avatar for chunalt787
0
144
Member Avatar for whiteyoh

Hi all, im very new to java i would like to know how to add the following objects into an array [code] CD cd1 = new CD("Kaiser "," up the khazi ", 9.99); CD cd2 = new CD("Oasis "," morning glory ",3.99); CD cd3 = new CD("Bob Dylan "," Alreet …

Software Development java
Member Avatar for Ezzaral
1
493
Member Avatar for ShailaMohite

Hi I am create one application in which add some selected images into flowlayout panel.how to select particular image from flowlayout panel and remove this selected images from flowlayout panel Regards, Shailaja

Software Development
Member Avatar for Geekitygeek
0
6K
Member Avatar for Oritm

I created a map<string, void*>. The void* used to store an Object from a class called Window. I can cout a string with the following: [CODE] it = windowMap.find(title); if( it != windowMap.end() ) { cout << "Value is: " << it->first << '\n'; } else { cout << "Key …

Software Development c++
Member Avatar for Oritm
0
67
Member Avatar for Teethous

[TEX]Hey everyone, I am having a problem with converting my character array. The program runs, but in the display box I get little squares instead of a string. The program should display the first char of the fist name, the first five of the second name and a random number …

Software Development java java-swing
Member Avatar for Teethous
0
181
Member Avatar for DoEds

I dont know how to pass a value from the function [ICODE] total();[/ICODE] to [ICODE]main()[/ICODE]...i want get the value of the [ICODE]prod[/ICODE] and assign its value to bill...But this code i have will only redo the function [ICODE]total() [/ICODE]...Anyone can help please?. [ICODE]#include <stdio.h> #include <conio.h> int header(); int choices(int); …

Software Development c
Member Avatar for DoEds
0
138
Member Avatar for procomp65

Hi I receive ascii data from the serial port which consists of only 0 to 9, /005, /004 and spaces between values, but sometimes the harware get spikes from the electric motors and then the recorder add some funny characters. I need to check the string PortData = "" to …

Software Development regex
Member Avatar for Geekitygeek
0
2K
Member Avatar for mrinal.s2008

Hi, While trying a program from "C++ Primer 3rd Edition" by Stannley Lippman, I encountered with following two errors. 1. The book says that the header file fstream also includes the header iostream, so including just fstream will do. But g++ complained about cout, cin and cerr despite having fstream …

Software Development c++
Member Avatar for William Hemsworth
1
321
Member Avatar for farsen

Hi. First of all, I am new to C#. I have made this simple C# remoting example, based on a couple of tutorials I have read. The problem is very simple. The remote object that my server created, has to have a method, that can edit, lets say a textfield, …

Software Development client-server gui
Member Avatar for farsen
-1
176
Member Avatar for Evil Genius

Hi, I had a little personal project I made using Winforms in C#. When i published it, it gave me some installing files and stuff.. Is it possible i can make just an exe file out of it? one exe runs it all. its very basic project no db, or …

Software Development c#
Member Avatar for Evil Genius
0
154
Member Avatar for jaymeaux77

Hi, I am fairly new at the whole programming racket and I am having trouble with an assignment for my computer science class. I know homework help is discouraged, I read that sticky, but I'm curious if I am missing a fairly simple mistake. The assignment is to make a …

Software Development python
Member Avatar for jaymeaux77
0
224
Member Avatar for kn336a

[code=php] #include <iostream> using namespace std; int main() { int num; const int MAX = 8; int output[8]; cout << "Enter a number [0 - 255]: "; cin >> num; cout << num << "converts to"; for (int i = 0; i < MAX; i++) { output[i] = num % …

Software Development c++
Member Avatar for kn336a
1
108
Member Avatar for kahaj

How would I draw a shape in an applet and have the border one color with the fill a different color?

Software Development java
Member Avatar for kahaj
0
84
Member Avatar for PysKo

What im trying to do is when someone checks a certain amount of items say like 6 then they try and select 7 it removes the 7th then a label says "Too many selections" and ive bin searching for like a day now and couldnt find anything and any help …

Software Development vb.net
Member Avatar for TomW
0
151
Member Avatar for TaP1227

This program provides the user with options of what kinds of passwords they want, then they can choose from those menu options, then enter how long they want their password to be. The program is supposed to generate random ASCII values for the password(what it is composed of is based …

Software Development java
Member Avatar for TaP1227
1
134
Member Avatar for nagatron

Hallo to all, I need help on how to put a radio button on the coordinates I want. . .I have this map program and I want to place the radio button on the specified place on the map. I don't know how. . .I have attached an image of …

Software Development gui java
Member Avatar for nagatron
0
198
Member Avatar for jakesee

Hi, I have the following functions [CODE]void LoadData(char* file, float* data1, float* data2) { // read data size and contents from file data1 = new float[dataSize1]; data2 = new float[dataSize2]; // store data data1[0] = 1.0f; data1[1] = 2.0f; // etc ... } void ComputeData() { float *data1 = NULL; …

Software Development c++
Member Avatar for jakesee
0
297
Member Avatar for EvilLinux

I had question about the array in an other post and figure for the most part, but I honestly stuck on what do at the moment with my project because I can get my test scores to show up correctly, so I must be doing something wrong. Can someone take …

Software Development listview
Member Avatar for DdoubleD
-1
968
Member Avatar for programmingnova

Hello, I've been programming with C++ for only several weeks now, but I have come across a practice problem that has given me trouble. The objectives: collect data from a student including: his major (CIS or Math), last name, number of credits completed, GPA, and tuition paid. Then calculate and …

Software Development c++ display
Member Avatar for programmingnova
2
134
Member Avatar for llemes4011

Hi everyone. I know that asking for project ideas is generally frowned upon, but I wish to ask anyways. This isn't for school, it's just because I want to. I want to start writing applications that would be used in a business or workplace environment. I don't have a lot …

Software Development app-store java
Member Avatar for llemes4011
0
245
Member Avatar for lotrsimp12345

Basically the please hit any key to enter doesn't show up in Visual C++.Thanks for help main //CS 310 /*Create a text file and input in certain data into the text file*/ //Program one #include <iostream> #include <fstream> #include "Account.h" using namespace std; int main() { account b; char name1[256]; …

Software Development c++
Member Avatar for lotrsimp12345
0
195
Member Avatar for havoc433

Hi I'm using the Pascal language and I need help with the following problem. You need to find the most common word read in by a user of arbitrary length and then display the amount of times its found in the input. I placed all the words into a linked …

Software Development data-structure linked-list pascal
Member Avatar for FlamingClaw
-1
287
Member Avatar for whiteyoh

Hi All, I have an array of 3 objects stored in cdList. Because I have now added them to an array, the usual method of displaying no longer works: [code]System.out.println(cd1.getArtist() + " " + cd1.getTitle() + " " + cd1.getCost());[/code] My questions are...... how would i amend to output the …

Software Development java
Member Avatar for whiteyoh
0
82
Member Avatar for whiteyoh

Hi, Im fairly new to java and im working my way through a load of exercises and im a little bit stuck on something. I have two classes, one of which holds the main, which creates 3 objects. I would like to know how to how to count the total …

Software Development java
Member Avatar for whiteyoh
0
287
Member Avatar for Kruptein

What am I doing wrong? [code=bash]for filename in /home/darragh/public_html/test/* do sed -i 's/..\/config/.\/config/g' done;[/code] It just gives me: sed: No input files

Software Development shell-scripting
Member Avatar for sknake
-1
125
Member Avatar for C++ Beginner

The Question is: Write a program that asks a user to enter one of the following state abbreviations: NC, SC, GA, FL, or AL. The program should then display the name of the state that cooresponds with the abbreviation entered ( North Carolina, South Carolina, Georgia, Florida, or Alabama). Input …

Software Development c++
Member Avatar for Grn Xtrm
-1
153
Member Avatar for BestJewSinceJC

It took me very little effort to put a JComboBox in a JTable so that when the cells in a certain column are clicked, it lets the user choose from a drop down list of items. However, my program requires that the underlying combo box can change, since the list …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for eeyc

Hii!! i have small console program that do somting and i want to add it to system content menu bar. for example if you are mark (could be at notepad, change file/folder name,explorer, etc) text and click rigth on the mouse you can copy cut or past i want to …

Software Development
Member Avatar for Diamonddrake
-1
128
Member Avatar for CurtisEClark

[CODE]#Program to count number of specific vowels msg = input("Enter a message:") msg_lower = msg.lower() VOWELS = list(aeiou) msg_list = list(msg_lower) x = () for letter in VOWELS: x[letter] = msg_list.count(letter) for letter in x: print(a, x(letter)) print(e, x(letter)) print(i, x(letter)) print(o, x(letter)) print(u, x(letter)) [/CODE] I get an error …

Software Development python
Member Avatar for masterofpuppets
0
85
Member Avatar for vandna

hey m a new user so didnt knw it... nywyas here's the program i made.. /*A PROGRAM TO SEARCH AN ELEMENT IN 1D ARRAY USING BINARY SEARCH USING ITERATION*/ #include<stdio.h> #include<conio.h> void binary(int array[],int n,int ele) { int beg=0; int end=n-1; int mid; mid=(beg+end)/2; while((beg<=end)&&(array[mid]!=ele)) { if(ele>array[mid]) beg=mid+1; else end=mid-1; …

Software Development c programming-construct
Member Avatar for Ancient Dragon
-1
139
Member Avatar for Merovingian

Is there a way to increment a datetimepicker's value by 2 hours? I have it set to time only.

Software Development vb.net
Member Avatar for TomW
-1
74
Member Avatar for Metsyse

Mkay so im not sure if this is where to post this thread...but im sure anyone here can help me out here.... I work in a ware house full of equiptment of different types, all of which have a different S/N barcode. every morning i scan multiple pieces into an …

Software Development c++
Member Avatar for Metsyse
0
101
Member Avatar for valter

I am having a bit of trouble with a property. I am developing a class "Photo" which has properties etc for a single photo using System.Drawing; public Image Imge { get { try { return _Imge; } catch { Bitmap bm = new Bitmap(100, 100); Graphics g = Graphics.FromImage(bm); g.Clear(Color.WhiteSmoke); …

Software Development c#
Member Avatar for sknake
0
489
Member Avatar for adcodingmaster

if one thread stucks in "gets" command then it does not allow any other thread to printf any thiing. i have also tried scanf but the same result. what should i do. i want other threads to print on command line but they did not if one of the threads …

Software Development c
Member Avatar for Ancient Dragon
-1
147
Member Avatar for geg13

i would like help with the template i am writing for some reason i can't get it to work. I would appreciate help. [CODE]#include <iostream> using namespace std; #include <iomanip> int() { cout << "This is a template.\n"; system(pause) }[/CODE]

Software Development c++
Member Avatar for geg13
0
91
Member Avatar for nated

Ok im passing in a string and i cant get it to convert to a char array. Ive tried this so far. [CODE]int MyString::find(const std::string& str) { char* newString = str; return 1; }[/CODE] Im pretty lost here.

Software Development c++
Member Avatar for nated
-1
131
Member Avatar for kahaj

I just finished this project, thought I had it done, but on line 1, it's telling me, "incorrect Package". What am I missing here? [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class JavaNotepad extends JFrame implements ActionListener, KeyListener { boolean txtChanged = false; String fname = ""; …

Software Development java java-swing window-manager
Member Avatar for llemes4011
0
204
Member Avatar for nated

Ok im trying to compile and keep getting this error: 38 ISO C++ forbids declaration of `string' with no type. Not sure what im doing wrong. Here is my code: my header file: [CODE]#ifndef PLAYER_H #define PLAYER_H #include <iostream> using namespace std; class MyString { public: int find(const string& str); …

Software Development c++
Member Avatar for nated
1
50
Member Avatar for DEATHMASTER

I'm just wondering how I would fix this [code]app = first[0:8] and second[0:8][/code] That doesn't work but if I remove "and..." it does but I need both.

Software Development python
Member Avatar for vegaseat
-1
219
Member Avatar for SuperMetroid

I'm compiling an extremely large list of usernames, and I want to know which is a faster method of checking what is already in the list. If anyone can give some insight as to how Python deals with each that would be much appreciated!

Software Development python
Member Avatar for vegaseat
-1
4K
Member Avatar for RobBrown

I am having some problems with writing a 2d array, then displaying it, and then showing the sum of all of the elements. A major part of this problem is that i nave to write three seperate functions to achieve this. it is supposed to do this: [QUOTE]For this exercise …

Software Development c
Member Avatar for anandi ilu
-1
750
Member Avatar for lewashby

In the program be below, I'M having trouble with these few lines, remember, I'M new. What's going on here? I'M just a little confused because there is (word) wraped in len(). [CODE]position = random.randrange(len(word))[/CODE] And what's going on with these two lines? Thanks. [CODE] jumble += word[position] word = word[:position] …

Software Development python
Member Avatar for snippsat
-1
169
Member Avatar for dzhugashvili

I currently am using the optimized scaler 32-bit md4 and md5 implementations from here: [URL="http://freerainbowtables.com/phpBB3/viewtopic.php?p=8454#p8454"]http://freerainbowtables.com/phpBB3/viewtopic.php?p=8454#p8454[/URL]. I am get ~8.1million hashes/second for md4, ~6.6million for md5. I am looking for a sse2-accelerated implementation for core 2, primarily md5 - which is easy to implement and at the very least twice as …

Software Development c++
Member Avatar for dzhugashvili
-1
147
Member Avatar for Peppercat101

Hi, Im new to c++ and Im struggling with something. I have a load of classes that all connect to each other. I globally overloaded the << operator for each class. So in my main I do the following: [CODE] FixedSizeMatrix y(5,5); cout<<y; cout<<y; [/CODE] The first cout works fine …

Software Development c c# c++
Member Avatar for mrnutty
0
128
Member Avatar for Samyx

[code]class Complex { double real, img; void setValue(double i, double x){ real=i; img=x; } public double getRealPart(){ double a=real; return a; } public double getImagPart(){ double b=img; return b; } public double getMagnitude(){ double magn=Math.sqrt(real*real+img*img); return magn; } public Complex add(Complex c){ return new Complex(real+c.real, img+c.img); } public Complex multiply(Complex …

Software Development java
Member Avatar for Samyx
0
110
Member Avatar for yorro

My App updates two tables at once(username from accounts and orders), but if second tables does not contain the same record(no orders) then it only updates first table(accounts) This code works, but I am trying to merge them into a single string [CODE=vb] ' Multi: True = Update Both Tables …

Software Development vb.net
Member Avatar for yorro
-1
108
Member Avatar for whiteyoh

Hi all, Im fairly new to java and any assistance would be appreciated. The following should output string values, but if i use text within the creation of the new CD object i get an error, unless i change the content to numbers. I know the driver class is fine, …

Software Development java
Member Avatar for whiteyoh
0
111
Member Avatar for babbu

this is my code [CODE] If Me.txtOldPassword.Text = pwd Then Dim oledbcom1 As New OleDb.OleDbCommand oledbcom1.CommandText = "Update login Set password = ?" oledbcom1.Connection = oledbcon oledbcom1.Parameters.Add("?", OleDb.OleDbType.VarChar) oledbcom1.Parameters(0).Value = Me.txtNewPassword.Text.Trim oledbcom1.ExecuteNonQuery() oledbcon.Close() end if [/CODE]

Software Development vb.net
Member Avatar for TomW
-2
182

The End.