132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for np2100

I am still a beginner, I recently started learning C++. However I am writing a program that converts currencies. For example Dollars to Euros. However when I have them pick the number of the currency they want to convert the number 2 doesnt work. Here it is: [CODE]#include <iostream> using …

Software Development c++
Member Avatar for np2100
0
309
Member Avatar for Tetch

With my program, I have been trying to simulate the game of Roulette (at a casino) with a GUI, but I have a problem that I can't seem to figure out. For some reason, any kind of accumulator for "current funds" I place in the program doesn't seem to work …

Software Development gui python tkinter
Member Avatar for Tetch
0
2K
Member Avatar for Dio1080

My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that? Here is my code: javax.swing.JOptionPane.showMessageDialog(null, "\n-------"); for (int i = 0; i < 3; i++) { System.out.print("| "); for (int j = 0; j …

Software Development java java-swing
Member Avatar for Ezzaral
0
131
Member Avatar for finalheavenx

Hello I'm a newbie c++ student, I would like to ask how can I get this kind of program output by using c++: [B]10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 …

Software Development c++
Member Avatar for Salem
0
352
Member Avatar for hemanth.balaji

I am a student and have to submit a Mail Program. I have been asked to do the program using [B]GridBagLayout[/B]. The program is working fine but for the Layout. I just am not able to manage the layout problems I am facing in this program. Could I get some …

Software Development java java-swing
Member Avatar for Ezzaral
0
139
Member Avatar for ratul

Hi All I am trying to write a perl script which will check some particular process is running in a machine or not. If the processes are running properly then its ok if the processes are not running then the script will start those processes and send a mail to …

Software Development perl
Member Avatar for BobUillean
0
125
Member Avatar for rlwright12

I am trying to take the following code so that my bottom function first pulls out the first three scores of a text file and averages them, then pulls the last three scores out and averages them. I am using a known good text file that has 7 entries with …

Software Development c++
Member Avatar for WaltP
0
97
Member Avatar for wijitha

hi ..... can any one help me how to change logger level of ACE framework loggers. wijitha

Software Development c++
Member Avatar for Ancient Dragon
0
175
Member Avatar for pickachu

Im having arrayoutofbounds error on my code. [code] import java.io.*; class s{ public static void main(String args[]) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String[] a = {"X","C","O","M","P","U","T","E","R","S"}; System.out.println("Enter Price: "); String b = in.readLine(); for(int i=0;i<b.length();i++){ System.out.print(a[b.charAt(i)]); } } } [/code] what am i doing wrong here? The output should …

Software Development java
Member Avatar for Black Box
0
112
Member Avatar for cs378

Hi I am programming in Unix. My task is really simple, but I don't know and where to debug this problem. My C program opens up the "ls" manual and makes an exact copy to a new file. However my program stops/freezes in the middle of read. (It works fine …

Software Development c unix
Member Avatar for Ancient Dragon
0
123
Member Avatar for cga2

Hey guys, I wanted to know how can I code the game ball lines in Yahoo. It is a game very easy to understand and similar to tic tac toe but I just cant figure out anything as to how to start. Please help!! u can mail me on [email]chandanagrawal17@hotmail.com[/email] …

Software Development java
Member Avatar for Black Box
0
139
Member Avatar for poonams

hi all, I am to pass two values from form f1 to form f2.i wrote a code on keypress event .It works good.But on loading of f2 i want to close f1.I wrote this on f1 Dim f As New frmattendance f.Owner = Me f.Show() f.txttdays.Text = days f.l2.Text = …

Software Development vb.net
Member Avatar for poonams
0
445
Member Avatar for jonnim

I am trying to collect data from a log file. The data will collected into records based on policy number. I have created an object describing the data below: class fwpolicy: def __init__(self, policy_id, fr_zone, to_zone, src,dest,serv): self.policy_id = policy_id self.fr_zone = fr_zone self.to_zone = to_zone self.src = src self.dest …

Software Development python
Member Avatar for vegaseat
0
101
Member Avatar for pdhbaseball23

I have to use arrays to calculate some statistics on a set of data. The example of the file looks like this: 6 5 1 3 2 4 3 4 2 4 2 1 2 3 5 6 8 5 6 9 4 3 1 5 7 3 7 2 …

Software Development c++ file-stream
Member Avatar for pdhbaseball23
0
105
Member Avatar for mrityunjay22

step 1 myeclipse->prefernces->myeclipse->application servers->choosing tmcat5.5 for application server Step 2 using jdk 1.5 clicking ok then clicking on icon to start and stop tomcat but it says that no default server present what might be missing plz tell

Software Development java
Member Avatar for mrityunjay22
0
167
Member Avatar for twooften

I have been trying to figure this one out for a while, so please don't laugh. I know it is a little messed up. I didn't include the whole code, if necessary I will post more. The line indicated is giving me a "cannot convert from 'HGLOBAL' to 'int *' …

Software Development c++
Member Avatar for ithelp
0
236
Member Avatar for paradox814

I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the right direction. Thanks!

Software Development java
Member Avatar for jwenting
0
175
Member Avatar for jasssvj

Hi! I have to make a program, wich lists all files in current dir, and then save all file names into an array. My program doesn't work ! Can you tell me why? Thanks a lot:)[code=c] #include <dirent.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <dirent.h> int main(void) { FILE …

Software Development c
Member Avatar for WaltP
0
246
Member Avatar for Dio1080

can anybody see anything worng? I'm returning these to the main sO=ScoreO(O); sX=ScoreX(X); These are my two methods: [java] //method to tally the score for x public static int ScoreX(boolean X){ int scoreX=0; if(X==true){ scoreX+=1; } return scoreX; } //method to tally the score for x public static int ScoreO(boolean …

Software Development java
Member Avatar for Dio1080
0
91
Member Avatar for balla4eva33

Maybe my other thread was too wordy for everyone, cuz I usually receive help right away, and I see that it was viewed 20+ times and yet no responses...so basically I need help with my homework...We were given a main.cpp file, and PART of a header file. He also gave …

Software Development c++
Member Avatar for balla4eva33
0
97
Member Avatar for FireSBurnsmuP

Great, more iterator trouble. First we have an iterator of any value. I want to make a second iterator that starts one higher than the first one. Look-see: [code] for( iterator_type one ; /*...*/) { for( iterator_type two = one + 1 ; /*...*/) { /*...*/ } }[/code] That's the …

Software Development c++
Member Avatar for vijayan121
0
141
Member Avatar for Destini

edit: sorry strcopy not strcat Hi I'm new to MIPS and just need some basic clarification on what is actually going on here. I'm trying to make a copy of string1 into string2 by reading through the string copying each bit seperately, and stopping at the 0 terminator: [CODE] .data …

Software Development assembly
Member Avatar for Destini
0
1K
Member Avatar for FireSBurnsmuP

Alright, here's the code: [code] for ( map<string,int>::iterator word = mostUsed.begin() ; word != mostUsed.end() ; word++ ) [/code] and the error by g++ - (using make) [code] error: conversion from 'std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' requested[/code] Okay... …

Software Development c++
Member Avatar for FireSBurnsmuP
0
447
Member Avatar for guitarrick

I'm missing something really basic on this one I'm sure. We have to write a program using a class Odometer, that will track fuel and mileage of a car. The member functions are given: one to set fuel efficiency, one to accept total miles driven and add to the odometer …

Software Development c++
Member Avatar for Duoas
0
98
Member Avatar for adida948

Hello. I am having a very hard time trying to encode a file and then decode it again so i can end up with the original file. I want to transform the content in the original file into base 85, and perhaps 100 charaters or more so that it works …

Software Development algorithm assembly open-source
Member Avatar for Duoas
0
472
Member Avatar for guitarrick

Of all things, I can't seem to get my do while loop to work. I have a running program, but get a[I] syntax error : identifier 'choice'[/I] Can't see it, any help greatly appreciated RG [CODE]#include <iostream> using namespace std; class Odometer { public: Odometer(); void reset(); void compute_fuel(); void …

Software Development c++ ios
Member Avatar for guitarrick
0
128
Member Avatar for nmnative

This is what I have written so far for my homework. No, I am not asking for someone to do my homework just to help me with what I have so far. This is a Restaurant menu created for a web site, I am very close to getting it finished, …

Software Development microsoft visual-studio
Member Avatar for nmnative
0
126
Member Avatar for speterson

For a homework assignment, I have to create a random salary generator which is pretty easy. We have to create a random number of employees, 3-15 only and then the number of years of that salary with a limit of 3-15. This is easy so far. After this, we have …

Software Development java
Member Avatar for Ezzaral
0
356
Member Avatar for eleonora

Hey, I try of saving my board to a text file and then trying to load my board from the text file but actually does not works. If anyone knows how this can be solve let me know ! Thanks

Software Development python
Member Avatar for G-Do
0
331
Member Avatar for johny112

Hi all, I have written a programme, but when it prints the results , it doesnt print £ sign [CODE]cout <<"Salary is £ "<< salary_without_overtime<<endl;[/CODE] Instead it prints u="U" with a funny bar on top. Now im very new to c++ but i do know basics, can someone please tell …

Software Development c++
Member Avatar for iamthwee
0
88
Member Avatar for clockscan

Hello, I am hoping to get some code for the following problem I need to verify that a user input the time in the following format: cout<<"please enter the start time(hh:mm:ss): "; cin>>stime; //Verify user input time correctly cout<<"please enter the end time(hh:mm:ss): "; cin>>etime; //Verify user input time correctly …

Software Development assembly c++
Member Avatar for Narue
0
89
Member Avatar for adypan06

can somebody please help me out in writing matrix 10*10 matrix program. thanks in advance

Software Development c++
Member Avatar for adypan06
0
50
Member Avatar for sarahger9

I am trying to generate a random vector of integers and sort them using merge sort. I am having trouble with the code. It is long, but I would appreciate if someone could take a look at it and see if the can help me, I've been working on it …

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for Tight_Coder_Ex

How would I declare a pointer to MINMAXINFO that is passed to WPARAM In WM_GETMINMAXINFO wParam is a pointer to a place on the stack that holds MINMAXINFO. I've tried[code]MINMAXINFO *Info; Info = MINMAXINFO *wParam;[/code]and several other variations to no avail. Thanks

Software Development c++
Member Avatar for Duoas
0
123
Member Avatar for Ccrobinson001

I need some real serious help. I have been trying to get this program to work for the last past week and everytime I get one part to work and try to complet the next section the previous section craps out. I have to write a program that reads from …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
229
Member Avatar for johnnyjohn20

Hi, Im trying to filter a user number entered by the user so that it is between 3 and 31 and odd. I also want the prompt to enter the user number to loop if the user number entered does not meet the requirements. This is what i have: [code] …

Software Development c++
Member Avatar for johnnyjohn20
0
1K
Member Avatar for mauro21pl

Hi guys I started to learn java and have a little problem\. When I try to compile my little program it says : assgn2.java:40: variable overnight might not have been initialized System.out.println(overnight); [CODE]How is that? The code: import java.io.*; public class assgn2 { public static void main(String[] args) throws IOException …

Software Development java
Member Avatar for Black Box
0
139
Member Avatar for Nidaa87

I need help on how to integrate elements linked to the rank list.i already have a list of seven figures to be that the elements that must be included in the right of such a position that the salary arrangement upward And the work of the Union and the intersection …

Software Development c++ linked-list
Member Avatar for Salem
0
99
Member Avatar for iCare

I'm using Borland C++ and i need to make program where you enter a string in which the words are seprated by space. After input i need to sort these words into alphabetical order, but something is wrong. Cause when i enter like " x b a" it prints out …

Software Development c++
Member Avatar for Narue
0
173
Member Avatar for staneja

I am executing a project that have 100 jar file attached to it I am able to execute it in Eclipse but i want to run it from batch file but the problem is that i am not able to set class path , whereas in eclipse we can direclty …

Software Development java
Member Avatar for ~s.o.s~
0
98
Member Avatar for Dio1080

I need help making a counter uusing a two dimmensional array. I'm doing a tic tac toe program and need about done, just need the counter and have no clue how to do it.

Software Development java
Member Avatar for Ezzaral
0
82
Member Avatar for degamer106

So we're supposed to modify this class, which implements Comparable, so that it accepts any type of object. The Comparable interface contains the method signature for compareTo, which I need to implement. What I'm uncertain of is how to implement this method. I know that compareTo is supposed to return …

Software Development dataset java
Member Avatar for degamer106
0
86
Member Avatar for Danii

HI problem: Write the definition of a class Clock . The class has three instance variables: One of type int called hours , another of type boolean called isTicking , and the last one of type Integer called diff . You should also write a constructor that takes three parameters …

Software Development java
Member Avatar for ~s.o.s~
0
192
Member Avatar for mathijs

i have created an oxo game. wich is a game where you try to get 3 in a row in a 9-square field. i got it running but i have one question. for the computer's moves i predicted what the user would do (2in a row) and then made the …

Software Development python
Member Avatar for mathijs
0
108
Member Avatar for ashblynn02

I am trying to create a phone book program in Visual Basic. I have so many phone numbers, I thought this would be a neat way to handle the overflow lol. I want it to read the information from a text file with the following data: First name, last name, …

Software Development vb.net visual-basic
Member Avatar for ashblynn02
0
305
Member Avatar for MadeInHungary

I like to receive data on SOCKET. I call the recv() method with required params: char* buff = new char[len]; memset(buff, 0, len); if(recv(sck, buff, len, MSG_PEEK) == SOCKET_ERROR) { cerr << "String Receive Error - code: " << WSAGetLastError() << endl; } The recv() method copies data to the …

Software Development c++
Member Avatar for MadeInHungary
0
150
Member Avatar for matticus1181

I'm taking a class in sparc assembly, and I'm having a hard time with this concept. We're supposed to add two numbers together that can have as many as 100 digits. Since this is too many to fit into one register, I have to save them in memory and then …

Software Development assembly
Member Avatar for Duoas
0
170
Member Avatar for swuwarrior

Im sure i have a syntax issue or just not doing something right as i am new to c++.. i am generating an error code in my program ... here is my code [code] #include <cstdlib> #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <string> #include <string.h> using namespace …

Software Development c++
Member Avatar for ShawnCplus
0
123
Member Avatar for wijitha

hi... I'm new to the cppunit. I'm using cppunit framework for my c++ program. I want to build my program using a makefile. can anyone help me to compile my program using a make file. wijitha

Software Development c++
Member Avatar for Duoas
0
451
Member Avatar for johnroach1985

Hi. I am trying to figure out this code I found on the net that allows users to chat with each other. It gives a thread error that I just can't fix. Please help me. This is the Form1.cs file [CODE]using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; …

Software Development assembly dns
Member Avatar for johnroach1985
0
209

The End.