43,549 Solved Topics

Remove Filter
Member Avatar for
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 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 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 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 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 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 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 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 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 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 chris5126

Hi guys, Im trying to create a console app that will read from a text file and import the file into a sql database. I have completed the following already: Read from a text file and put out to console Read from sql database and put out to console Now …

Software Development dns file-system open-source sql
Member Avatar for LizR
0
205
Member Avatar for asafoatse

am starting to learn use delegates ,but am having a problem to solve this code ,can u help , solve it and say what am doing wrong, thanks. here is what i did. namespace DelegateHello { class Program { public delegate void Hello() static void Main(string[] args) { Hello greetings …

Software Development
Member Avatar for asafoatse
0
123
Member Avatar for binamy1

I have been developing my own compression algorithm for my school project.It is like LZ77 but uses fixed blocks,and a dictionary containing the position of the repeating block (dic.inpos)& where it is to be copied(dic.charpos);I am using Gnu C++,The program crashes or gets stuck on initializing in.. Also the program …

Software Development algorithm c++ ios
Member Avatar for binamy1
0
140
Member Avatar for tyoung4@runner

Hello everyone. I am having a hard time getting this program to run w/o an infinite loop. I have been in my C++ class for a month. I think my test expression is incorrect, but I've tried what I think it should be. Problem: Write a program that asks the …

Software Development c++
Member Avatar for tyoung4@runner
0
267
Member Avatar for chris5126

Hi guys, I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database. I have the program working which does this however the filename changes depending on when it was created. The …

Software Development file-system
Member Avatar for JerryShaw
0
194
Member Avatar for ravikiran032

i am new to java networking. my client program is giving an error `"Couldn't get I/O for the connection to:192.168.1.2" ` in the below program.will u please help me.and 192.168.1.2 this is my local machine. code: import java.io.*; import java.net.*; public class client1 { public static void main(String[] args) throws …

Software Development client-server java
Member Avatar for masijade
0
5K
Member Avatar for replic

Hi everyone, i wrote this small app and it works fine but it erases everything up to the offset and everything after it. Anyone knows how to avoid that? [CODE=C++]#include <iostream> #include <fstream> int main() { int hex = 0x75; std::ofstream f("sample.exe", std::ios::binary); f.seekp(1169, std::ios::beg); f.write(reinterpret_cast<const char *>(&hex), 2); f.close(); …

Software Development c++ ios
Member Avatar for replic
0
238
Member Avatar for bondgirl21

i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF $200000 Help with Code Tags [quote] Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged If xModelComboBox.Text = "DBS" Then xTotalPriceLabel.Text = "$200,000" [/quote] AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE= is …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
129
Member Avatar for Bart6114

Hello, Is there a way to read an imagefile into a binary string? I know I can use [code]open(FILE,"rb")[/code] but this produces something unreadable that looks a bit like hexdata (I'm a newbie here :-). What I am trying to accomplish is to convert it to a string of ones …

Software Development image python
Member Avatar for Bart6114
0
14K
Member Avatar for integralJill

Hello, For the program described below, I obtain the correct prime numbers in the file, but when I try to output this data sorted to standard input, I get some garbage when I try it on my school network. However, when I run the same code using vmware's lamp with …

Software Development c++ ubuntu
Member Avatar for integralJill
0
706
Member Avatar for ryan311

how can i get the first name, the middle name and the last name in my textbox? what i mean is i have 1 textbox to input his full name the format is this sample: Nash, Steve B. then i have 3 label, the first label is Your first name …

Software Development visual-basic
Member Avatar for cguan_77
0
103
Member Avatar for okarvian

I've encrypted a file from my local machine, but now I'm looking to make it [B]exe [/B]file. User just [B]double click [/B]on it and a form will be displayed to ask for the [B]password [/B]and [B]decrypt [/B]the file. I don't know how to embed a form with encrypted file. Can …

Software Development file-system
Member Avatar for JerryShaw
0
120
Member Avatar for deerowbear

I am getting an error saying, expected unqualified-id before "template" I can't figure out why I am getting this error. Any ideas? Thanks daiel code below: [CODE]#include <stdio.h> #include <stdlib.h> #include <fstream> #include <iostream> #include <iomanip> #include <string> #include <cctype> #include <sstream> //#include "comparable.h" using namespace std; // enum cmp_t …

Software Development c++
Member Avatar for siddhant3s
0
128
Member Avatar for 00Vic

Hello all. I am a CS major and I am learning recursion right now and have a lab assignment to write a program that uses recursion to evaluate post fix expressions. I have made an attempt at this but I am stuck and need some help. Here is what I …

Software Development c++
Member Avatar for 00Vic
0
2K
Member Avatar for sb3700

Hey I am trying to use Python to control a motor over RS232 (serial ports). It is connected to COM3, and the connection settings are correct (baud=9600, etc). I am using pySerial in Python 2.5. My code is: [code=python] import serial, time # the serial port connections - customise as …

Software Development python
Member Avatar for sb3700
0
3K
Member Avatar for JustLearning

Ok here is the code I am trying to compile remotly on a linux machine I am getting quite a few compile errors when I try to compile this Here is just a sample of the errors I am getting. [code]-bash-3.2$ gcc -o lemastsGCD lemastsGCD.cpp /tmp/cca8g62Q.o: In function `__static_initialization_and_destruction_0(int, int)': …

Software Development algorithm c++
Member Avatar for JustLearning
0
177
Member Avatar for gabec94

Hi, I am new to java and want to play around, I want to make a program that takes in input of lets say 5 numbers, and displays them separated by a space. For example I would enter 12345 and 1 2 3 4 5 would be returned. this is …

Software Development java
Member Avatar for Taniotoshi
0
564
Member Avatar for jaanu.cheruvu

can any1 solve this .....Given a sorted list of infinite size in which first n elements (n is unknown) are finite integers and rest are infinity, write an efficient function that finds a given number in O(ln n ) time complexity.

Software Development c
Member Avatar for jaanu.cheruvu
0
357
Member Avatar for rasingh24

Hi, i have a small project in which on selecting a node in treeview displays attributes in listbox.In treeView1_AfterSelect, the text parsing code depends on the textual representation for a node in the tree view, which can be changed at any time and break the entire logic of list display. …

Software Development xml
0
75
Member Avatar for redean

HI, I am Using VB 6, how do I sent data over the internet to an SQL DataBase

Software Development sql visual-basic
Member Avatar for redean
0
101
Member Avatar for claudiu_is

Hi, Does anybody know how can I return the time format from the system regional settings ? I need something like "hh mm ss" returned ( or whatever the current system time format is) to pass it as argument for FormatDateTime() function along with a given time; I`m using Delphi …

Software Development delphi pascal
Member Avatar for claudiu_is
0
185
Member Avatar for kanodi

Hi guys, I wonder if any of you can help me with my problem.... I am trying to write a script that searches a file that describes a grid of letters, like: [code] wergfdghytr bhgiusuwiee popeldorlfse funwrdtywa [/code] The script uses another file for a word list, where each line …

Software Development python
Member Avatar for kanodi
0
190
Member Avatar for Taniotoshi

Hello everybody I am doing a little code to learn a bit more about C++. Do not be amazed if you find that code useless, it is mainly just for me to improve. :) This is my first C++ program and I started few days ago... [/I]One class is used …

Software Development c++ printer
Member Avatar for Taniotoshi
0
617
Member Avatar for mtramnes

Wrote this max min problem. The output however gives me the correct max but not the correct min. It simply returns 0 for the min everytime. Any ideas what I need to fix? [code] #include "stdafx.h" #include <iostream.> #include <conio.h> using namespace std; int main() { const int NUM_DAYS = …

Software Development c++
Member Avatar for vmanes
0
119
Member Avatar for LateNiteTippin

Okay, don't laugh. I'm [B]very[/B] new to python. Actually to programming all together. I'm doing an exercise where i have to count the number of a string in a word. Ex: count("is", "Mississippi") would be 2. I tried using string.find and was having no luck. So i tried to go …

Software Development python
Member Avatar for LateNiteTippin
0
126
Member Avatar for ChrisP_Buffalo

Hi folks. I'm getting back into learning Python after a few months off, so I'm still a newbie, hehe. I'm using the free online book Dive Into Python. I ran the first program and it worked just fine, but it returned the output in the opposite order of the one …

Software Development python
Member Avatar for ChrisP_Buffalo
0
164
Member Avatar for colmcy1

Hey all, I'm new to C++ and struggling to write a program. I am used to writing in VBA and Mathlab but because I need to run a long run simulation have to rewrite my program in C++. What a am trying to do is if I have a list …

Software Development c++
Member Avatar for colmcy1
0
98
Member Avatar for colmcy1

Hey all, I'm new to C++, much more at home with mathlab or VBA so this is probably a simple problem for you guys. I am writing a program and I want to change values at the end of loop but keep answers from previous loop, i.e. in other programs …

Software Development c++
Member Avatar for colmcy1
0
123
Member Avatar for Norbert X

I just finished another assignment and I can't figure out why this none keeps appearing after you enter a language: [code=Python]while True: print"Hello, how are you?" language=raw_input("Pick a language: french, german, hungarian, dutch: ") if"french"in language: def function(): print"Bonjour, comment allez-vous?" elif"german"in language: def function(): print"Hallo, wie geht es Ihnen?" …

Software Development python
Member Avatar for jlm699
0
128
Member Avatar for abu taher

1. I work with a database project. Now I want to show all data (from a table like 'student name' column) in a combo box. how can I do this. I connect the database by system DSN and adodc control. plese any body help me. 2. If I select a …

Software Development visual-basic
Member Avatar for debasisdas
0
111
Member Avatar for thegreatkk

hi, i am new to .net. i wrote the program for getting information from database. when i click the ok button, the above action is called. and its take few seconds to fill into datagridview.. that time i like to show the busy curser in my windows form. (ie after …

Software Development
Member Avatar for thegreatkk
0
97
Member Avatar for PhiberOptik

Hi guys, I am trying to execute a .jar executable within a java file but nothing happens, no errors, just nothing in general! [CODE=java]public void executeCmd(){ Runtime run = Runtime.getRuntime(); try { Process proc = run.exec(cmd); } catch (IOException e) { //sendmessage saying there was an error } }[/CODE]

Software Development java
Member Avatar for masijade
0
355
Member Avatar for chris5126

Hi, I am writing a script to get information on disks for Solaris 10, does anyone know of a way to print out the size of each disk on the system in MB i know how to get it in GB and could do some number manipulation however it would …

Software Development shell-scripting
Member Avatar for chris5126
0
169
Member Avatar for Norbert X

I've been racking my brain on this problem for like 2 hours. The thing I have to do here is use one single random function for the entire MASH program instead of the usual 4. The problem is, when I get a result, they're all from catagory 1 (married to …

Software Development python
Member Avatar for lllllIllIlllI
0
176
Member Avatar for phillipdaw

The code was written for fun, and it is by far the most complicated program I've written yet. It's also my first step from C into C++. I have some training in algorithms but almost none in coding. It is pretty long and I don't expect anyone to analyze the …

Software Development c++ oop
Member Avatar for siddhant3s
0
106
Member Avatar for Norbert X

Okay so I'm trying to do this programming assignment and my random function isn't working. It's exactly the same as in my other assignments, but it's not working, and I've spent hours searching it. Can someone help me? [code=syntax]import random repeat = 0 while repeat != "no": random = input("How …

Software Development python
Member Avatar for Norbert X
0
133
Member Avatar for newbie_here

Hi all i am having some problem with the logic. can someone help me with it please. i am doing a vb.net project say for example a company has a lot of branches. I need to print the sales report for all the branches. so when printing it should print …

Software Development dataset vb.net
Member Avatar for newbie_here
0
98
Member Avatar for serkan sendur

I installed the xml file comparer tool from this link : [url]http://msdn.microsoft.com/en-us/library/aa302294.aspx[/url] and add the dll to my project and created this application : Default.aspx: [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form …

Software Development web-server xml
Member Avatar for LizR
0
2K

The End.