132,728 Archived Topics
Remove Filter ![]() | |
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++ | |
Read this; enjoy. [url]http://ociweb.com/jnb/jnbMar2009.html[/url] Software Development | |
Hi Guys. I wrote a nice MFC application. This app uses a number of threads and is meant to manage rs232 communication with a microcontroller. When I send or receive data Visual Studio informs me of a [B]Memory Leak[/B]: Detected memory leaks! Dumping objects -> f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp(306) : {184} client block … Software Development c++ data-structure visual-studio | |
Hi, I am using Visula C++ and building LinkedList. But I am studk. Please look at this if goes something wrong. Please mention it. Their are are two classes I am using for it. The first it Data Class and other one is Node class. Note that both classes are … Software Development c++ | |
Hello I need the user to input for example a time format HH:MM(AMorPM) or a complex number format: X+jY Then I want to read HH in and int and MM in another int and the same for the complex number example. I am aware I should use delimiters, but i … Software Development c++ | |
hi all,i have a java project, i want to read records from a data base(access) and then put them in a container with check box within each record..but my code is only displaying the last record of the table..i want each record to be displayed on a line..please help me … Software Development java | |
I am writing a program for a class and I am having a problem that seems very simple yet I can't place my finger on it. I have to decode a message and everything decodes right except what is already there and should be showing up in the output which … Software Development c++ | |
Hi guys, I wonder if you can help? I'm keen to get started as a .NET programmer. I'm half way through a book called 'Head First C#' which deals with Windows Forms programming. However, I think I need to go on a different tack in order to pass the first … Software Development visual-studio | |
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 | |
Hi All, I am trying a simple program in PERL, but unable to get it working [CODE] $log="test.log"; open(LOGFILE, $log) or die("Could not open log file."); foreach $line (<LOGFILE>) { chomp($line); if($line eq "Raghu") { print "Found a group\n"; $var=<LOGFILE>; chomp($var); print "$var\n"; } } [/CODE] Whenever the line contains … Software Development perl | |
Okay I am writing a program that, in the end, will bring up a GUI window and ask the user what type of shape they want to make. The choices are line, circle, ellipse, rectangle, and polygon. When the user selects a shape they are then asked some key information … Software Development gui java java-swing | |
I seem to have done something wrong, but I can't figure out with it is. Everytime I compile I get the error `"reached end of file while parsing"`. Can anyone help me find where this error is? public class ElectricBill { private double k; private boolean s; public ElectricBill(double pKwh, … Software Development java | |
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 | |
i have a class with 10 object and each object have a random position like (x,y) now i wand a code that do not put object in same position please complete my code [CODE] #include <iostream.h> #include <time.h> #include <stdlib.h> class chess{ public : chess(); private : int x; int … Software Development c++ | |
hi.. i'm trying to creat a game on c++ that store some words with at least seven letters in an array, and to randomly select one word and jumble up the letters and display the jumbled-up word. like.. PROJECT can be jumbled-up as CJEROTP The player has to guess the … Software Development c++ | |
Here is some code I have been working on for an assignment, basically it finds prime numbers in between two variables-in any case, I have been trouble figuring out a way to restart the program based on user input. Basically the user inputs y to restart and n to quit. … Software Development python | |
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 … | |
Greetings; I would like to install Python, wxPython, XRCed, BoaConstructor : I installed Python 3.0.1 : but which version of the others go together with Python 3.0.1? Maybe I should backup with Python, but I don't know. Please Help. Thanks! ...Vern Software Development python | |
Hi all, I'm a beginning CS student and am working on an assignment today and am hoping someone wouldn't mind checking my work. I've typing out each assignment problem followed by the code I wrote. Also, please note I'm not required to write complete methods just the code for the … Software Development java | |
im a noobs in c++.. and my problem is i cant calculate the total,.. here is my program.... i use MSVC++ 6.0.. i hope you can solve my problem..thank you!!. [CODE]#include<iostream.h> void line(); void main() { cout<<"\t\tlist of foods:\n\n1. Yum..............................P49.00\n2. Yum w/ Cheese....................P59.00\n3. Yum with Mushroom and Cheese.....P66.00\n4. Amazing Aloha....................P88.00\n5. … Software Development c++ | |
I'm teaching myself c++, and after searching around on the forums, I couldn't find an answer that helped me with this specific problem. The idea is to collect the first name, last name, and SSN of a customer, and create a file using the first three letters of the first … Software Development c++ file-system | |
I plan to start learning shell scripting but I want to start with the one I can use. Is there anyway to find out which type and version of shell program XP uses? Is it DOS, PowerShell? Software Development shell-scripting | |
hellow everyone, can u please help me.... just a code fragment in C... the program is designed to add fraction... the user should input like this: enter the fraction to be added: 1/2 1/4 the answer is: 3/4... tnx... :) Software Development c | |
[code] bool operator>=(const ElementType &e1, const KeyType &key); [/code] I am trying to overload >= which compares the a string in struct e1 with a string. When I compile I get an error that: 'bool operator>=(const ElementType &e1, const KeyType &key);' must take exactly one argument ...I understand that the … Software Development c++ | |
I have an assignment I'm working on in C but I didn't want to ask for any code specifically. I just wanted to ask about the methods to use. The program reads a text file where it tells you the number of values to hash. The hash function is completely … Software Development c linked-list | |
Hi, I am getting a segmentation fault at the following line in the code. I am reading a file using ifstream. The file contains some initial junk data followed by useful data. I wish to read and discard the junk data from the file, before I read the useful data. … Software Development c++ | |
Can anyone tell me.How should i update. i am trying to to a new record if the Supplier_id Doesn't exist, Then i need to do a Select Statement.if that Supplier_id is in the database already,then i want to update method.i havewritten a code .Here is the code what i have … Software Development visual-basic | |
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 | |
hi, ive got a text file which has multiple lines, how can i display all the lines? [CODE] BEGIN assignfile(filea, user); reset(filea); while not eof(filea) do BEGIN readln(filea,textstring); writeln(textstring); end; closefile(filea); readln; END[/CODE] Thanks Software Development pascal | |
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++ | |
Hi All, I need a bit of help with a java Dots and Lines game i am developing, Similar to the Dots and Box game. I have laid out the Dots with the two colours blue and yellow which change accordingly. I now need to draw a horizontal or a … Software Development java | |
Hey everyone, I've got a problem with my program and don't really know how to fix it. The program is a simulation Game of Life and has these rules: 1. A new cell is born on an empty square if is surrounded by exactly three neighboring cells 2. A cell … Software Development c++ data-structure storage | |
Hi, does anyone know how to read the specified line from a text file? And by create a program, we can load what is write inside the text file and read line by line to show at the program. Does anyone have idea on it? Thanks and regards Rainny Software Development java ![]() | |
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 | |
i have to do this, and my lecturer is such an ass asking us to learn it by ourselves. i have tried a code but it not working the way it is suppose to be. (Airline Reservation System) A small airline has just purchased a computer for its new automated … Software Development c++ | |
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)': … | |
I want to connect the access database to the c++ project. What are the requirements of this? How to connect that? Give the example. Software Development c++ | |
hi... plz solve this .. actually binary search takes two tests inside the side the loop . Now i want with one comparison inside the loop. [U]Question is[/U]: [B]Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside.) Write a … Software Development c | |
I am trying (unsuccessfully!) to code the game of life for an assignment, I am very new to C programming and am finding it very difficult. I am at the part where the program needs to count how many cells are live/dead and I thought it would be a good … Software Development c | |
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 |
The End.