199,124 Archived Topics
Remove Filter ![]() | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"); ?> … | |
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 … | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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': … | |
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, … | |
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" … | |
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 … | |
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 | |
Anybody with a link to where i can download asp.net video tutorials? its urgent please. | |
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 … | |
[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 … | |
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 … | |
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. | |
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; … | |
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 … | |
Which has more functionalities? ASP.NET or PHP And which is more flexible? | |
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 … | |
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 … | |
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 ); } } … | |
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:\..... … | |
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 … | |
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 … | |
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 | |
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 … | |
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 - … |
The End.