199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hurbano

this simple cout statement and i do not know why. the outputs are mixed up and i get some random numbers i didnt even input.please help [code=cplusplus] #include <iostream> #include <string> using namespace std; int main() { string Pname, CEmployer; int age; cout<<"Patients Name:"<<endl; getline (cin, Pname); cout<<"Age:"<<endl; cin>>age; cout<<"Current …

Member Avatar for tux4life
0
121
Member Avatar for vidhyaponnusamy

Hi, I want to retrieve a key value for the option selected in the drop down box,and i also want to you to tell me how to use that key value [code=php]<select name="role" style="width: 145px">'; $result=selecttbl("ugname","ugroup"); while($nt=mysql_fetch_array($result)) { print'<option>'.$nt[ugname].''; print'</option>'; } print'</select></td>[/code]

Member Avatar for rm_daniweb
0
169
Member Avatar for everydaybh

I want to create a program that asks the user to enter two vector (size and direction), and calculates its addition through turning it into components (using OOP). here's what I've got so far (I don't know how to fix the errors), I'm not sure what's wrong/ to do next …

Member Avatar for tux4life
0
179
Member Avatar for deppsgirl

hi. this is my first post here, my name is jen, someone in my class told me about this site and how helpful all you guys are and im so lost i thought id come try and see if someone can help me understand :( i dont even know where …

Member Avatar for tux4life
0
171
Member Avatar for Doctor Cactus

Hi, I am only beginning C#, so bear with me. I have been given this program to write. This is the question: Write a C# application called WRITENUM that inputs a number between 0 and 2,000,000,000 inclusive and outputs that number in textual form, as we would say it or …

Member Avatar for Doctor Cactus
0
78
Member Avatar for kapil.tandon

hi i created stacked column dundas chart. nw i want to put it in the flash option in the image type option but when i click on the image type property there is no option for the flash. only jpeg,bmp,ppnf etc option are there?? Moreover ,there is no optin for …

Member Avatar for kapil.tandon
0
77
Member Avatar for daffer

Hi all I am new to Java and having trouble with constructors with images and audio. I have tried to use the API library to work it out myself but cannot understand what they are talking about. My problem is that I am trying to create two instances of the …

Member Avatar for javaAddict
0
128
Member Avatar for Cardboard Box

Hi I am making a 2D adventure/rpg game in vb.net. At the moment, the character in the game moves around a game map, and initiates battle with any enemies he comes across. The problem is that I want the terrain on the battle map to change according to the terrain …

Member Avatar for martonx
0
88
Member Avatar for mangesh5588

hi, i m making one asp.net page. in that page there is three text boxes called id, response id, and email. same columns is in sql server table called info. In table "info" for id column i have assigned " isidentity" = yes. its created auto number like 1,2,3..... and …

Member Avatar for carobee
0
104
Member Avatar for priyotosh

Hello everyone, i m designing a web site using jsp and i want to open any files like pdf . doc, etc in the browser without downloading it in the system, files are kept in the location(for eg .g://myfile.doc). please suggest a feasible solution.

Member Avatar for priyotosh
0
113
Member Avatar for jam7cacci

my task is to sort the input numbers from lowest to highest but i just cant make it work... i've tried different ways and I know there's a problem in my code. hope you can help me out. thanks! [code] #include <iostream.h> struct trial { int age; } getcount[5]; void …

Member Avatar for jam7cacci
0
176
Member Avatar for NicAx64

ahh , finally I backtrack the bug. Believe me I'm not saying that I'm experienced but many years I have been working with C++ , at least 5 yrs .I'm working with the C compiler since I was at the 7th grade. however the fun part is not boosting about …

Member Avatar for Will Gresham
0
535
Member Avatar for shadowolf64

Hello everyone, I'm rather new at C# and programming in general, I have some experience with Java, PERL, and Python but I wouldn't consider myself an expert on any of them. I'm using C# because it is very similar to Java and it seems to be even easier to make …

Member Avatar for JerryShaw
0
132
Member Avatar for JamesX4334

Hi, I have been building a shopping cart for a website that I am building. What I am trying to do is created a purchase history so when an item is purchased it is stored in the customers purchase history (in the customers MySQL table). I have three tables Cart …

Member Avatar for rm_daniweb
0
103
Member Avatar for Acute

PLz, can anybody help me to display Excel table on browser.Looks like easy task, however, the table must be edited and saved using the browser. I've looked Google spreadsheets, but I dont know how to connect that application to my web site. My purpose is: client opens an excel table(which …

Member Avatar for rm_daniweb
0
331
Member Avatar for thehivetyrant

Hello there, I've a homework assignment from a while ago that asks [B]"Implement a recursive Python function which returns the sum of the first n integers"[/B] Now i just dont know exactly what it's asking and how to get started. Recursive functions, right (my thoughts so far is it'll look …

Member Avatar for thehivetyrant
0
127
Member Avatar for weblover

hi all...how are u? i have a question , i'm creatingn a php login system for a forum but i'm new in php and i'm not able to put session timing for the login ..i want when the user login to register the session and then after login in ..if …

Member Avatar for Designer_101
0
108
Member Avatar for kssi89

Hello everyone, I have been trying to create a .php page to catch information from a form and insert it into our local database. Normally I am able to catch the parse errors but this one points straight to the end of my code: [CODE]<?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> …

Member Avatar for Designer_101
0
111
Member Avatar for king_786

i am stuk on this and have a[solutly no idea in how to create the while loop!!! could someone please show me how to do this??? Write a Java application that calculates the number of repayments for a loan based on the initial loan amount, annual interest rate and monthly …

Member Avatar for BestJewSinceJC
0
111
Member Avatar for dinilkarun

Can anybody please help me with the code to read file names inside a zip file using VB6. I am able to open(not extract) the zip file.

Member Avatar for amccaul1976
0
1K
Member Avatar for Utter_iMADNESS

Hi. I'm working on a program that rolls 2 dice a number of times and displays the number of rolls per combination. It also displays this in a bar graph that shows the percentage of times that each combination got rolled. I've gotten to the point where it rolls the …

Member Avatar for BestJewSinceJC
0
176
Member Avatar for thacravedawg

I have an application I'm building that requires the use of array.binarysearch() to find strings from a combobox in an array and return the index value of the selection. Ie. the user selects a name from the combobox. I now need to use the name they chose and search an …

Member Avatar for thacravedawg
0
151
Member Avatar for TheBrenda

VB6 - Form1.Show, it is a method? Show is not on the Form Properties nor the Form Event Code. What is SHOW? Can I add code to it? Thanks

Member Avatar for jonc
0
715
Member Avatar for Nemoticchigga

This is a general question. I am familiar with accessors and mutators (getters and setters). I have now been reading up on semaphores. I am having trouble finding out differences between them/how they are related. Can anyone help me out with an explaination or a link? Thanks. P.S. - sorry …

Member Avatar for ArkM
0
136
Member Avatar for srk619

need help on this question: Write a lexer to read in decimal numbers. If your input is the following string: “12345.9876” what do you have to do to each character in the string to generate your float? How are the numbers before the decimal point different to the numbers after …

Member Avatar for srk619
0
160
Member Avatar for gangsta gama

Hello all, My code isnt working. It is supposed to be a RPG World of Warcraft game lol. 1) When I have [code=c++]if (inventory.size() == MAX_ITEMS) { inventory.push_back("Rusty Armor"); } else { deleteItem(); } [/code] 2) My deleteItem() function dosnt work, is their another way to do this? Here is …

Member Avatar for gangsta gama
0
125
Member Avatar for mampam

I have a main that I want to use getline to get the user's words after i do a strtok to eliminate these delimiters (" ,.-") and then find the soundex code of each word and insert the words into my hashtable. i made an attempt but i was not …

Member Avatar for Ancient Dragon
0
82
Member Avatar for totalnoob

Hi everyone! I'm getting this error all the time: Parse error: parse error, expecting `','' or `';'' in... I know that the problem is the href line, but since this is the first time I'm writing this kind of thing I can't write it correctly. This is the code that …

Member Avatar for totalnoob
0
121
Member Avatar for Aelphaeis

Hey, I'm a high school student who is fairly programming and I was curious as to how to input a single character without entered an End of Data marker (e.g. newline character/Enter) [CODE] #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main () { char ch; switch (toupper(getchar())) { case 'A': …

Member Avatar for Aelphaeis
0
402
Member Avatar for ganmo

Hello, I've written a delete function to delete any integer value based on in parameter. The problem I have now is that this function deletes the values, but leaves the Node position intact with some huge int value instead. So my question is, do I need to rearrange the Node, …

Member Avatar for ganmo
0
128
Member Avatar for veledrom

Hi, Javascript doesn't work if i do this way. How can i solve it? Is that because i echo it. Thanks [code] <?php echo "<html><head> <link type=\"text/css\" rel=\"stylesheet\" href=\"cssFile.css\" /> <script type=\"text/javascript\" src=\"javascriptFile.js\"></script> </head><body>"; ?> <form name="form" action="added.php" method="post" onsubmit="return validateForm();" style="float:left"> <input type="text" name="ID" size="20" tabindex="1" /> <input type="submit" …

Member Avatar for veledrom
0
148
Member Avatar for vanessia_1999

Hi everyone, I am like so proud of myself because I am building a php web page. I get stuck now and then, but eventually get it after two or three days:( I have one big problem that I have put on the back burner for a while and I …

Member Avatar for vanessia_1999
0
183
Member Avatar for veledrom

Hi, I have a loading bar gif to be displayed initially, until main image (1MB) is loaded in my web page. How can i do it? Thanks

Member Avatar for veledrom
0
72
Member Avatar for uthman4u2nv

Anybody with a link to where i can download asp.net video tutorials? its urgent please.

Member Avatar for tatvacoder
0
76
Member Avatar for clutchkiller

When I declare an event table in a class a.k.a DECLARE_EVENT_TABLE(); then try to compile, i always get this error: [Linker Error] undefined reference to `vtable for Utility' (utility being my class) What does this mean and how do I fix it? All research on this has turned up dead …

Member Avatar for clutchkiller
0
229
Member Avatar for gotm

[code=python]#!/usr/local/bin/python #Scott Landau #CS 380 #Assignment 1 Programming Portion in Python #Created - 4/6/09 #Last Edited - 4/7/09 #n is going to be equal to 4 for this queens problem. n = 4 #Assigning the empty list to initialState. initialState = [] #Making an allDirections list. allDirections = [[-1,0],[1,0],[0,-1],[0,1],[-1,-1],[-1,1],[1,-1],[1,1]] #declare …

Member Avatar for woooee
0
96
Member Avatar for king_786

Write a Java application that displays factorials for a user input specified number. The factorial of a number, n, is the product of all of the positive integer values between 1 and n, and denoted by the ! symbol. For example, the factorial of 5, 5!, is calculated by multiplying …

Member Avatar for tux4life
0
244
Member Avatar for serkan sendur

hi guys, is there anyway of catching exceptions globably in a windows application similar to way we handle exceptions using global file in asp.net aplications? thanks.

Member Avatar for dickersonka
0
112
Member Avatar for kavithabhaskar

Hi I am learning C++ and i coded this program but it isnt working as it was supposed to.. [CODE] #include<iostream.h> using namespace std; class furniture { protected: int color,width, height; }; class bookshelf : public furniture { private: int no_of_shelves; public: int accept() { cout<<"enter color"<<endl; cin>>color; cout<<"enter width"<<endl; …

Member Avatar for siddhant3s
0
149
Member Avatar for mg0959

Hey guys, I have a python script that I need to run on a windows machine when the computer boots up but before a user logs in. It is the server side of server/client program. The program needs to be able to write and read files, as the server program …

Member Avatar for mg0959
0
161
Member Avatar for uthman4u2nv
Member Avatar for peter_budo
0
131
Member Avatar for kerek2

Hi alls, I need help regarding this method...actually i have display image from database into picturebox using memortstream...then i need to copy this image and save it into file as jpg or bmp......i'm already insert contextmenu for rightclick function to copy image but not working...anyone can give the idea plzzz?..Tq …

Member Avatar for Teme64
0
99
Member Avatar for totalnoob

Hi! I've made a members.php page that is supposed to show all the entries done by the user, in other words, the title, category and year of a movie. After login in the user clicks on a link (href="members.php") and is redirected to members.php. My problem is that the table …

Member Avatar for liranoz
0
98
Member Avatar for tomtetlaw

I am doind a tutorial, here is my code: [code=c++]#include "functions.h" #include <glut.h> #include <stdlib.h> //this is the function with the error: void HandleKeyPress ( unsigned char key, int x, int y ) { switch ( key ) { case 27: // escape key exit ( 0 ); } } …

Member Avatar for MosaicFuneral
0
66
Member Avatar for JeyC

All, I am using a python script (v2.0) to call a batch file. 1. The python script should wait until the batch file is finished. (So that rules out os.startfile, os.popen etc.) 2. For unknown reason, os.system does not work ... So I am using os.spawnv(os.P_WAIT,BatchFile, BatchFile) where Batchfile =r"E:\..... …

Member Avatar for woooee
0
119
Member Avatar for Malestryx

Good evening everyone, I am once again posting a question. My school project is done. And I appreciate all the help you gave me. The following code is a working program. The only thing I have absolutely no real good idea to do is calculate the Overtime Rate with my …

Member Avatar for woooee
0
1K
Member Avatar for Samuelandjw

I use VS C++ 2008, and I have the following code [code=C++] int main() { int maze_size=5; int[3][2] oppo_pos = { {maze_size-1,maze_size-1}, {maze_size-1,0}, {0,maze_size-1} }; return 0; } [/code] When I compiled, VS gave out the following error messages: 1>c:\dev\visual studio 2008\projects\test\main.cpp(4) : warning C4091: '' : ignored on left …

Member Avatar for Sky Diploma
0
125
Member Avatar for ammonation42

hi i am at uni an i have a project in which i have to create a backgammon game can anyone give me a helping start on how i would go about creating the board states? thanks

Member Avatar for nucleon
0
105
Member Avatar for soniajay

Hi , I am working for one in-house web application project with C#, ASP.NET and SQL Server 2005. But here we are facing a issue for initial loading time of that application, it takes around 20 seconds to load it first time but after that it works fine,but again after …

Member Avatar for Tom92
0
128
Member Avatar for ptaylor965

I have been working on a project using Visual Studio.Net 2005 and Windows Mobile 6.1 After several builds and installers it has started throwing up an error during the build stage. Any help would be appreciated. Thanks The error contained in the output list: ------ Build started: Project: Stock - …

Member Avatar for ptaylor965
0
924

The End.