43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 = … | |
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++ | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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(); … | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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)': … | |
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 ![]() | |
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 | |
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 | |
HI, I am Using VB 6, how do I sent data over the internet to an SQL DataBase Software Development sql visual-basic | |
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 … | |
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 | |
![]() | 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 … ![]() |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 |
The End.