132,726 Archived Topics
Remove Filter ![]() | |
First I'll explain what I'm trying to do. I am programming an airline check-in line. I am using a queue ADT to represent a the line. The data type of the a queue is a pointer to my Customer class. In my Customer class, whenever a customer leaves the line, … | |
Hey Guys! I have a weired one here, it must be a post-test loop, and here is how result has to look like: Enter the Section Code: 0 Invalid value entered. Must be 1 to 4, please re-enter: 1 Enter the Student's ID: 456789 Enter mark#1: 10 Enter mark#2: -20 … Software Development c | |
This is my current coding, in my header file [code=c++] #ifndef _ADDRESSBOOK #define _ADDRESSBOOK const int MAXADDRESS = 25; struct PERSON { char fName[25]; char lname[25]; char Address[100]; }; class addressBook { private: PERSON people[10]; public: addressBook(); addressBook(char *fName, char*lname, char *add); addressBook(PERSON a); addressBook(PERSON init[], int count); bool addPerson(const … Software Development c++ | |
I'm trying to make this program work like a game of BlackJack. However, the program will not listen to me when I try to end the loop. does anyone have any sugestions on how to fix this program? [code] #include <iostream> #include <ctime> using namespace std; double card = 0; … | |
Hi folks, I'm learning python this year, and I need a bit of help on an assignment. My program is supposed to be able to read from a file, which contains student numbers and their scores and it is supposed to compute their individual averages and the class average and … Software Development python | |
Hi again. I wrote 4 instances of a structure to a .dat file. I called them north, south, east, and west. I created a new program to read that file and display the data. I am using the below loop. I am trying to JUST read the north data. I … Software Development c++ data-structure | |
what are available database management systems to use with c applications? Software Development c | |
i basically want to open a .cpp file modify it and save it. how do i do it using korn shell in unix? Software Development shell-scripting unix | |
Howdy guys. I have a program that encompasses creating a Fraction class. In the Fraction class should encompass addition, subtraction, multiplication, and division, and printing out the fraction. For some reason, UNIX hates my cout that I am using in my print. Here are the header and implication files for … | |
I need help to get started with this. Any one that knows any examples I can get inspire from? :) Im going to create a game that plays Memory. The user should try to solve a 6x6 matrix by matching words in different cells in a matrix.It should look like … Software Development python | |
Hi guys,can any one help talk on how to deploy a phone application directly into the phone device using .Net Comapct framework. Software Development | |
im trying to time stamp this code to plot a graph base on different array size eg 100 0.454sec 1000 0.467sec etc but so far im only getting 0's no matter the array size and id also want to find out the amount of comparisons made before the search key … Software Development java java-swing | |
Here is the Quesion :: I want to write a program that estimates the value of the mathematical constant e by using the formula: `e = 1 + 1/1! + 2/2! + 3/3! + 4/4! + ………+ n/n!` Here is my Answer: #include <iostream.h> int main () { double x … Software Development c++ | |
would a connect 4 game really be hard to make with like a 5x5 board if you make it from scratch and without the help of some premade libraries? need an answer asap cause i need to decide whether i would continue with my connect 4 game or change it Software Development c++ | |
helo guys! i need some quick help... now i doing an internship and apparently i need to program a window application for my employer. at first i didnt think it was so bad because i already learned c++ in my university. But as i got deeper into the project, it … Software Development visual-basic visual-studio | |
Is it possible to execute Perl code from java script? I have installed apache-tomcat for the same. In which folder should I paste the html file and the Perl file (uses cgi module) ? Software Development java javascript perl | |
My procedure works perfectly when there is another instance of my program running but otherwise it gets stuck in a constant loop. I've tryed all sorts and came here as a last resort. There's not really much else I can say so here's my code: [code] {*Finds and ends previous … Software Development pascal | |
I have 3 instructions- 1- Use rand() to generate a number less then 100 and greater than 1 2- Call the prime() function to test the result 3- Print out the result So far i have found how to get a prime number but don't know how to fill up … Software Development c++ | |
i have made this program for creating and traversing binary search tree. for inorder, it is working well but for post and pre order it showing wrong results .i could not be able to get the problem .could some one please tell me problem regarding this program .it is written … Software Development c++ | |
hi my remove node is not working....can someone help me correct it // Polynomial.java public class Polynomial { private int degree; private Node head; public static Polynomial addPolys(Polynomial poly1, Polynomial poly2) { Polynomial polyRes = new Polynomial(); int power = (poly1.degree > poly2.degree) ? poly1.degree : poly2.degree; while (power >= … Software Development java | |
hi there i'm new here i hope you can help me through this homework i've read like 14 pages of topics about seekg and fstream.. and well.. they didn't solve my problem. my homework it's about creating a text file from "b to z" without the vocals, then reopen the … Software Development c++ file-system ios | |
Hi All. I've compiled my code in Turbo C++ in a WinXp machine, Will i be able to execute the compiled code(.exe file) in Windows server 2003 or Unix Machine.If yes, is there any libraries or software i need to copy on the other machine. Thanks in advance Software Development c unix windows-server | |
An application from Delphi 1 (16 bit) has been transfered into Delphi 2007. The Delphi 1 program has created files with the following type definition: [code=delphi] type codePost = record code : integer; {code 3 figures} value : longint; {value 6 figures} data : string; {Data max 30 chrs} date … | |
Hi, Sometimes I get some red lines in the D2007 editor, under parts of the source code. See attached image. What do they mean and what action should I take? Software Development pascal | |
ok so what im trying to do is to read some text from a file. Put them into an array. And count the number of characters in the text file using pointers to access the array. However, when i compile i get an error for this line [B]check = isalpha('*text');[/B] … | |
hi everyone, im having problems with my loop in my assignment im working on. im not tryin to get the code from you guys. but would like some pointers on what im doing wrong. im tryin to figure out why my "else" code wont work? i've tried to look for … Software Development c++ | |
I am currently embedding python in a C++ module. I have a problem in that one of the functions I am trying to build must be capable of accepting various structures for processing specific commands. The function should be declared in C++ as follows [code] void Write(char *cmd, void* mystruct, … Software Development python | |
Hello there, been researching and doing some Windows Service development these days. I want to take my learning in to a higher level, I want to make a simple windows service that listens all the time and detects if a usb is plugged. What API should I use? Any suggestions … Software Development api windows-api | |
i have been having trouble searching string for a specified char. I have been using the string.indexOf(char) but that only gives me the index of the first instance of the char not all the index values of the char. for example.. [code] string wordToSearch = "adadda"; if(wordToSearch.indexOf("a")) != -1) messagebox.show("letter … Software Development | |
hi guys... i am working on image processing using MATLAB. I have to devise the code so as to detect any tampering in a given image, The tampering may be of any form. In case any of you has any links related to image tampering, or if you have worked … Software Development image | |
hi i am trying to count the occurrences of different words in a string array. while(end of array) { while(end of array) { compare ith element with all other elements inc counter } increment the element number } but i guess something is terribly wrong here as i am not … Software Development c++ | |
im brushing over some of my notes for a midterm tommorow. questions i have when i was reading: what exactly does a parameter do? i know it passes a value to a function-but how is it always like that? or is it more complicated than that? is it kind of … Software Development c++ | |
Hello Friends, i want the value of 17732 shr 8 Thanks, Software Development pascal | |
What are the benefits of using the Conditional operator (?) over a traditional if/else statement or similar? Using ? seems to lower readability in some cases but anything else? Software Development c++ | |
How can I use the Exceptions I have created below in the Cinema class? [B]//IllegalAgeException class[/B] [CODE] public class IllegalAgeException extends Exception { /** * Creates a new instance of <code>IllegalAgeException</code> without detail message. */ String exception; public IllegalAgeException() { exception="Unknown"; } /** * Constructs an instance of <code>IllegalAgeException</code> with … Software Development java | |
Hello, have anyone tried copying files from a remote server via FTP using VB Given: FTP Site FTP Password >>> the task is to copy files from the remote server to another machine thanks Software Development visual-basic | |
Hi Everyone, I am looking for Secure Ftp ActiveX component in Vb6 to use it in a command line program. Please , if anybody have an idea how to get it free or how to create it. Thanks, Bryan. Software Development visual-basic | |
I would like to create an application that would, after manipulating a text file, log on to a private FTP site and PUT that text file onto the server, and then logout. I have the code to manipulate my text file and make it ready for sending and I have … Software Development visual-basic | |
ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the "_h" has the history of previous shift sales. the two tables both contain … Software Development java | |
I have loaded a map in picture box, but I can't move around it (to see the whole area of the map) Can someone help me... Software Development vb.net | |
Hello, I'm pretty new to C++ and I've been trying to this program to open a file and check if it exists for the last two hours. It seems like it should be so simple but it keeps eluding me. Here is the code in main that starts to run. … | |
I would like to be able to find out the pitch of some audio recorded in a wav file and want to know the best way to go about doing this. I am using VC++ 2008 | |
Hey there, everyone. Here is the question I had to write code for: Include the following code: char test[15] = {‘T’, ‘h’, ‘i’,’s’, ‘_’, ’i’, ’s’, ‘_’, ’a’, ‘_’, ’t’, ’e’, ’s’, ’t’}; for (int row = 0; row < 15; row++) { cout << test[row]; } Add the code … | |
int numberArray [9][11]; write a statement that assigns 145 to the first colum of the first row of this array. write a statement that assigns 18 to the last col of the last row of this array this is what i have [code] numberArrray [1][1] = 148; numberArray [9][11] = … Software Development c++ | |
If I have these function variables: int (*f)(int); int (*g)(int); int (*h)(char); why can I do the assingment f=g but if I do h=g the C compiler gives me warning while the C++ compiler gives me an error. Can any one please explain this to me. Software Development c++ | |
Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list … Software Development python | |
i wanna put all my variable initialization at a header file.. but after i put in a header file name, "variable.h" i #include "variable.h" in main. but it still cant reconize the variable. what can i do? + extern infront all the variable in header file? Software Development c++ | |
I am a beginner I spent many hours studying c++ books and online tutorials, I am sure I am competent enough to become a good programmer but I cant wrap my mind around how c++ (or any programming language for that matter) works. My question is, How do I understand … Software Development c++ | |
I pretty much got my assignment working except for one part, I need to reverse the output if the user enters "-r" in the command line. Can anyone help me with this? EDIT: By reverse I mean list the last child first down to the original process. [code] int j … Software Development c | |
Okay heres my code... [ICODE] for swipeload in range (0, 15, 1): "E"+str(swipeload)+"_Path" = os.path.join("data","E"+str(swipeload)+".gif") "E"+str(swipeload) = pygame.image.load("E"+str(swipeload)+"_Path") [/ICODE] So basically I have a bunch of images called "E1, E2, E3, E4, etc..." and I want to load them all into the cache without having to type the code for … Software Development python |
The End.