132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ccrobinson001

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 …

Software Development c++ ios
Member Avatar for zandiago
0
115
Member Avatar for balla4eva33

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++
Member Avatar for balla4eva33
0
177
Member Avatar for kahaj

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
Member Avatar for KevinADC
0
99
Member Avatar for picass0

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++
Member Avatar for picass0
0
96
Member Avatar for DennisB

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
Member Avatar for Narue
0
8K
Member Avatar for marzuki

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
Member Avatar for marzuki
0
134
Member Avatar for Slavrix

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
Member Avatar for Slavrix
0
186
Member Avatar for Scotty Turbo

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
Member Avatar for vijayan121
0
203
Member Avatar for animatinator

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 …

Software Development python video
Member Avatar for woooee
0
198
Member Avatar for mn_kthompson

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
Member Avatar for woooee
0
892
Member Avatar for neilyan

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++
Member Avatar for neilyan
0
108
Member Avatar for Magnusz

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
Member Avatar for Magnusz
0
129
Member Avatar for chris con

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
Member Avatar for chris con
0
154
Member Avatar for enes

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
Member Avatar for masijade
0
93
Member Avatar for codder

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++
Member Avatar for joshua.tilson
0
108
Member Avatar for chicago1985

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 …

Software Development java oracle
Member Avatar for jwenting
0
88
Member Avatar for badbloodyeyez

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
Member Avatar for Nick Evan
0
661
Member Avatar for toadzky

I am trying to write a fairly simple app for a Dell Axim running PocketPC 2003 and the Mysaifu JVM. I'm using NetBeans to develop the app. NetBeans emulators (weak as they are) can run my app just fine. But when I try it on the PDA I get a …

Software Development java
Member Avatar for pavithran
0
92
Member Avatar for saravanarajan

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......

Software Development dataset vb.net
Member Avatar for saravanarajan
0
60
Member Avatar for phasiro

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
Member Avatar for phasiro
0
126
Member Avatar for ten

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
Member Avatar for debasisdas
0
87
Member Avatar for Koldsoul

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++
Member Avatar for Salem
0
104
Member Avatar for jaepi

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++
Member Avatar for ithelp
0
131
Member Avatar for Duki

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 …

Software Development c++ oop
Member Avatar for Duoas
0
112
Member Avatar for Duki

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++
Member Avatar for Duki
0
6K
Member Avatar for Ratte

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
Member Avatar for Duoas
0
139
Member Avatar for Seagull One

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
Member Avatar for jrcagle
0
226
Member Avatar for guitarrick

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++
Member Avatar for Duoas
0
98
Member Avatar for dblbac

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++
Member Avatar for maxmaxwell
0
126
Member Avatar for suman@sdsu

can anyone let me know how to deploy a project ? Thank You!

Software Development
Member Avatar for mariocatch
0
121
Member Avatar for suman@sdsu

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
Member Avatar for mariocatch
0
150
Member Avatar for WillEthin

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++
Member Avatar for Duoas
0
818
Member Avatar for sam63

What is a really good book to read for great stuff on C#? I am a basic to mid level enthusiast ........ Ssam............

Software Development
Member Avatar for binoj_daniel
0
100
Member Avatar for nish88

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, …

Software Development image python tkinter
Member Avatar for woooee
0
305
Member Avatar for holeejo

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
Member Avatar for sillyboy
0
288
Member Avatar for sean25hun

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++
Member Avatar for Lerner
0
95
Member Avatar for tehloki

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
Member Avatar for Salem
0
80
Member Avatar for Ratte

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
Member Avatar for Duoas
0
153
Member Avatar for Ratte

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 …

Software Development c++ storage
Member Avatar for Narue
0
113
Member Avatar for Ccrobinson001

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++
Member Avatar for Ccrobinson001
0
97
Member Avatar for balagangadharm

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 …

Software Development apache image java session
Member Avatar for jwenting
0
95
Member Avatar for dblbac

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++
Member Avatar for dblbac
0
118
Member Avatar for RonR

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
Member Avatar for choudhuryshouvi
0
110
Member Avatar for Magnusz

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
Member Avatar for Magnusz
0
141
Member Avatar for Mussa AL_Zyod

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++
Member Avatar for Ancient Dragon
0
111
Member Avatar for nurulshidanoni

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++
Member Avatar for darkagn
0
117
Member Avatar for Paulville

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 …

Software Development c suse
Member Avatar for Ancient Dragon
0
103
Member Avatar for Garock

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
Member Avatar for Garock
0
166
Member Avatar for eXceed69

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
Member Avatar for Salem
0
110
Member Avatar for banditt_77

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
Member Avatar for Salem
0
162

The End.