43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for C++Amanda

I am very new to C++. I have to write a program for class that reflects the game of craps and I'm kinda stuck at this point. Any help someone could give me would be HUGELY appreciated. The guidelines we were given are that the program should execute 10000 times …

Software Development c++
Member Avatar for iamthwee
0
197
Member Avatar for Ravenous Wolf

hi. i am kind of stuck and i need some help. i have a dll and a .cs file. i have opened the .cs file and it contains a class. i asume that the class and the dll works together. sort of like a cpp header file and class file. …

Software Development file-system
Member Avatar for Ravenous Wolf
0
207
Member Avatar for maye13

I need to create a C program that goes like this: The user wil enter the number of seconds that the stopwatch should run starting at the equivalent time in hours, minutes and seconds of the input. The stopwatch runs until the time becomes 00:00:00. I don't want you guys …

Software Development c
Member Avatar for maye13
1
2K
Member Avatar for gator6688

Ok I figured everthing out except: 1) when it asks for my input it asks like this Enter first name: Enter last name: Enter amount:-it puts it all on the same line. Also when I run it it puts Sept. on the in the right spot but it puts 30, …

Software Development c++
Member Avatar for Salem
0
129
Member Avatar for Duki

I'm trying to get totCust and totRev which are declard in videoBonanzaForm to show up in the summaryForm.textboxes I have them declared as friends; i've even tried assigning `me.textbox.text = "1"` and nothing shows up still when I click the Summary button (in videoBonanzaForm). I open the summary form with …

Software Development vb.net
Member Avatar for Duki
0
199
Member Avatar for gator6688

I need to be able to pass the data I enter into my check. I do not think I have my check set up right though. I will post my code. [CODE]#include "stdafx.h" #include <iostream> #include <string> using namespace std; string todaysDate; string firstName; string lastName; double amount; void enterData(); …

Software Development c++
Member Avatar for gator6688
0
120
Member Avatar for theraven1982

Hello, i'm still trying to learn C, and I have a new question ;). I want to declare a struct, and use a function to manipulate the entries. If I change the values within a function it's ok; however, when i access the members outside the function, they're not defined …

Software Development c
Member Avatar for theraven1982
0
21K
Member Avatar for Icetigris

This compiles, runs fine, and generally works, except for one thing. The contains() method doesn't work properly. For some reason table.contains(key) isn't returning the right value, which is thereby messing up the insert() method. [code=java] public class HashtableDictionary implements StringDictionaryAlgorithm { static final boolean debug = false; Hashtable table = …

Software Development java
0
61
Member Avatar for horntastic

I am using Turbo C++ for Windows, version 3.1 at home. At school, we are using a similar version (maybe 3.0 or 3.1), but with a more blocky display. (with block cursor and stuff. my one at home looks more... modern) [EDIT] The school version is Turbo C++ 3.0, possible …

Software Development c c# c++ ide
Member Avatar for horntastic
0
153
Member Avatar for zandiago

I need a head-up on this program....i really don't know where to start....however for section one, i'm guessing we'll have to use for loop from 1000 to 9999...because of the fact that they show the range of the samllest to largest 4 digit #'s. In section two I guess we'd …

Software Development c c# c++
Member Avatar for zandiago
0
245
Member Avatar for RaDeuX

So I've been trying to make a VERY simple calculator program, but I tried so many things, and all of my methods failed. I've been at this for weeks, and I'm pretty frustrated up to this point. Nothing calls back on the entry box correctly, and although at certain points …

Software Development python tkinter
Member Avatar for vegaseat
0
434
Member Avatar for Exelio

hi all, I am using a datagridview to display contents of a xml file. say i have a xml file like this. <xml version="1.0" encoding="UTF-8"> <maincategory> <cat1> <title>Category1</title> <link>http://www.w3schools.com</link> <description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/flames_ramsetu90.jpg" >some description</description> </cat1> <cat2> <title>Category2</title> <link>http://www.ibnlive.com</link> <description><img src="http://static.ibnlive.com/pix/sitepix/09_2007/rahul_gandhi_white90.jpg" >some description</description> </cat2> </maincategory> initially i display only the title of …

Software Development xml
Member Avatar for Exelio
0
205
Member Avatar for gator6688

I have to write a program for an online class that accepts data to the function enterData() and passes it to printCheck to display. I am new to C++ and since it is an online class it is hard to get help. I have to compose a check and be …

Software Development c++
Member Avatar for Dave Sinkula
0
288
Member Avatar for fishguts

I am working on a java assignment for my cs 111 class and I keep getting an missing return statement error, and have tried to determine the error but cannot locate it. I am sure that I have the right set of curly braces. My code is shown below. If …

Software Development java
Member Avatar for fishguts
0
96
Member Avatar for zandiago

Good day: There have been similar posts to my question...but i don't see what I'm doing wrong. Our professor wanted us to use a switch/case statement, we started transversing a string....The assisgnment : Write a program that will read in a one line phrase from a text file named “vowels.txt”. …

Software Development c c# c++ open-source printer
Member Avatar for zandiago
0
201
Member Avatar for Caled

Hello all, is there a way to cancel or abort the execution of current actionPerformed? My problem is that, when the control is passed to the listener method, i perform checking if certain value is null, if so, display Error Msg using JOP. when user click OK, then the actionPerformed …

Software Development java
Member Avatar for Caled
0
1K
Member Avatar for zandiago

Good day guys: The assignment is : Write a program that will generate an unknown (between 93 & 139) count of random numbers whose values fall between 147 and 206. Calculate the average to 2 decimal places and the standard deviation (3 decimal places). On the monitor, display only the …

Software Development c++ printer
Member Avatar for zandiago
0
188
Member Avatar for johngw

I have a project in C++Builder. It invokes Application->MessageBox in several files. I recently upgraded to C++Builder 2007. The MessageBox calls that were already there seem to work OK, but those I have added since upgrading all give an AccessViolation at Run time. The Call Stack looks like this: :7c812a5b …

Software Development c++
Member Avatar for johngw
0
120
Member Avatar for Caled

Hello people, How can i display the JLabel text using external file.. When user click a button, a file is read and retrieve and will be displayed at the label.. what I did was: 1) Declare all the necessary file IO 2) use the useDelimiter() method to read the file …

Software Development java
Member Avatar for Caled
0
1K
Member Avatar for HoldenCfld

I have a project for class and I have an error coming up that I don't understand. I've written code the same way I always do, and haven't found that I've done something oddly, but I still get an uninitialized local variable warning. Here is my code: [code] include <iostream> …

Software Development c++
Member Avatar for HoldenCfld
0
184
Member Avatar for eXceed69

Hi, I'm having trouble to get the value of a certain tag which seems have a complicated data structure. Object: To pull data from a data and print it out to a report file. Problem: Getting the data from array of hash and pass it to a hash of hash …

Software Development api data-structure perl
Member Avatar for eXceed69
0
168
Member Avatar for asilter

i'm trying to read and understand a .cc (c++)file, i want to know what does ok_flag(false),time_range(false),prefix() do after ":" ? I did know that ":" was being used for class inheritance but what is ":" for in the bleow code? [code] ClassA::ClassA(const char *db) : ok_flag(false),time_range(false),prefix() { //.. Constructor statements …

Software Development c++
Member Avatar for asilter
0
145
Member Avatar for jjt

I am totally new to java, but i understand java is the appropriate for my project. i am not sure where to start? and how to use the java packages. I know programming but JAVA is my first time approach. Can any one guide me on the visualization java tools? …

Software Development java
Member Avatar for jjt
0
194
Member Avatar for zandiago

The following is my "inFile": [code]UEAALEUE RIXETOHI BACOZOEI DIUEAOAU ZIKOFIMO RESUZEAE IIJEHUMO EEQINOXO TAOEKIBI RUQICIGU ZIWAREWE HIDIFIFO MOIACALA MEJIEACO UAPEUUQU YISOZAZO KENIDONA EEVIYOHU SEJEXEYA OESEQUFU NUJECAUE RAKAWUME NISIMAKE MEPIBADO TAUELAZI IIEACINU IITOGIIE GIEIFEVU NIOUQELU IIVOFEHI TOKUCORU GUQOEOJE HOBUUIXA HOVEDAGO JEROMAFA TOLIOELU QIGOIIAA TEDEIUOA COZOLELA YOHUZUZA QUNACAKO POSAEIGA JECAMOPE VAKEKAPA LEJEVINE …

Software Development c++ printer
Member Avatar for zandiago
0
275
Member Avatar for ReeciePoo

[code] [COLOR=#000000]] Dim GETWORD[/COLOR] [COLOR=#000000] Dim GETLINE[/COLOR] [COLOR=#000000] Dim ARRAYNUMBER As Integer[/COLOR] [COLOR=#000000] Dim itmx As ListItem[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] nFileNum = FreeFile[/COLOR] [COLOR=#000000] Open "C:\Documents and Settings\Reece\My Documents\I.T\Visual Basic\Reece\client.db" For Input As nFileNum[/COLOR] [COLOR=#000000] If Input(LOF(nFileNum), nFileNum) > "0" Then[/COLOR] [COLOR=#000000] GETLINE = Input(LOF(nFileNum), nFileNum)[/COLOR] [COLOR=#000000] GETLINE …

Software Development visual-basic
Member Avatar for reeturaj
0
340
Member Avatar for trudge

I'm hoping this is the appropriate forum for my situation. I'm trying to populate a form on a .NET server with data from a form on a different server. Using SOAP::Lite we've managed to get this code working: [code] use strict; use warnings; use SOAP::Lite +trace => 'debug'; my $name='Trudge'; …

Software Development asp.net perl
Member Avatar for trudge
0
133
Member Avatar for JaceDBN

Hi, I have created a database using Access 03 and VB, and I will be letting some people use it shortly. I would like to create a way in which the program cannot simply be copied onto another computer. I was thinking of using VB and referring to some system …

Software Development visual-basic
Member Avatar for kb.net
0
98
Member Avatar for Jon Pierce

I found this very nice tutorial on what Python generators are and how they can be used: [url]http://www.neotitans.com/resources/python-generators-tutorial.html[/url] I had a difficult time with the other tutorials out there because, funnily enough, they seem to assume that you already know what generators are before they try to teach you about …

Software Development python
Member Avatar for vegaseat
0
150
Member Avatar for cowboys111

Hi, I am trying to write a program that tells the user the ammount of digits that are in a number for multiple numbers. I have it to the point where it will tell me the digits of the first number but it wil just write it an infinite number …

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

>How can i convert a number to binary in c++ If you stare at it really hard, things will start to blur and when you turn your head, it'll start to look like binary in your peripheral vision.

Software Development c++
Member Avatar for WaltP
0
255
Member Avatar for wmr30075

I have created and populated an Excel workbook with 3 worksheets. Sheet1 contains data; Sheet2 and Sheet3 are empty. I massage the data in Sheet1 and enter the output into Sheet2. I would now like to delete Sheet1 and close and save the Excel file. I am embarressed to say …

Software Development visual-basic
Member Avatar for binoj_daniel
0
113
Member Avatar for toptier

I have an html form containing the usual text boxes and a checkbox. When submitted to the server the user receives both an email acknowledgement as well as an html "thank you" page, both delivered by a perl cgi script. Depending on whether the checkbox is checked or not on …

Software Development perl
Member Avatar for toptier
0
117
Member Avatar for nullified

Hi, I want to open a text file and read the data then sort it via date. i found some stuff already that helps but im new to this and if anyone point me in the right direction it would be very appreciated. this sample app here [URL="http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx"]http://www.c-sharpcorner.com/UploadFile/mmehta/OpeningandViewingTextandImageFiles12082005060630AM/OpeningandViewingTextandImageFiles.aspx[/URL] opens the …

Software Development
Member Avatar for _r0ckbaer
0
332
Member Avatar for JoBe

Hello ladies and gents, It's been ages since I posted here, have been doing some coding on and of and I was wondering about the following, beneath is a test I made in trying to use the new operator in combination with a string, first a string literal, second time …

Software Development c++
Member Avatar for JoBe
0
4K
Member Avatar for axn

i know how to create a dictionary but how do i search for a pattern in a file and then create a dictionary based on the search

Software Development python
Member Avatar for ghostdog74
0
119
Member Avatar for mattarov

OK, as you can probably tell from my code, I am trying to design a program that will keep requesting a password until the right password is entered (using a Do While Loop with char instead of int). this is my code: (this is one of my first solo pieces …

Software Development c++
Member Avatar for Salem
0
83
Member Avatar for onsir

hi all, how to detect program is running in my computer. etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' . thanks, for your help.

Software Development java
Member Avatar for ~s.o.s~
0
200
Member Avatar for ivatanako

[code] System.out.println("Enter new name: "); String stdName = input.readLine(); st.executeUpdate("UPDATE Customers SET stud_name='"+stdName+"' WHERE stud_ID='45698'"); [/code] Ok, this is my problem, this command should update\replace the existing column stud_name with a new name. But it wasn't able to replace it. There were no sql errors. Did I miss anything? Or …

Software Development java
Member Avatar for jwenting
0
722
Member Avatar for n.aggel

this is the final version of the priority queue i implemented {with some of your help!}... the problem is that when i profile the code with valgrind, it shows that i have a memory leak.... i can also see that, if in my code i make certain test_points{where i pause …

Software Development c++ queue storage
Member Avatar for n.aggel
0
418
Member Avatar for teppuus

Hello, I need to complete a selection sort (descending order) on a string that contains 3 letters and one number. This is the function I wrote so far, but it doesn't sort properly. It is sorting, but I can't figure out its scheme. Any tips? Thanks! (The arrays are parallel. …

Software Development c++
Member Avatar for teppuus
0
235
Member Avatar for jdphenix

Hello everyone.. I small snippet about me. This is my first post, and I just decided to start coding in C++ a couple weeks ago, so needless to say, I'm a newbie. I bought a Beginning C++ book to help me with initial concepts. On to the reason for my …

Software Development c++
Member Avatar for jdphenix
0
687
Member Avatar for metalbassist56

Hey, I'm new to programming and I was wondering if anyone could tell me how to create a simple Yes/No interface for a program so I can figure out how to do things like that...

Software Development c++
Member Avatar for Duki
0
153
Member Avatar for ptaylor965

Hi, I have datatable with three rows of data that will increase I want each row to fill lables, checkboxes and textboxes on their own tab of my tab control I have created a Template tabpage but when i try to add the other dynamic tabpages they are all blank …

Software Development vb.net
Member Avatar for ptaylor965
0
149
Member Avatar for Donnovan

Hi, I'm using Microsoft Visual C++ and I keep getting this error referring to this one line in my main file . can someone HELP ME ? [code]#include <iostream> using namespace std; int main() { float tempFahrenheit; float tempCelsius; float Omrekenen; cout << "Geef de temperatuur in Fahrenheit: "; cin …

Software Development c++
Member Avatar for Donnovan
0
200
Member Avatar for ryy705

Hello, I have some questions about how to work with urls in java. Any help would much appreciated. When I execute the following code from my app it executes just fine. But when I move my app to a different directory and change the url accordingly, it fails. original code: …

Software Development java
Member Avatar for ryy705
0
113
Member Avatar for madhan

[COLOR=#000000]I am executing all my c/c++ programs in VC++ cmpiler.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=maroon] [/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=blue]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] main() [/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] age; [/COLOR] [COLOR=blue]char[/COLOR][COLOR=#000000] sex;[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your age:"[/COLOR][COLOR=#000000]; [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]cout<<[/COLOR][COLOR=maroon]"please input your sex (M/F):"[/COLOR][COLOR=#000000];[/COLOR] [COLOR=#000000]cin>> age; [/COLOR] [COLOR=#000000]cin>> …

Software Development c++ google
Member Avatar for Tom_Zeke
0
5K
Member Avatar for tycoonjamie

Hello I am trying to make an VB program to open an excel workbook and just open it. I have two forms. the first is a crude password system that if completed switches to form2. That is fine but i have no idea how to then make this form have …

Software Development visual-basic
Member Avatar for tycoonjamie
0
109
Member Avatar for wendy2learn

I'm having problem with my program here. See, I have an array of char* as data member in Action class. With the help of getFirst() function, I'm returning the value of the first element in the array. But, when I tried to print out this value in the test.cpp, it …

Software Development c++
Member Avatar for Salem
0
117
Member Avatar for theraven1982

Hello, Since you all helped me so well the previous time, I have a second question for you. I think it's fairly simple, but for some reason I can't find the answer. I want to write to a file, in a certain format; however, it doesn't write it exactly as …

Software Development c
Member Avatar for theraven1982
1
763
Member Avatar for KimJack

Hello All, I am trying to parse an ArrayList of Strings into an ArrayList of integers. Does anyone have any opinions on how this should be done? I can parse one element, but parsing the entire string where I am having problems. Any suggestions would be great. Thanks

Software Development java
Member Avatar for KimJack
0
101

The End.