132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mamaChaos

Hello, everyone, This program is supposed to read roman numerals from a file and convert them to ints using functions. My functions work fine as standalone programs, but they aren't giving me the results I'm expecting. The weird results point to problem with my do/while loop. The goal is to …

Software Development c++
Member Avatar for mamaChaos
0
98
Member Avatar for mathmagic

how to generate random numbers between a and b? is there any in-built function?

Software Development c++
Member Avatar for BlackJavaBean
0
188
Member Avatar for shamin

k hi every1, im kinda new to C++, anyways..this is an assignment for my college. im supposed create a program that displays the username in a "creative" way. so first thing is do i use the get and ignore functions to get the initial if the user enters the whole …

Software Development c c# c++
Member Avatar for vijayan121
0
109
Member Avatar for hellokitty88

I am trying to do a sequential string, but when I run my program I recieve three errors:the first one talks about 'searchList' : cannot convert parameter 3 from 'const char [4]' to 'std::string [] ( I tried putting code tags by inserting my code between the [code] [/code], but …

Software Development c++
Member Avatar for Ancient Dragon
0
116
Member Avatar for vagab0nd

i have had a busy day and its late in the uk? I have with a little help earlier on here combined lots of snippets orf old code and tutorials into a app that works and is all new code. problem I have run into is that I want to …

Software Development python
Member Avatar for vagab0nd
0
120
Member Avatar for dkwantee

Hello! i have the following data in a file student_id student_name maths_score english_score physics_score can i use a nested structure to read the file? [CODE] struct student { int id; char name[40]; }; struct score { int maths; int english; int physics; }; [/CODE] if yes, how will i read …

Software Development c++ data-structure
Member Avatar for dkwantee
0
495
Member Avatar for VernonDozier

I'm pretty sure the answer is a definite no if it is a pointer to a primitive type, but I have created classes called "network", "path", and "node" and I want them all to be able to refer to each other. These are not primitive types, so I hope I …

Software Development java
Member Avatar for VernonDozier
0
461
Member Avatar for t_yalthis

I have looked for some threads in this forum but they are not giving any clear solutions to my problem. I am trying to do a simple authentication thrpugh an LDAP server in my university. however the code returns an exception saying that "the server is not operational". public bool …

Software Development
Member Avatar for Varsh10
0
201
Member Avatar for Crazycfk

i am doing a decimal to binary conversion and i have figure out how to do the conversion i just don't know how to make it cout so that it is in reverse.... i was also told that it could done in a while loop here is the code [code] …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for HIGHER LEARNING

Ive been trying to understand the below code for a while and need to know if it "acts like a record" for a single user. At the `end users[userdb]` is like an array for 6 struct user records? #define userdb 5 /* DataBase*/ struct user {char username[10]; char userid[9]; char …

Software Development c c# c++
Member Avatar for vijayan121
0
222
Member Avatar for flash2007

I need help in C++ .Class name Driller has three data member (int Code Private, int Quantity private and Name public) it has 3 function: 1. Depth, the drills drills is based on the following: code 2000 depth(m) 300, code 3000 depth 500 and code 4000 depth 1000. 2. Cost …

Software Development c++
Member Avatar for flash2007
0
183
Member Avatar for darkagn

Hi all, I am wanting to display an image that is aligned so that the centre of a string of text is in line with the centre of the image. I know the image's dimensions and the length of the string, as well as the font I am using to …

Software Development image java
Member Avatar for darkagn
0
196
Member Avatar for hazelle

hi!...this my code,,,and i knew there"s something wrong with it,,,or maybe something is lacking..would you mind to help me?...i need a very quick response..thanks....Godbless you... [COLOR="Green"]import java.io.*; public class Samplefile { public static void main(String args[]) { File fob1 = new File("dede.txt"); RandomAccessFile rob1 = new RandomAccessFile("Hector.txt","rw"); if exists("dede.txt") { …

Software Development file-system java
Member Avatar for jwenting
0
93
Member Avatar for Moporho

I have assignment and need help determining if I am correct. The question reads: a.Write a function that determines whether a number is prime b.use the function to determine and print out all prime numbers between 2 and 10,000. [B][U]How many numbers to you have to test before being sure …

Software Development c++
Member Avatar for Moporho
0
5K
Member Avatar for torbecire

I am supposed to draw a box with coordinates UpperLeft(5,70) UpperRight(5,10), LowerRight(20,10) LowerLeft(20,70). I can't figure out what I am doing wrong. HERE IS ME CODE. [ICODE]TITLE BOX INCLUDE Irvine32.inc .code main PROC COORDS BYTE 5,10,20,70 UL BYTE 0DAh UR BYTE 0BFh LL BYTE 0C0h LR BYTE 0Dh VERT BYTE …

Software Development assembly
0
67
Member Avatar for sannidhikumar99

how can i use clrscr() in java programming??????

Software Development java
Member Avatar for masijade
0
92
Member Avatar for arlene1

I'm extremely new to c++- this is a homework question- I do not understand how to write my program for this problem: Write a function named yrCalc() that has an interger parameter representing the total number of days since the turn of the last century (1/1/1900) and reference parameters named …

Software Development c++
Member Avatar for amitahlawat20
0
180
Member Avatar for bornok15

i have a report design made within visual basic using crystal reports 8.5. Right now i need to made the report preview 4 of it in one 8.5x11 bond paper. I know i need to change the design to make it fit if im going to make it 4 at …

Software Development visual-basic
Member Avatar for hawisme000
0
94
Member Avatar for rrich1103

Alright so.... i have logic errors in my game... and idk how to fix them... can i get some help?..... this is a project due for school... tonight midnight actually... and i'm afraid that if i post my code online that... they'll void my program for plagirism x_X'''... so.... ya …

Software Development c
Member Avatar for Ancient Dragon
0
96
Member Avatar for bugmenot

hi, i need help please... i need to write a program to calculate the depreciation of equipment passed its useful life using two different methods... these are the actual requirements for the program: "Depreciation" Program requirements: 1) write a c++ program to calculate depreciation using the straight-line and sum-of-digits methods. …

Software Development c++
Member Avatar for Lerner
0
787
Member Avatar for Jennifer84

I have a .txt file that contains this informaton: Numb1 Number2[1] Numb3 Now there is 2 things that I am trying to do here. I dont know how to begin this. First I will search if there is any Word in this file that is named: Number2[1] But the tricky …

Software Development c++ file-system
Member Avatar for Jennifer84
0
166
Member Avatar for Time Indicator

Hi, I need help with Listbox. I have two listboxes and when one selects from the listboxLeft it should go to listboxRight and that seems to be working fine. However, when I tried to remove the content from listboxRight and add it to the listboxLeft. The remove function is working, …

Software Development vb.net
Member Avatar for Jx_Man
0
348
Member Avatar for ssharp77

Received some prior help to clean up my code and get this to compile which, it does in fact compile, but it seems to end after the int main(). I have tried several other possibilities with moving code around for the various functions, and I still cannot seem to get …

Software Development c++
Member Avatar for ssharp77
0
557
Member Avatar for debee

Can someone help me please! I would like to know of any advice about reading data from a file, and then storing them in arrays. I have got to work with this set of data, which needed to be preprocessed first in the following way: The first set of ten …

Software Development java
Member Avatar for debee
0
82
Member Avatar for Parsu7

What do you mean by Synchronized classes?

Software Development java
Member Avatar for jwenting
0
106
Member Avatar for wannabeIT

I don't understand why this program is making me input two more times (after the program is finished) before it terminates. All other programs that I do usually terminates while this code idles. For those who are confused, I have to enter extra characters and hit "enter," twice before the …

Software Development c++
Member Avatar for Lerner
0
123
Member Avatar for guitarrick

I really hope someone can help with this...We've been working on the same 'core' abstract data type files (ListA.h & ListA.cpp) thus far this semester. Progressively adding different methods along with the new concepts introduced. AppointmentBook is our class, and each project calls for some implementation of a simulated appointment …

Software Development c++
Member Avatar for guitarrick
0
125
Member Avatar for wolverine_krl

i made a function used for http post . and this is run in a thread......... while aborting this thread it is taking long time and the form becomes non responsive and show a blank form....... how can i solve this problem............

Software Development
Member Avatar for cVz
0
74
Member Avatar for torbecire

They are two classes. Fraction and calculator. Fraction does things like add, multiply.... The calculator class is supposed to call the methods in the Fraction class and output the data. The problem is i can't figure out where to put the calculator class so that it can output data. Here …

Software Development java
Member Avatar for torbecire
0
122
Member Avatar for Allen 0108

In the code below, can someone explain how the incrementing for the successive iterations results in the output? Thanks. [CODE]int main() { using namespace std; for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) cout << i << " " << …

Software Development c++
Member Avatar for Allen 0108
0
247
Member Avatar for icycool007

hello everyone i am trying to continue the countdown timer from 1 form to another in VB.NET but it is not working... I have been able to run countdown timer but not able to continue it in the following pages plz help me out as this project is very imp …

Software Development vb.net
Member Avatar for Narue
0
125
Member Avatar for rickilambert

This is the error message i get when i try and use the foor loop, cannot find symbol - variable split result [CODE]for(int i=0;i<=216;i=i+3){ MyPanel.txtbyellowentry.setText(splitresult[i+2]) ; MyPanel.txtbgreenentry.setText(splitresult[i+2]) ;[/CODE] What i am doing is, in my other class(matchlist) i am using a stringbuilder to send a group of matches to a …

Software Development java
Member Avatar for jwenting
0
91
Member Avatar for sigkill9

I have a question about a script i'm making. It asks the user to input an integer, then finds two prime numbers that sum up to the number, and displays what those two prime numbers are ( something like "54 = 5 + 49" ). I have most of the …

Software Development python
Member Avatar for sigkill9
0
104
Member Avatar for Jennifer84

I am trying to find how to open a Native project in VC++ 2008 NET That has this: int main() like below but I cant find what is the name of this project. int main() { return 0; }

Software Development c++
Member Avatar for Narue
0
95
Member Avatar for Thradok

I'm just starting out with Python, and for some reason I am getting a syntax error. This only happens when I run the whole program at once, but if I run only this little bit, it works fine. while choice != "q": choice = raw_input("What would you like to find …

Software Development python
Member Avatar for Thradok
0
108
Member Avatar for vagab0nd

ok below code is v rough but first implementation in python. i get the error name error name self is not defined in relation to teh first use of self.panelL in the layout function? it was working then i tried adding a button and it stopped I removed the button …

Software Development gui python
Member Avatar for vagab0nd
0
388
Member Avatar for fluidtype

Hello again. Now I'm asked to replace the texts in an existing software (Compiled with Visual). Like "Welcome to...." some remove a block of text entirely. I replaced all the images and icons before. Any ideas? Cheers!

Software Development c++
Member Avatar for vijayan121
0
133
Member Avatar for jeffige

I am taking a course on C++ game dev and one of the exercises asks me to write a program that: asks the user to input two numbers. compute those numbers, +, -, *, %. and then display the results. It took me forever and a minute, but I got …

Software Development c++ display
Member Avatar for jeffige
0
276
Member Avatar for TofiLuk

Can anyone fix this? What's wrong with my code? Accepts username and password as "admin" System.out.print("Enter Username: "); String user=myinput.readLine(); if (user=="admin") { System.out.print("Enter Password: "); String pass=myinput.readLine(); if (pass=="admin") { statement(s) } else if (pass!="admin") { System.out.println("Invalid Password."); } } else if (user!="admin") { System.out.println("Invalid Username."); }

Software Development java
Member Avatar for TofiLuk
0
73
Member Avatar for digital_ice7

i'm working on a banking system.....m stuck here....i dont know how to do this: 1.Their account should already have an amount of money for further processing. 2.All users are able to perform transactions such as withdrawal, deposit and check balance etc. 3.Each user will have a file or record to …

Software Development c++ file-stream ios
Member Avatar for mitrmkar
0
107
Member Avatar for ramjeev

Hi friends, I m new to this forum.I m trying to make RAS dialup connection thru programatically.If anyone has idea.pls help on this.Your help would be highly appreciable. Thanks

Software Development java
Member Avatar for ramjeev
0
70
Member Avatar for Yaka

hi, this is my prime number check program, i've posted it here b4, thanks to ur helpfull replys i managed to get it up and running how ever it gives this warning....C4715: 'isPrime' : not all control paths return a value....i cant figureout where the error is. could someone tell …

Software Development c++
Member Avatar for mitrmkar
0
334
Member Avatar for Littlen

Hi All, Could you please help me, im trying to create a ASN1Sequence from a DERObject. The following is the code that i am using and the error that i am getting. [CODE] ASN1InputStream ais = new ASN1InputStream(abyte0); DERObject DEROctetString = ais.readObject(); ASN1Sequence asn1Sequence = (ASN1Sequence)DEROctetString; Exception in thread "main" …

Software Development java
Member Avatar for Tenk
0
282
Member Avatar for henpecked1

I'm trying to write a while loop to terminate a program when asked if you want to enter another name and the answer is no (or a number since I'm using character strings) My first idea was to check the 0 element of the first name part asked for, but …

Software Development c++
Member Avatar for henpecked1
0
193
Member Avatar for amddma

ok this is my last one and i am still a total n00b to this. this is my assigment: [QUOTE]Lab: Finding the largest number In this lab, you will write a program that finds the largest number of a sequence. First, your program asks the user to enter an integer …

Software Development gui python
Member Avatar for amddma
0
110
Member Avatar for rohoni

Help me! what is operator overloading?explain its types, with examples

Software Development c++
Member Avatar for amitahlawat20
0
106
Member Avatar for haquer02

Hi , For the following code , I intended to have a dialog box with labels balance , payment no : and a button named calculation. When the button will be clicked it should show the next balance according to the equation used in the code . But its showing …

Software Development java java-swing
Member Avatar for haquer02
0
120
Member Avatar for mushifrederick1

hi, i'm new in this site, but according to good reputation you have in this world i realy appriciate u'r concern. my problem might seem very simple to u but inrealy sense its giving me hard times. plz help me to know how to start a vb6 project. thanx in …

Software Development visual-basic
Member Avatar for hawisme000
0
257
Member Avatar for mr.cool

im making a battleship game and so far i have this but im getting an error and i don't know what it means, this is the error [inlinecode]error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'[/inlinecode] this is my code [code=cplusplus] #include <iostream.h> #include <stdlib.h> #include …

Software Development c++
Member Avatar for mr.cool
0
118
Member Avatar for WIP

I tried them but i cant seem to get them to compile so it would be really nice if you can try them and let me know where i went wrong! here are the question: (Airline Reservations System) A small airline has just purchased a computer for its new automated …

Software Development c++
Member Avatar for Ancient Dragon
0
385

The End.