132,726 Archived Topics
Remove Filter ![]() | |
I am creating a program to manipulate structures that are similar to linked lists. The problem i am having is in a text file that i am reading in there are delete lines like this. d 1 2 d 2 3 d 3 4 d 2 0 with the first … Software Development c++ linked-list | |
I am having a problem reading a date format in a file I am trying to count the difference between two dates. the format I have is 010108. I tried to break up the date mmddyy but have run into other errors. [CODE=python]import datetime as dt # US format month/day/year … | |
Can one of you gurus give me some help please. I am a new programmer so please bear with me. I have a header file called Deck.h and a cpp file called Deck.cpp. In my header file, I have a class called Deck which has prototype function called createPack as … Software Development c++ file-system | |
[code=c+] #include <iostream> #include <string> using namespace std; int main() { string a; cout<< "enter string" <<endl; cin>> a; string b; //======================================================== for (int j=a.size(); j>0; j--) { for (int i=0; i<a.size(); i++) { b[j]=a[i]; } } cout<< b <<endl; return 0; } [/code] i want the first character on … Software Development c++ | |
here is the error I am getting _Default.CalculateFederalTax(double, string)':not all code paths return a value code: double CalculateFederalTax(double grossPay, string taxStatus) { // Calculate Federal Tax method begins // check for the Federal Tax status (Single) if (taxStatus == "S") { if (grossPay < 240) return grossPay * 0.12; else … | |
hi, can u tell me y linker gives error when we try to define a variable in a header file and include this in more than one source file? [code] /*test.h*/ int i =0; /*1.c*/ #include "test.h" i++; /*2.c*/ #include "test.h" i++; [/code] whereas the same works fine if i … Software Development c | |
Hi. I used [B]Infopower[/B] for a long time but I can't afford to upgrade it to Delphi 2007. With Infopower I got TwwDBLookupCombo that allowed me to display a value, for example, a text ID, while updating the record with an internal ID. To place the component into the grid, … | |
Hello Geeks, I am working on a program for date,month calculation. I found this code used to convert to Gregorian format for calculation. It would be great full for me if anybody can explain this ... like 0.75 yy/4 .4*mm what are these constants why m-1, yy-1 etc.. [CODE] long … Software Development c | |
Q- Use swapping concept to swap the elements of 1D array consist of 10 integers. Ask the user to enetr the values of array elements then print them out to the screen before and after swapping. e.g. a[0] ----> a[9] a[1] ----> a[8] a[2] ----> a[7] a[3] ----> a[6] a[4] … Software Development c++ | |
I'm sure my problem is pretty simplistic, however, I'm having issues with it. I'm trying to add class objects to an arraylist. Are there any good tutorials for this or any good pointers? I would post some code that i have but i need to first see the guidelines for … Software Development first-post vb.net | |
I'm trying to create an array that will hold the first name of 100 users I tried char fname[100] but I realized that only creates an array that hold 100 char. how do you create an array to hold 100 entries that has a max of 50 chars in each … Software Development c++ | |
Hi all my friends, As i'm beginner in VC++, i encountered a lot of problem in debugging. I think my knowledge and academic studies should be distinguished properly. I know only c++ but i have OOP knowledge in c programming. But i am not able to handle the debugging in … | |
I have never posted anything in here for java so if I don'tuse the code tags right I apologize...anyways I compiled an assignment in text pad and have a ton or errors and I was wanting to know if it is something minor or I am really that stupid...thanks Here … Software Development java java-swing ![]() | |
I am trying to match a string to see if it follows a given pattern. I have seen this example in my Orielly books but do not understand the logic. Here is the a small snippet of example code: [code=cplusplus] const string digits("0123456789"); const string float_digit = digits + '.' … Software Development c++ | |
I am in the process of making a bank account class. I need to put a copy constructor to compare the checking and savings account. Also I need to learn how to insert the checking and savings accounts. I need an assignment operator to assign the checking account to the … Software Development c++ | |
I have a function which have return type DataRow and the parameters for the fucntion are the parameters for the stored procedure. I have to execute the Stored Procedure with given parameters and populate the datarow so that the return will be the populated DataRow with the output of the … Software Development c# | |
Hey everyone. Before i start i'm writing up this code for my mothers employee database. I have attached two files. An example of how it's going to be run through a picture and the employee database which is a .txt file containing data such as first name, last name etc. … Software Development c++ file-system | |
I don't know about C, but I read that C++ doesn't have any "standard" library for networking stuff. I was wondering which libraries for C were more popular or higher acclaimed. And who better to ask than the experts themselves? Many thanks in advance diode Software Development c | |
I have write a code to read data from a file and i try to put it in a queue but i don not know who to put in th queuue.IS anybody who can give an example??? my code is bellow: [code=c] if((fp=fopen("read.txt","r"))==NULL){ printf("\nERROR OPENNING THE FILE"); exit(1); } while(fgets(line,100,fp)) … | |
Hey, I am currently trying to read a text file, which looks something like this: 1 2 3 4 . . a b c . . . I would like to read the integers and characters into the same array. I tried using a char, string.. hoping that it would … Software Development | |
Hi I have a homework program to convert from postfix to infix, almost most of the functions are done but i can't make few functions to make the program run correctly Please help me finishing the remaining functions Here is the code [CODE]//------------------------------------------------------------------------------------------------------- // NextToken.h #ifndef NEXTTOKENH #define NEXTTOKENH #include … Software Development c++ | |
Ok i am writing a program to manipulate structures that are similar to linked list. I have a file that has these contents. 4 5 0 0 0 0 1 0.1 0 2 0.2 0 3 0.3 0 4 0.4 1 0 1 1 1 1.1 1 2 1.2 1 … Software Development c++ file-system linked-list | |
Hi there! I'm new to Java and just arrived at this forum. I hope I can get some help here - getting a little desperate. Well, I have to develop a small game in Java and in this game the user must be able to click on different spots on … Software Development java java-swing | |
Hello all, I am having a bit of trouble overloading the [] operator on a template based LinkedList class. Could you all tell me what I am doing wrong? Thank you so much. Basically it is to provide my template based linkedlist class to act as a normal array. Here … Software Development c++ | |
Hi, I'm writing in python for s60 (nokia cell.) and working with Canvas and Image, while i'm moving through the image using: [CODE]canvas.blit(image, source=((sourceLocX, self.sourceLocY), (sourceLocX+ canvas.size[0], sourceLocY+self.canvas.size[1])))[/CODE] i can't seems to zoom in/out, I looked into Image and Canvas documentation and still don't understand how to do that... anyone … | |
Hi, I'm trying to 'reduce' a vector using the erase algorithm within a for loop. The idea is to scan a table looking for equal successive elements. Once equal elements are found, it erases one of the 2 elements. I'm suspecting a problem in the for loop, due to the … | |
Ok guys, our C++ class is winding down and for our last assignments we are getting some tough problems. We are asked to write a telephone directory program that looks up phone numbers from a separate file that contains a list of names & numbers. The program should prompt the … Software Development c++ | |
Hello everyone! I am writing a function to multiply two matricies together. I have written a simple algorithm for a matrix 3x3 - [CODE]void multiply() { int a[3][3], b[3][3], c[3][3], i, j , p, val = 0; a[0][0] = -1; a[0][1] = 0; a[0][2] = 1; a[1][0] = 5; a[1][1] … | |
On my attachment have the table I want to know how to make the comparison like: [COLOR="Red"][B]DUE_DATE_TIME + DURATION(in hours) <= OVER_DUE_DATE_TIME[/B][/COLOR] If the above statement is wrong then must prompt out the message box: (I'm also need help in how to prompt out the message box, Thanks) Can yours … Software Development | |
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct … Software Development java | |
I am very new to programming in general, and of course, it follows: to Python. Yet, I am in desperate need of a particular database program, and I am attempting to write it via objects, since I need to learn the ways of OOP anyway. I am currently trying to … | |
I know there is a function that if you put the mousecursor over a buttoncontrol, it is possible to have a litte "window" that occur over this button that tells what this button does. I have looked into the members and seen something like this. I am not sure if … Software Development c++ | |
hi everyone for my comp sci class i'm supposed to write a piece of code which will take in 10 ints and put them into an array of such size. unless the input is either a 3 or 7 in which case wats left of the array will be written … Software Development c++ | |
I have a general wondering about std::vector<string>. If you declare something like this, I have set 1 million elements to this vector. If I run this program just declare it like this without filling the elements with any strings. Does this take up any RAM memory just because I have … Software Development c++ | |
I am creating a program on eclipse with multiple classes, using polymorphism. When I compile, I got the following error....Make:***[5] error 1, undefined symbol: do someone know what it is? Software Development c++ | |
how can i search a word from the whole database using search button?and the result appear is the page of the words?need help... Software Development vb.net | |
Fair warning, I'm new at this. I'm having trouble getting a submission form to work. The end result now is that it will submit, but the submission never reaches my e-mail. Please tell me what I'm missing from the following code. [code] <form method="post" action="mailto:phoenixsociety3806@yahoo.com"> <td align="left" valign="top" style="font-weight:bold;">YOUR NEONAME</td> … Software Development | |
hey i need your help in creating a map using C# could you help me ???? NOTE this map should be an undirected graph Software Development | |
Hi there, i'm from Malaysia. first of all, i would like to say that I'm quite bigginer in Java programming. However, I had released my own virus based on Java last month. I feel too stupid to release it. So, I need your help to open the door for me … Software Development java | |
Hi All, I am writing a little program that i should be able to get working i think! basically i have this file full of content and i want to search it for a list of words. And add to a score variable each time i find a word [CODE] … Software Development file-system python | |
HI I m using excel as a database.. In my DB i m having fields name and some value assigned to each name.. Now on my jsp page i m generating an array of names by some processing.. Now what i want is to access the names from the DB … Software Development java | |
dear all, wat should i do to clear the input buffer stream? and also make me clear regarding flush and fflush. both do the same functions? Software Development c++ | |
I have some question on structure padding Can any one help me! Structure padding is done for alignment(is it right) 1. Why is it to be aligned? [CODE] 2. struct sfoo { int a; char i; } sizeof(struct sfoo) = 8 // 4+1+3(padding) struct sfoo { //int a; char i; … Software Development c data-structure | |
i am trying to develop a database management software.using MS ACCESS 2003 as back-end and VISUAL BASIC 6.0 as front end.. i am having a problem..can any one help with this.. [B]i have typed the code below in a module for the connection to the database...and connection to the record … Software Development microsoft-access open-source visual-basic | |
hi im new to the forums, im am currently making a rota and am having problems. i can add new objects to the queue and remove an object from the queue, but i cant seem to get the "names" to go from the front of the queue to the back … | |
Hi All, I've some excel programs. I want to attach those programs to my vb.net application. Is it possible? If yes then How? If its possible then can the excel file be editable? Software Development vb.net | |
when I wont to inser (anyting I print) to the textbox it will not inser it just print then hanging [CODE]# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words … | |
I am working on a program designed to map a networked drive to a Linux Samba share. I have been requested to give the end users a way to select what drive they want to map. I know that some drives are off limits for use; (A:, C:, and the … | |
when i running this program, i've found that one of the used integer always over load. that is int outq. could someone please help me find out what's make this integer over load at last? thanks. [code=cpp] #include <stdio.h> #include <stdlib.h> #include <time.h> #include <fstream> #include <iostream> #include <string.h> #include … | |
This program you are supposed to enter the amount owed the amount of money paid and get the change due. then take the change and tell the used how many dollars, quarters, dimes, nickels, and pennies due in change. i can not figure out where my calculations went wrong. Does … Software Development vb.net |
The End.