199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for superrg86

I need to do a stack of strings but im getting problems can anyone help heres what I have so far: [code=cpp] #include <iostream> #include <string> using namespace std; class StringStack { private: string *stackArray; int stackVal; int top; public: StringStack(string); ~StringStack(); void push(string); void pop(string &); bool isFull(); bool …

Member Avatar for vmanes
0
87
Member Avatar for mae ann

[B][I][COLOR="Red"]good day![/COLOR][/I][/B] we were given a project. it is a program for an airline company. in this program, [B]the user can view vacant seats in the airplane[/B] then [B]he can make a reservation in any of those seats [/B]or [B]cancel a reservation[/B] he had made. he can also[B] view the …

Member Avatar for jbennet
0
295
Member Avatar for chrisliando

[B] How to show the corresponding nodes of a treeView in a listView? Is it simply by comparing the node->Text and the items->Text? And how to delete the corresponding item? Or the way is complicated to find out that these 2 items are corresponding? Anyway, what's the different between items …

Member Avatar for Lerner
0
170
Member Avatar for Ratte

I am designing an ftp client prompt in C (unix environment). At this point, I have an infinite loop with an fprintf of the prompt on stdout and an fgets for reading user input. I need help with the structure of my program. How do I implement this? I have …

Member Avatar for Ratte
0
132
Member Avatar for NotThereAnymore

I'm trying to practice writing a program which creates an object and does various tasks. So far the tasks I want to program to do are to take a hypothetical triangle (it doesn't draw a literal triangle on the screen; it just shows the number of triangles there, the area …

Member Avatar for Ezzaral
0
102
Member Avatar for RationalRabbit

Hi! My page has a list of products. Clicking on one of these product images brings up a detailed information iframe popup with interactive photos and text. The information is stored in a MySQL database, accessed with PHP. I've struggled for hours to find the best way to open and …

Member Avatar for Fungus1487
0
143
Member Avatar for kahaj

I'm trying to create a page that has a button at the end with a check box before it. Unless the check box is checked, it shouldn't carry through with the link. I absolutely cannot get it to work. I've been toying around with it for over a half hour …

Member Avatar for ~s.o.s~
0
123
Member Avatar for wonderland

Hi, I need some help with average calculation. I have a homework where i must find average value, but this one is quite tricky, atleast for me. usualy it goes like that 1+2 average is 1,5. I have to do it like this: If i input 15 then program should …

Member Avatar for zandiago
0
94
Member Avatar for kahaj

How do I insert a link to another page to the pressing of a button? I'm assuming it would be via the onclick event, but can't seem to get it accomplished in a manner which will actually work.

Member Avatar for ~s.o.s~
0
133
Member Avatar for leroi green

the below program is supposed to read the string you input and count the amount of times that the letter 'a' appears in it. if it doesn't find the letter 'a', it's supposed to tell you that there aren't enough arguments (which i may change to say that "there aren't …

Member Avatar for leroi green
0
136
Member Avatar for Venom Rush

Is it possible to select day from the DATE field in a db so that it includes a zero in front of it if the day is less than 10? If so could you post the code please. Struggling and stressed...with qwerty imprinted on my forehead

Member Avatar for Venom Rush
0
127
Member Avatar for balla4eva33

I'm having trouble with where to begin with an assignment. I'm hoping someone here will have a little more knowledge and be able to explain it to me. Just a point in the right direction please!! Here's the assignment: [B] Create a Class that reads a file completely into a …

Member Avatar for balla4eva33
0
168
Member Avatar for gremlinuk

Hi, I have the PHP file as coded below. Is there any way to make directory files open in a new window. I mean, this file shows files in a folder in which it sits in, but how can displayed files be opened in a new window? Cheers Aaron ------------------------------------- …

Member Avatar for fatihpiristine
0
857
Member Avatar for lpaino@rolands

I am using Dreamweaver Tabbed Spry Panels I get an error message on the pages in IE "style is null or not an object" Does anyone know why this happens and how to fix the problem?

Member Avatar for lpaino@rolands
0
129
Member Avatar for marcuskona

Hi everyone im getting this error when i try to execut the code via a browser, its a SOAP call to a footprints webservices server written in php, well it only shows me this error. I pasted the entire code below minus my username and password, :) I also have …

Member Avatar for johnNui
0
136
Member Avatar for r0cks

Hi, I have a text file that needs to be exported to a sql server table. the text file is something similar to this, ------------- 01.08.2007 06:00 go to work 12:00 lunch 17:00 go home 19:00 dinner 21:00 go to bed 09:00 go to leisure centre -------------- I need to …

Member Avatar for manoshailu
0
90
Member Avatar for sham

Is it possible to display report in Visual Basic which is created in Microsoft Access? We developed a databasep applicaton that uses Access database. but one of the cross tab reports is difficult to develp in VB , but could develop in Access. Now I want a way to call …

Member Avatar for Chiquito
0
438
Member Avatar for bcm

:?: I am creating a project in [B][COLOR="Red"]VB.NET2005 [/COLOR][/B]for reading and writing xml app.config. but how i want to display the xml data in a message box. I have used the following code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim astrology_value As String Dim …

Member Avatar for bcm
0
97
Member Avatar for captinmak

I am receiving three c2228 errors when I try to compile my program. *edit* I am dealing with rectangular prisms in this program.*edit* Here is my code: [code] #include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; class Rect { private: double length; double width; double hight; public: Rect(double l …

Member Avatar for Duoas
0
120
Member Avatar for joshmo

I have gotten a problem compiling. the program gives me an LNK2001 error so there seems to be a problem with my function but i cant seem to find it..i am posting part of the function that calls and the original function being called void disp() time_info start, end; time_increment(hours_count,minute_count,day_count,month_count,year_count,start,end); …

Member Avatar for joshmo
0
82
Member Avatar for swuwarrior

is there a way to convert a binary number to hex. im sure there may be a library that already does it for you ?

Member Avatar for WaltP
0
62
Member Avatar for swuwarrior

Whats up guys. I am new to programming and just started a week ago. I am doing this just for fun. I have a problem with a text file that i am trying to read in. I am able to read in the text file, i just need to know …

Member Avatar for WaltP
0
142
Member Avatar for superrg86

i don't know how to fix this error can any one help me here's my code: [code=c++] StringStack::StringStack(string value) { stackArray = new string[value]; stackVal = value; top = -1; } [/code] and the erro says: error C2440: 'initializing;: cannot convert from 'std::string; to size_t' what does this mean and …

Member Avatar for WaltP
0
88
Member Avatar for jimwalther

hey guys, im having a hard time making this switch function catch letters and return the error message. [CODE]int main() { int choice; do { /* THE DISPLAY MENU*/ printf("================================================\n\n"); printf("Welcome to Walther's Tic Tac Toe Game.\n\n"); printf("what would you like to do?\n\n"); printf("1 Play Tic Tac Toe\n\n"); printf("2 Quit\n\n"); …

Member Avatar for chandrasekharn
0
105
Member Avatar for kahaj

Where do you put the links when you have 5 different banner ads that rotate on a fixed amount of time? It's obviously not around the <img> tag in the body, because that links all five banners to that one single URL....

Member Avatar for Inny
0
996
Member Avatar for ColicabSyke

I'm working on a program for school and the code I have so far is: [code] public class Assign6{ public static void main(String[] args){ int bill = (int) (Double.parseDouble(args[0])*100); Change aSmall = new Change(bill); System.out.println("# of Fives: " + aSmall.numOfCoins(500) ); System.out.println("# of Ones: " + aSmall.numOfCoins(100) ); System.out.println("# of …

Member Avatar for jwenting
0
192
Member Avatar for balla4eva33

[b]WHERE DO I START!?[/b] [CODE] Write a mygrep program that accepts arguments: mygrep [-i] [-n] match file1 [file2] [file3] ... [filen] A grep program will look for occurences of the "match" string in the files file1, file2, ... filen. Whenever the "match" string is found, the line where it is …

Member Avatar for vijayan121
0
428
Member Avatar for maxmaxwell

I'm working on a school assignment right now, ( populate an array of 50 elements with random integers ranging from 50-100, find mean, mode, standard deviation and the number of elements that fall within the standard deviation) I've written working code for everything except for the function that finds the …

Member Avatar for maxmaxwell
0
136
Member Avatar for RohitSahni

Hi all, Suppose i have one string as "A:B:C", where ":" is the delimiter . now i want to seperate this A, B, and C and save them in 3 different variables. How can i implement this thru C++ code. Plz let me know. Thanks in advance.

Member Avatar for RohitSahni
0
555
Member Avatar for squall2463

I face the problems of don't know how to convert the number from any base to any base.I just can get the output by converting the number from base 10 to any base.So,panic.:( :'( Who can help me,thanks.

Member Avatar for squall2463
0
106
Member Avatar for SheSaidImaPregy

I am having a problem with my datalist and repeaters. Below is the code. For some reason, when it searches the database and returns results, it counts the correct number of results, but only displays the correct number minus one. So if it returns 3 results, it only displays 2, …

Member Avatar for SheSaidImaPregy
0
74
Member Avatar for darkagn

Hi all, I have done some development in OpenGL in the C++ platform and was thinking about trying my hand at DirectX which I have heard is a bit more challenging than OpenGL. From what I have read, DirectX seems to be the more popular format so I was wanting …

Member Avatar for jbennet
0
203
Member Avatar for jiu

Hi everyone, I'm a relative beginner in python looking for a bit of help on an error I get when running the script posted below. It is used to split data files in text mode. It runs through a list of files (using the glob module) and creates a number …

Member Avatar for jiu
0
91
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 …

Member Avatar for zandiago
0
115
Member Avatar for yang1302
Member Avatar for rockygoodness
0
102
Member Avatar for bnilsen

Hello, I'm working with SQL server 2005 and a database that has "equipment status" data that is spread across several tables and is time stamped in only one table, there are multiple instances of duplicate records with differing time stamps. I need to select only the newest time stamped messages …

Member Avatar for bnilsen
0
126
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; …

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

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 …

Member Avatar for picass0
0
96
Member Avatar for stuckonwords

I have some files in a "downloads" folder on my site. The only people who should be able to download the files are people who have purchased them. I have a "downloads.asp" page (classic asp) which asks for the visitor's receipt number. Their input is checked against my database to …

Member Avatar for SheSaidImaPregy
0
155
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] …

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

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

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

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 …

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

Member Avatar for woooee
0
892
Member Avatar for amaravanich

Hi all, I have to create a check box in javascript i just created the checkbox field and called a function in onclick.but onclick event is not firing.i'm getting an error indicating that chkbox has no properties.i have to fire an event on click this checkbox can anyone please help …

Member Avatar for yurj
0
136
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 …

Member Avatar for neilyan
0
108
Member Avatar for hott5hotj

Hi Everyone, I'm a little bit stuck at the moment in my Final Year project at college. A team of 5 students were asked to develop or improve on an existing software that was developed to record video feedback from visitiors to the campus. We were provided the software and …

Member Avatar for mohanrobin
0
86
Member Avatar for shalomng

hello friends, please i need your help or opinion on what to choose as my project title, as i will be writting my projct in less than five months time, i need to submit my project titles to my supervisor,he will be the one to choose a title he wants …

Member Avatar for mohanrobin
0
103

The End.