64,152 Solved Topics
Remove Filter ![]() | |
Anyone know where I can find a good tutorial on windows forms timer? All I need is a sample of something that is similar to a count down timer. Any suggestions? | |
I have my code to the point where I see the information on the print preview, but when it prints it is only printing the last line of the page. Any ideas of what I need to fix to get it to print all the information contained? I am new … | |
Friends, I have two bugs I would like to fix,I know thier is someone out thier that can shed some light into this. First one is simple I don't know what I typed wrong for the date function it says this as below Missing argument name. When using named parameters … | |
[CODE]<?php session_start(); if(!isset($_SESSION['un'])) { header('Location: web_login.html'); exit(); } else { ?> <html> <body> <?php print "<table align='center'><tr><td>Thank u</td></tr>"; echo $_SESSION['un']; print "<tr><td><a href='http://www.examples.com/fram.php'>View Order</a></td></tr>"; print "<tr><ta><a href='http://www.examples.com/web_job.php'>Search </a></td></tr>"; print "</table>"; } ?> </body> </html> [/CODE] when i execute this code even though my $_SESSION['un'] is present in the database it's … | |
For our class, we're supposed to simulate a moon lander program. For a given starting value for the height (200 feet above the surface), amount of fuel (100 pounds of fuel), and velocity (0 ft/sec), we're supposed to simulate a ship landing on the surface of the moon, depending on … | |
[B]The problem:[/B] Given a list of imployees, create a simple program that allows the user to insert, delete, display and search an employee. The prog. shall display 10 imployees as default. Also a list of menu should be display. The menu names are insert, delete, dsplay and search. [B]My questions … | |
Hi everyone, I just started C and I'm trying to understand some conceptual things. If anyone can help me with any of my questions It would be appreciated! I just want to hear it from something other than a book. 1. So, if macros can hold arguments, why would you … | |
Hi everyone! What is the code if I want to connect to MS ACCESS or SQL SERVER using C++? Is there a special compiler for c++ for that database code? Thanks | |
I have been reading the posts on radix sort here at DaniWeb and at [url]http://www.cubic.org/docs/radix.htm[/url]. I have already created the code for the counting sort which will do the rest but I do not understand how to do the radix part. I guess what I am asking is if you … | |
Hello, I am new here so Hi to everyone. My name is Debbie and need help writing a pseudocode for the following program as Im a little confused, heres the program for code: write a program that can be used to calculate the cost of a phone call. a call … | |
![]() | Hi ! I am new to C. I am developing C for an Assembly and C combined code for a project. I need to display simple messages to the Hyper terminal using C. To be specific, (See attached snippet of code which I am trying to run on Keil toolset) … |
Hi everyone, I generate in a for loop: 1- An array made of random numbers 2- Add the elements of the array and store the result in a number S 3- finally write in a .txt file the number j(number of time that the for-loop has been executed) and the … | |
hello all..... i was asked to perform a program of a calculator using stacks........ so i'll be so glad if any one have any simple ideas that helps...we need to read equations from the keyboard or files with no spaces in between, we must separate the numbers from the operators … | |
Hey I hope someone has seen this before because I have spent way too long in failing to solve it. I am using VWD 2008 express edition. I am trying to add a reference to the Microsoft Word 10.0 Object library. I won't work. I get this strange error: A … | |
hi.could you please help me to write a code in python that can convert written texts into speech. i am using nokia N70 to develop the program . thanks | |
I have this assignment and I got most of the program but I cant seem to make the counter work right what am I doing wrong? [code=cplusplus] #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int main() { int num1, num2, number; cout << "Please enter an … | |
Hi all I need help with C++, I need to develop a class specification and an irregular polygon application. I am stuck and don't know what to do.I have tried to solve it but it keeps giving me errors. If anyone is kindly to help me out, I would be … ![]() | |
i am trying created a table on the server called images and when i text to see if the table has been created i get the message table already exists. as i did not develop the rest o the site i thought a table might have been created already called … | |
Hi there everybody, I really have my difficulties with loops ;) I want to creat a cube with 10 x10 x1 (1 is like thickness, but as I have to create a mesh subsequently I can't do it with geometric properties) Plz help :) | |
[code=cplusplus] #include<iostream> using namespace std; class item { int itemno; int itemprice; public : static int total; void getprice(); void printprice(); friend void calculate(item a); }; int item :: total=0; void item :: getprice() { cout<<"Print item number \n"; cin>>itemno; cout<<"Print item price \n"; cin>>itemprice; total++; } void item :: … | |
have you ever heard of pycage.???? i want to have its windows version. if it exist????;) can you please give me the links where i can download it and get some tutorials about it.:P thank you very much | |
Hi, I'm relatively new to C++ Builder and the language itself, and my code is now becoming quite long. I was looking to take advantage of using a seperate class for certain methods, however I've come across a problem. Here's an example of my code in the new class; [INDENT][CODE]TShape* … | |
Hi All, I am new to PHP, I have tried to look for similar error but could not find anwers that helped me. I am getting the following error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\ ... register.php on line 109 Here is my … | |
^ | | | javascript noob Hi there I have the following script that strips out acceptable non-numeric characters that you would find in a telephone number and then checks to see if it is equal to ten digits. The problem I have is that I can't figure out how … | |
I have a c program that I need to use in dos 5 but i haven´t found a way to do so .Programs that work perfectly in Win XP console window, will not work in dos.Does anyone know : What do i have to add to my code so it … | |
Hey everyone, I haven't been here in sometime but I'm in need of some guidance. One of the questions I have is how do I enter the name, length, and time for each course? Thanks in advance for the help. Here's what I'm supposed to do: Using OOp inheritance and … | |
This is my first exposure to arrays. I need to create a 1-dimensional string-based array with five elements. I need to assign 5 different names to the array. Use a for loop to iterate through each of the array elements, displaying the names in a message box. I would truly … | |
Here is the problem: Does the recursive algorithm for raising x to the power n work for negative values of n? Does it work for negative values of x? Indicate what happens if it is called for each of these cases. Here is my answer for the above: It's a … | |
can anybody make this flash menu xhtml valid... i tried with some tutorials over the net but it still doesn't work. this is the code [CODE]<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="923" height="90"> <param name="movie" value= "http://www.zeriislam.com/menu.swf" /> <param name="menu" value="false" /> <param name="quality" value="Best" /> <param name="bgcolor" value="#1f314f" /> <embed src="http://www.zeriislam.com/menu.swf" … | |
Hi I'm trying to test my code but I keep getting some kind of strange errors bst.hpp: In member function `void Bst<generic>::insert(generic) [with generic = int]': test_BST.cpp:30: instantiated from here bst.hpp:36: error: invalid conversion from `int' to `int*' bst.hpp:47: error: ISO C++ forbids comparison between pointer and integer bst.hpp:52: error: … | |
Hi, Im reading a file, with 2 columns. this is working such as [code] 1999 5848946 2000 5458445 2001 5757585 2002 7699865 2003 7459758 2004 5797054 [/code] as Im reading I want to be able to count how many rows I've read and also add the all values as im … | |
Hi All Im having issues with my mail command sending data from my script. I have a korn shell script which logs onto a database and does a few select statements. The problem is i think the EOF stops my mail command sending the data. Im able to run the … | |
I'm trying to call up the pay, overtime, and totalpay that I get out of the second function. How do I do that? I think that's my problem. I get the following errors when I run the program: [code]How many hours did you work? 50 What is your rate of … | |
I have a question regarding random number generators. I have already looked at the thread teaching me how to generate random numbers. My question is, is there a way for the generator to only generate one number 4 times? i am trying to randomly generate a deck of cards where … | |
This code is provided as shown in below Now i would like to simplify it and hope someone can share wif me . Thanks [COLOR="Green"]Instruction User is required to enter a Roman number to be converted Decimal number. The symbols used in Roman numeral system and their equivalents are given … | |
This is a question i copy from others,and i write the code but nid u to help figure out problem. User is required to enter a sentence in English to be transformed to Pig-Latin form. To transform a word to Pig-Latin form, the first letter of the word beginning with … | |
Hi all, I have a few general questions that need answering: 1) Is there a way for an application to run a few final commands before it closes (this one is for all applications, not just windows) 2) Is it possible for a window to 'see' the application that sends … | |
I need help storing data in archives, I always get an unhandled exception when i try... [code=c++] #include"Inventory.h" #include"CustomerTransaction.h" #include <fstream> using namespace std; CarInventory* car_list; int main() { SLL<Customer>* customer_list = new SLL<Customer>; car_list = new CarInventory(); fstream file; file.open("Models.txt", ios::in); if (file.fail()) { cout << "\nFailed to open … | |
Hello: Please help me to solve this: >>> def printA(): ... try: print a ... except NameError: print 'variable undefined' ... >>> printA() variable undefined >>> a = "foo" >>> printA() foo >>> I tried to do the same think by importing a file "test.py" which has the function 'printA()' … | |
I have some questions ,i can't solve it .The first one is, Write a C++ program using the switch statement that does exactly what the following program does: [ICODE] #include <iostream.h> #include <math.h> void main () { float number; int choice; cout<< "Enter you number"; cin>> number; cout << "Enter … | |
Hi guys, I haven't a clue why this won't compile! I think the compiler is confusing multiplies as pointers. Here's my code: [code=c] #include <stdlib.h> #include <stdio.h> #include <math.h> #define pi 3.14159265; double data[] = { -0.15709,-0.25413,-0.1545,-0.011505,-0.052141,-0.24125,-0.28251,0.020464,0.48291,0.69804,0.46961,0.019997, -0.26036,-0.22194,-0.059284,-0.027764,-0.14373,-0.21843,-0.14153,-0.030971,-0.060482,-0.19966, -0.217,0.037288,0.41287,0.58642,0.40239,0.036834,-0.19954,-0.1839,-0.06484,-0.042241,-0.13189,-0.18949,-0.12998, -0.044059,-0.064511,-0.16527,-0.1656,0.048371,0.35412,0.8441,0.76091,-0.086579,-0.56076,-0.38969, -0.0037447,0.066327,-0.19043,-0.35463,-0.18658,0.055369,-0.015147,-0.35243,-0.4718, -0.038401,0.66734,0.99976,0.64583,-0.038856,-0.43599,-0.32307,-0.031074,0.023928,-0.17255,-0.29875, -0.16944,0.016309,-0.037833,-0.29157,-0.36583,-0.0038886,0.56681,0.834,0.54992,-0.0043523,-0.33768,-0.2678, -0.048722,-0.0065075,-0.15722,-0.25426,-0.15463,-0.011604,-0.052198,-0.24126, -0.28247,0.020554,0.48303,0.69817,0.46973,0.020092,-0.26031,-0.22194,-0.059329,-0.027849,-0.14384,-0.21855, -0.14164,-0.031061,-0.060533,-0.19967,-0.21696,0.037369,0.41298,0.58653,0.4025,0.036919,-0.19949,-0.1839,-0.06488, -0.042318,-0.13199,-0.1896,-0.13009,-0.044141,-0.064557,-0.16527,-0.16556,0.048444,0.35422,0.84421,0.76101, -0.086502,-0.56072,-0.38968,-0.0037807,0.066258,-0.19052,-0.35473,-0.18667,0.055296,-0.015189,-0.35243,-0.47177, -0.038335,0.66742,0.99986,0.64592,-0.038786,-0.43595,-0.32307,-0.031107,0.023865,-0.17263,-0.29884, -0.16952,0.016243,-0.03787,-0.29157,-0.3658,-0.0038291,0.56689,0.83409,0.55,-0.0042893,-0.33765,-0.26779, … | |
have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that the data contained in the original file contains a lot more columns … | |
Hi all... I m working for my graduated project. and my method in using is Genetic K-means Algorithm. i m using vb.net 2003 and sql server 2000. Does Anyone know a sample code for this?or a website / link for this topic??? please help me... any reply really appreciated... Thx.Best … | |
Hello i am having a problem with trying to create a table on the server every time a try to enter data into the database i get the message table already exists. I have moved the code to create the table on to its own page and only recall that … | |
okay, experts, i need help. i can't seem to replace characters in a file, like i thought i would be able to: here's an example code. i put print and error stuff in there to try and debug. everything seems to be working ... except that my filename is not … | |
hi guys, i'm upgrading a web application designed in visual studio 2003 to visual studio 2005. i want to start from the scratch. I've restored the database from the older application in sql server 2000 from another machine. now whenever i try to execute that application an error is displayed … | |
hi all could any 1 knows how to add color to printf? i mean that i want to write a sentence with color in it. thanx! | |
Hi, I can create all tables but order table. What is wrong, is it foreign key? [code=sql]CREATE TABLE customer( customerId INT(10) NOT NULL AUTO_INCREMENT, customerName VARCHAR(10), customerSurname VARCHAR(10), customerAddress VARCHAR(10), PRIMARY KEY (customerId)); CREATE TABLE order( orderId INT(10) NOT NULL AUTO_INCREMENT, customerId INT(10), PRIMARY KEY (orderId), FOREIGN KEY (customerId) REFERENCES … | |
I think I just did found this out: [code] Put.str(""); [/code] How is it possible to ´emty´ a std::stringstream. In this case Put contains: 10. [code] std::stringstream Put; int i = 10; Put << i; [/code] | |
Hi All, I Have a PHP Searching Code it have some problem it only connet to database but does not show any result.......... PHP Code is :- Search.php [code=php]<HTML> <BODY> <FORM Action="/Search.php" Method="POST"> <div align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td bordercolor="#000000"> <p align="center"> <select name="metode" size="1"> <option value="name">Name</option> <option … |
The End.