132,726 Archived Topics
Remove Filter ![]() | |
I have an issue with a section of code that will not work correctly. The first instance work fine but everything after is junk data. [code=c++] int arrivaltime = 0; int servicetime = 0; int waittime = 0; // This section shows the bank wait time for the different branch … | |
I've got this code I need to link together by creating the implementation (.cpp) file for. I've been given main.cpp and a header file. I need help on my Zoo.cpp file, specifically now on the "addAnimaltoZoo" function. Here's what I've got so far... main.cpp: [CODE] #include <iostream> using namespace std; … Software Development c++ | |
When data is put into a .txt file, how do you manipulate it and then output it? (If you're wanting to average some items, or add others, etc. once they're entered into the file.) Software Development perl | |
i created a program that read from a txt file and use getline() to retrive every line from my file. But i wanted to store the digit into list<int>, when i do a print of stl list i get the result which not i wanted. i wanted to have "2 … Software Development c++ | |
I am having problems trying to figure out exactly what is going wrong with my code. I am trying to create a factorial program using an array. I have tried, unsuccessfully, various ways to make it work but I can not figure it out. Any assistance would be appreciated. [code=c] … Software Development c | |
Dear all; I have problem in reading data file in C. I have data like this: 00:00:00 R- 0.0654 345 +19 00:01:00 R+ 1.5678 324 +19 00:02:00 2.3456 315 +19 00:03:00 R- 1.2352 324 +19 ........................ next until 1440 lines What i want is only the data in third column, … Software Development c | |
hey im tryin to get this program me and my mates are writing to work, but for some reason i ge these errors upon compilation im using MSVC++ Express Edition and ive downloaded PlatformSDK because it doesnt come standard with it. [CODE]1>------ Build started: Project: av_bot, Configuration: Debug Win32 ------ … Software Development c++ visual-studio | |
Run-Time Check Failure #2 - Stack around the variable 'board' was corrupted is the error I'm getting. The program generates it's own maze and then will solve it. The error seems to happen after the program is done with EVERYTHING. I'm using Microsoft Visual Studio 2008 beta. [code="c++"] #include <iostream> … Software Development c++ visual-studio | |
I'm having problems getting the MediaCtrl to display at a reasonable size with large videos. When I make it play one it instantly resizes itself to the size of the original video no matter what I set as it's maxsize, which often means that part of the window is off … | |
I'm curious why this bit of code doesn't work. When run it returns a blank line. Note: this is making use of a linux device file so it should not be expected to run properly on Windows. [CODE=python] #!/usr/bin/env python import os infile = os.open("/dev/zero", os.O_RDONLY) charout = os.read(infile,1) os.close(infile) … Software Development python | |
ok my teacher wants me to write a program using these instructions : A small airline has just purshased a computer for its new automated reserations system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the … Software Development c++ | |
This is the program im trying to write: [url]http://farm3.static.flickr.com/2324/2003724328_63220be6bf.jpg?v=0[/url] I have this so far for coding, and its not working. I also get this error "Conversion from string "h" to type 'Boolean' is not valid" Dim totalstandardhalfday As Double Dim totalstandardardfullday As Double Dim totaldeluxehalfday As Double Dim totaldeluxefullday As … Software Development vb.net | |
Hi all, I hope that someone can help me, I have been given a task in work to create a simple VB6 countdown program for a school quiz. The user can enter any given time to countdown to, but when the counter reaches 30 seconds, it opens and plays an … Software Development visual-basic | |
when ı add two panels into a frame last panel i added seen on the screeen how can i show both panels in one frame Software Development java | |
i am using boarland c.and i want to know how to generate random numbers...is there any functions which allow me to do this? Software Development c++ | |
I created a Java class that inserts and updates an Oracle 9i database. I am running single insert and single update statements. The below is what I have been using and was wondering if it is efficient or anyway to improve it: [code=java] public class DbWork { private Connection connection … | |
does eny1 nos how 2 convert 16 bit to 8 bit if so plz tell me, i need a c program for it. thanx Software Development c | |
Hi! everyone I hope u help me! I have a datagridview how will i insert a record through datagrid.... I did't have dataset, staightly stored the database...... | |
Hi, noob on board. I have some issues with the spliting data according to tab. What i need is to grab multiple inputs from a txt file and generate it into result txt file. the input file reads like; Johnny Bravo /tab S1234567 Systems /tab/tab DT012 VB /tab/tab DT234 Adv … Software Development c++ file-system | |
i would like help on how to have people logging on using there passwords to my application in vb6 and access database Software Development visual-basic | |
I have to write a program for school that has user input ten movie titles and their corresponding ratings. This program must use parrallel arrays. There is more to the program but not needed for the issue I am currently having. I cannot seem to get the string for the … Software Development c++ | |
Hello there, I have here a bit of confusion with fread. I have here a .cue file generated in windows. I tried to read through the entire file in windows and when I printed the buffer, it gives me the correct content of the file, but when I read it … Software Development c++ | |
How important are data structures in C++? I'm majoring in networking and going to grad school for MISM with a focus in networking. If I have a firm understanding of C++ concepts such as encapsulation, inheritance, recursion, polymorphism, templates, and exception handling will topics in data structures benefit me at … | |
Could someone explain the difference between Overloading, Redefining, and Overriding functions? A nutshell answer will work fine; I just need something to stick in my brain for tomorrow's test. I know the concepts behind these tools, but I just need a simple way of defining the difference between them. Software Development c++ | |
I am writing client and server programs for a simple FTP. I am allowed to use chdir, getcwd and getenv. What would be a correct procedure to expand a user provided path correctly using these functions, assuming of course the user supplied path is stored in a c-string? Thank you. Software Development c client-server unix | |
Sorry...this turned out to be such a long post.:sweat: Hello. This was originally a problem I was facing with the user interface for my robot, but my latest post was never answered there. Right now I'm experimenting specifically with this problem: verbal raw input. I've posted this problem in another … Software Development python user-interface | |
I am a newbie and have been working on this project for several days. I have received help thus far from Dani and it's been fruitful. The project entails a "memory matching" game with 16 cards, labeled 1-8 in pairs. The cards are "shuffled" and placed face down on a … Software Development c++ | |
i have been fooiling around with my program for class trying to get it to work, but now i get this error message: error C2064: term does not evaluate to a function taking 1 arguments it is referring to this part of the program: num = (rand() + time(0)) % … Software Development c++ | |
can anyone let me know how to deploy a project ? Thank You! Software Development | |
I want to create an application and want to DEPLOY it (to make an EXE file), so that i can write it to a CD , and when i copy the EXE file to another system and click on that file, i should be able to run that application.....................how can … Software Development | |
A common memory matching game played by young children is to start with a deck of cards that contain identical pairs. For example, given six cards in the deck, two might be labeled ā1,ā two might be labeled ā2,ā and two might be labeled ā3.ā The cards are shuffled and … Software Development c++ | |
hi...i'm tryiing to make the picture gold.gif transparent so that i can make some animation on it.cn you please help me to make the picture transparent.thanks in advance import Tkinter from Tkconstants import * import tkMessageBox def window(tk): global photo #### SIC! frame=Tkinter.Frame(tk) frame.pack() canvas=Tkinter.Canvas(frame,bg ='white', width=500,height=500) canvas.pack() photo=Tkinter.PhotoImage(file="gold.gif") canvas.create_image(200, … | |
Gang, I am so confused by all the descriptions of different Visual C++ stuff, API, MFC, I don't even know how to tell you what I am trying to use - other than: I created a Windows Form Application using Visual C++ 2005 Express Edition. I have a textBox1 which … Software Development api c++ windows-api | |
This is the code ive got so far [code=cplusplus] #include <iostream> int main() { int a[10] = {0}; //sets an array of ten zeros int x; //intialises x int y; //intialises y std::cin>> x; //reads in x input std::cin>> y; //reads in y input if ( -1 < x && … Software Development c++ | |
I have to use a recursive backtracking search to solve the classic "bucket" problem. ie. You have two buckets, one holds 5L, the other 3L. Find a way to get 4L into the 5L bucket, while only being able to fill/empty either bucket, or to pour one of them into … Software Development c | |
Before I write this, I realize there are way better ways to accomplish what I am asking, but I am JUST wondering if it is possible to do it the way I am asking. I have a main function called system. The system has a menu and depending on input, … Software Development c++ data-structure | |
I overheard a conversation in a class the other day about someone being able to "look" into various classes and data storage types and see what is being stored as you run the program. I understand this can be done using the traditional ways of adding breakpoints and such, but … | |
Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++. Software Development c++ | |
hi, Iam using tomca,mysql.In my appl ,i wrote a code to upload an image using jps.its working fine in my system.But wen i access my appl from another system(in LAN),iam unable to upload the image.p[lz tell me wats wrong in my code PreparedStatement st=con.prepareStatement("update login set photo=? where uid=?"); File … | |
i just received some help from zandiago it his help was great and i thank you. when i incorporated the info into my program i received an error when building the solution. it was only one error. it was error C2447: '{' : missing function header (old-style formal list?) the … Software Development c++ | |
I am having great success with using an access 97 database & VB6. what other database options do I have? with access 97 it is a problem to have mutilple users even looking, printing data because this will corrupt some records if more that one person even looks at the … Software Development visual-basic | |
Hey I'm trying to add information to a listbox, but when i try this code it doesn't display it properly. Dim fmtstr As String = "{0,-10}{1,12}{2,14}" With lstservices.Items .Clear() .Add(String.Format(fmtstr, "Room Rentals", "Half-Day", "Full-Day")) .Add(String.Format(fmtstr, "1. Standard Rooming", "$32.00", "$65.00")) .Add(String.Format(fmtstr, "2. Deluxe Rooming", "$72.00", "$144.00")) End With I want … Software Development vb.net | |
20 student apply an exam, the mark of the exam is out 10, write a C++ program to do the following: 1- read students grades and store in student _ grade array. 2- find the frequency (number of occurrences of each grade. 3- find the mode (number that occurs most … Software Development c++ | |
How to choose one element from each array., Which A(i)+B(i)+C(i)+D(i)+E(i)+F(i) must equal to 10. __________________________________________________ i A B C D E F __________________________________________________ 1 3 2 3 3 2 4 __________________________________________________ 2 6 9 4 24 5 7 __________________________________________________ 3 11 28 5 81 10 12 __________________________________________________ 4 18 65 … Software Development c++ | |
Hi everyone. I am a very new in this forum!! I create a little code in c to generate a time series!! Is a file .out, and I canĀ“t open it in an Spreadsheet, opens automatically on Word Processor, even when I try to open from the Spreadsheet [QUOTE] 1 … | |
Hi all, i'd like to ask anyone here who may help me solve this problem i compiled an apps which records when is the last time user make an input, either with keyboard or moving mouse, thru' GetLastInputInfo API however, this can't works whenever user logged on as different using … Software Development api c++ windows-api | |
Hi Guyz, I had to create a program w/c objective is to omit a certain tag in xml file. the only thing in my mind is to search and get the length of the tag. my problem is what if that tag had a certain sub fields: [QUOTE] <team> <cell1 … Software Development c++ objective-c xml | |
I'm a newbie teaching myself C, can anyone show me how to write a code that generates the next license plate number when you input one containing 6 characters 3 letters and 3 numbers, and asks the user if they want to continue or quit. Thank you Software Development c |
The End.