132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ~AOD~

Sir, I am currently writing a VB.Net application that uses Random Access File storage to store all the records. I have been able to write/find and delete records from the random file however i also wish to update records once i have searched for them. When the update takes place …

Software Development storage vb.net
Member Avatar for Ramy Mahrous
0
737
Member Avatar for Dontais

I am having problems with the . operator I thought i had it right but it keeps giving me problems on the line myBike.Bicycle(24,17); it won't compile. [CODE]// This program is designed to imput data and // output the data for bike gear and sockets. #include <iostream> using namespace std; …

Software Development c++
Member Avatar for Dontais
0
107
Member Avatar for student_x

given a 2-D maze stored in a 2-D array eg: SWWWW . . . . . W.W.W . . . . F S is starting point F is exit . is the path W is the wall. After the player enters the maze, s/he tries to find a path to …

Software Development c++
Member Avatar for DemonGal711
0
611
Member Avatar for power_computer

First compute the employee's gross pay. Gross pay is hours worked multiplied by hourly rate. We will assume (for simplicity) that no employee will work more than 40.0 hours, therefore no overtime pay calculation is needed. Next, compute the net pay. To do so, we must determine the amount of …

Software Development c++
Member Avatar for DemonGal711
0
200
Member Avatar for abacuswalker

I have three classes, class A, class B, and class C. Each class is in its own file. Class A uses class B. (object class) Class B uses class A. (object class) Class C uses class A and class B. (program class) How do I go about using #include and/or …

Software Development c++
Member Avatar for siddhant3s
0
105
Member Avatar for shasha821110

I know for some C++ experts this class overload is like a piece of cake but as a beginner we always asked to write this again and again. My code as following don't have compiler problem but have strange output. [code=c++] Class String { public: String (const String& s); String& …

Software Development c++
Member Avatar for siddhant3s
0
77
Member Avatar for abhi_marichi

I need to execute some dos commands like executables(.exe) PLEASE HELP ME OUT OF THIS

Software Development c
Member Avatar for Narue
0
139
Member Avatar for bhoot_jb

in my application, i have created a data environment. Then i have connected a data grid to that data environment. Now my problem is when i add or delete one or more records, then the database updates itself...but the datagrid doesnt....it doesnt update until i run the application again... :( …

Software Development visual-basic
Member Avatar for darkgaizat
0
99
Member Avatar for Mossiah

Please help me with this. I am a newbie at this. I am supposed to pass a string array to a function. Letter grade Please give me an example on how to do it plz. thanks in advance.

Software Development c++
Member Avatar for monkey_king
0
66
Member Avatar for slimjimmer

Hi. I need to make a program which outputs an array to a file. The output file needs to have two columns, one labeled m(e) another labeled v, but I can't get the columns of the array to be separated in the output file, it just prints a string of …

Software Development c
Member Avatar for csurfer
0
158
Member Avatar for mimis

I need to learn brute-force search because i think that it will help me to solve a problem on graphs. Do you know any good tutorial for brute-force search?

Software Development c++
Member Avatar for mimis
0
147
Member Avatar for g_e_young

Hi - This is a simple problem, I'm sure, but I'm stumped. I need to read only one column from a multi-column file. The column is always in the same position, so I've decided to simply isolate the location in the row while reading the data. Here is my code: …

Software Development python
Member Avatar for g_e_young
0
129
Member Avatar for ofnature

For school I have to write a program that calculates the probability of 0 to 10 planes attempting to land in any-minute period at an airport during peak arrival times. I think I don't understand the equation: a(exponent x) e(exponent -x) over x! x= the number of plane arrivals per …

Software Development c++
Member Avatar for ofnature
0
847
Member Avatar for ChaosTheory

hi, I have an application that paints a rectangle(car) and moves it across the screen using a timer when a start button is clicked. The problem i have is i want to generate(paint) cars randomly at specific intervals (using a timer) when the cars disappear from the screen/street. Now i …

Software Development java
Member Avatar for quuba
0
133
Member Avatar for Sky Diploma

Hi All, I have taken up this home project just for my pastime. My objective is to take a html file and then make a complete new webpage with a specific keyword. It basically is a find and replace type of method where my existing file contains a specific keyword …

Software Development c c# c++ html-css objective-c
Member Avatar for Sky Diploma
0
210
Member Avatar for h3llpunk

Hi im just trying to make a simpel dice roll game which seems very hard because srand always generates the number 0 to me. I also ask the user to type roll to roll his dices which i try check if he really does type roll. this is my code: …

Software Development c++
Member Avatar for vmanes
0
88
Member Avatar for toadzky

I have a HUGE text file (over 60,000 lines) and I'm using python to do regex fixing on the file. I want to wrap any lines over 100 characters, and wrap on a space. I know I can use ".{100}" to find 100 characters but when I do this: [code] …

Software Development python regex
Member Avatar for scru
0
158
Member Avatar for asafoatse

My son was trying his hands on codes writings to a lttle windows application, the he realised he would like to set a condition as to how many characters or a limitation on the leght of string input from the user, cos without a limitation the user might write a …

Software Development
Member Avatar for asafoatse
0
81
Member Avatar for power_computer

I am using this if statement to formulate some sort of output however only the last block executes where each if is suppose to execute depending on the gross pay that will determine the tax. It reading input using fstream from a .txt file It reading the right numbers The …

Software Development c++
Member Avatar for vmanes
0
79
Member Avatar for urbandad70

Here is my first post. I am looking for a little guidance with my class project. I have all the logic pieces worked out, but I don't know how to import a scores.txt file into an array. For the sake of my testing I just statically entered some data into …

Software Development c++
Member Avatar for vmanes
0
162
Member Avatar for hellIon

[code] #include<stdio.h> void main(int argv,char * argc[]) { int num1,num2; num1=(int)argc[1]; num2=(int)argc[2]; printf("%d\n",num1); printf("%d\n",num2); } [/code] wat output should i expect? is there something wrong wid this code? cus i am getting weird outputs

Software Development c
Member Avatar for Narue
0
156
Member Avatar for gayatridas

[QUOTE=Kerry;41762][COLOR=Blue]Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help. [/COLOR][/QUOTE] I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that …

Software Development algorithm c
Member Avatar for moonw3ll
0
139
Member Avatar for rambo123

hi i am not getting pointers concept.guide me to learn this concept.i can't understand the increment and decrement of pointer variable. And maximum how many dereference operator you can apply in while declaring a pointer variable. reply me asap

Software Development c
Member Avatar for csurfer
0
112
Member Avatar for deerowbear

I am getting these errors when compiling, and I am not sure why. Any help is much appreciated. Thanks daniel /////errors 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected `;' before '<' token 83 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token …

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for wccarithers

I am using psycopg2 to read from one database table and insert these into another table. I get a format error when the value I am trying to insert has a space in it. The condensed code looks like: cursor.execute("""INSERT INTO table (column1, column2) VALUES ('start finish','now later')""") I'm a …

Software Development python
Member Avatar for jlm699
0
2K
Member Avatar for nerden

I am writing a program where a user selects two mathmatical operators: LT -less than GT -greater than EQ -equal to NEQ -not equal to I have if statments to convert these to their symbol, but how can I then use this in a sum? If it was just one …

Software Development vb.net
Member Avatar for nerden
0
130
Member Avatar for mary10

Help me implement these in playlistImpl The user needs to be able to: * Create playlists * Delete playlists * Edit playlists * play playlists com.xxx.iopackage.inputstreams.mp3player.playlist.PlayList com.xxx.iopackage.inputstreams.mp3player.playlist.PlayListImpl [U]PlayList.java[/U] [CODE=java] package com.xxx.iopackage.inputstreams.mp3player.playlist; import java.io.File; import java.util.LinkedHashSet; /** * Models a playlist of MP3. A Playlist is a group of mp3s which …

Software Development java user-interface
Member Avatar for nymph
0
205
Member Avatar for psankisa

hi all, [B]can any of you enlighten me as to how to use ACEXML Parser to parse an xml file in c++.[/B] regards, psankisa.

Software Development c++ xml
Member Avatar for psankisa
0
36
Member Avatar for johnray31

Hi guys, when i am compile this program it gives error. i am wondering why it is so.. plz help me. thankx [CODE] #include <iostream> #include <map> #include <string> using namespace std; class ConfigPath { public: ConfigPath() { m_name = "VIPIN DAHIYA"; } ~ConfigPath(){} private: string m_name; }; int main() …

Software Development c++
Member Avatar for johnray31
0
187
Member Avatar for mrk

Hi, I am debugging an application developed by another programmer. AxInterop OCW11 excel component is used. The following code is giving an error "Input string was not in a correct format", "object reference was not set to an instance of an object". strTest = axSpreadsheetASCIIop.ActiveCell.get_Range( (Convert.ToChar(Col1)).ToString() + longRow1.ToString(), (Convert.ToChar(Col1)).ToString() + …

Software Development
Member Avatar for mrk
0
150
Member Avatar for azket

Hey everyone, let me get straight to the point: For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them. (public class ServicePanel extends java.awt.Panel) Now I've encountered three problems. 1. When add those panels to the GUI Palette and …

Software Development gui java java-netbeans java-swing
Member Avatar for azket
0
120
Member Avatar for karthikRaju

I am doing online examination project, in that my requirement is to set one question in one page,the maximum time limit for the question is 60 seconds, count down. pb is if the user click refresh and back button the time get reset to 60 seconds again in this way …

Software Development java
Member Avatar for javaAddict
0
171
Member Avatar for rayda

[ICODE]import java.util.Scanner; public class Simple { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("How many number?"); int numNumber = scanner.nextInt(); int sum = 0; int []numbers=new int[numNumber]; int highest=numbers[0]; int lowest=numbers[0]; for(int i = 0;i< numbers.length ; i++) { System.out.println("Please input number" + i + ":"); …

Software Development java
Member Avatar for javaAddict
0
100
Member Avatar for cevion

Hello I am trying to write a program that removes spaces before and after and reduce to one between words and capitalize the first letter of each world and the other letters lowercase but I'm getting errors which I can't make heads and tail of. |12|error: expected primary-expression before ')' …

Software Development c++
Member Avatar for siddhant3s
0
110
Member Avatar for ephums

I'm trying to create a program that will sum all of the numbers from 1 to n, which the user inputs. I have to use recursion to calculate the sum. For example if the user inputs 5 it will return the sum of 1,2,3,4,5. Here is what I have so …

Software Development c++
Member Avatar for siddhant3s
0
96
Member Avatar for curtissumpter

Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire

Software Development html-css ide java
Member Avatar for peter_budo
0
70
Member Avatar for IMtheBESTatJAVA

Hey guys I just ran into some pretty interesting java problems on a different website and thought some of you might get a kick out of this. Determining on how well this goes I may post some more. So here comes problem 1. Determine the following output with the use …

Software Development java
Member Avatar for verruckt24
0
167
Member Avatar for Fouly

Hi, I'm writing MFC code and i got an error after writing this command line: [code] CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite)); [/code] the error is Debug Assertion Failed!!! Thanks, Mostafa Fouly

Software Development c++
Member Avatar for Fouly
0
162
Member Avatar for newbie_here

hi all i am a newbie want to know how to get values from two tables in database. I hae two tables one is the personla information and the other table is the salary table .Both tables have id number which may join them to gather. But what i need …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
150
Member Avatar for ox99racer

this is my code... not too sure what im doing wrong but its probably something small. im getting errors too. #include <iostream> #include <fstream> #include <string> using namespace std; // void functions void nameFile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int …

Software Development c++ visual-studio
Member Avatar for Comatose
0
108
Member Avatar for anbuninja

so im starting the second half of my c++ class and we are getting into functions. are first assignment and im already stuck -__- the teacher gives us the code for above main so we just need to write the prototypes. heres my code so far (prototypes probably wrong) it …

Software Development c++
Member Avatar for vmanes
0
174
Member Avatar for shankhs

I dont know whether this is the right place to post this question but I think you guys have huge experiences so... I had a course on both algorithms and software engineering , and now I feel that I can devote my time to only one of these( as these …

Software Development c++ engineering
Member Avatar for shankhs
0
102
Member Avatar for geetajlo

Hi i want to prevent the user from entering number and special charaters in a textbox and another textbox from entering alphabets and specials characters ..... Need it quickly coz 2moro have to submit my project...

Software Development vb.net
Member Avatar for sabeerpasha
0
1K
Member Avatar for chiurox

Hi, I'm doing an assignment, where we need to use a class Domain and correctly output the URL address. The given class Domain is like this: [ICODE]class Domain { public: Domain(string lbl) : m_label(lbl) {} string label() const { return m_label; } const vector<Domain*>& subdomains() const { return m_subdomains; } …

Software Development c++ microsoft-windows
Member Avatar for chiurox
0
99
Member Avatar for Dell XPS

i need to save some text in a file in utf-8 format but have no clue how to do it... any help appreciated...

Software Development vb.net
Member Avatar for Ramy Mahrous
0
111
Member Avatar for DeadJustice

I'm doing this minesweeper assignment and I need help. I tried to test the findMineValues() function and it completely scrambles up my board. Can someone help me pinpoint what I am doing wrong? [CODE=cpp] #include <string> #include "Cell.h" using namespace std; Cell::Cell(){ label = 0; mine = false; flag = …

Software Development c c# c++
Member Avatar for DeadJustice
0
2K
Member Avatar for vmars

When I try and run xrced.py, I get the following errors in IDLE: Please, what am I doing wrong? Thanks! IDLE 2.6.1 ==== No Subprocess ==== >>> Traceback (most recent call last): File "C:\Python26\wx-2.6-msw-unicode\wx\tools\XRCed\xrced.py", line 23, in <module> from globals import * File "C:\Python26\wx-2.6-msw-unicode\wx\tools\XRCed\globals.py", line 7, in <module> from wxPython.wx …

Software Development python
Member Avatar for vmars
0
440
Member Avatar for tyoung4@runner

The following is the complete code. Can you give me a hint as to why the program is reading the "mph" instead of "hours"?? The program should only display the "Distance Traveled" according to how many hours the user inputs, not 40 separate calculations. The user inputs 40 mph and …

Software Development c++
Member Avatar for tyoung4@runner
0
305
Member Avatar for JoannaMeier

Hi all. I wrote a small sequence to read data into a dynamic array of structures, which seems to work just fine so far as I can tell. Unfortunately a friend with somewhat more experience than I do pronounced it 'hairy,' but wasn't good enough to explain why. I'm simply …

Software Development c
Member Avatar for Ancient Dragon
0
103
Member Avatar for ttony

Hi, can somebody explain why am I getting segmentation fault on this program. It seams that the list that is initialized in clstouchcontext.h does not get recognized in clstouchcontext.cpp Makefile is attached. main.cpp: [code=cplusplus] #include "clstouchcontext.h" #include <iostream> int main () { clsTouchContext* pContext = 0; //= GetContext ( iContextId …

Software Development c++
Member Avatar for Rashakil Fol
0
103

The End.