199,114 Archived Topics
Remove Filter ![]() | |
uhm .. Good day everyone. I would just like to ask if anyone knows what code to use in Turbo C wherein the user will input the year and the program will output the calendar for the whole year. Please help me. Thanks a lot :) | |
OK, I'm trying to write a program that uses a circular linked list. I have been playing around with a linked list program all day, and kinda understand it. Here it is, and yes it does compile. [CODE] #include <iostream> using namespace std; struct node { char name[20]; // Name … | |
Hello, I'm very new to python but made this as a sort of exercise. It is a loan calculator that takes into account user input. [code=Python] r = input('What is your interest rate? ') t = input('How many payments will you make? ') la = input('What was the amount of … | |
With all the libraries available that have emerged, Java and Ajax applications practically build themselves these days. This week Java tool maker Instantiations added support for Ext GWT to [url=http://www.instantiations.com/gwtdesigner/]GWT Designer 7.2[/url], the latest version of its Eclipse-based drag-and-drop GUI-building environment that can be had for as little as $5 … | |
Hi, I use a upload form to upload images first in a server directory and then I would like to save file in a database. My questions : 1. I would like to change the name that image is saved like that : Image_1.jpeg or Image_1.gif whatever type. 2. I … | |
Dear members, Hope you all are in the state of prosperity and well being. I have my contact us at the site. It has following fields: Name: Email Address: Subject: Message ....and a submit button. It works properly. Since i have created this to assist the site members to ask … ![]() | |
[I]The FileSystemWatcher class is phenomenally powerful—and staggeringly simple.[/I] Start up a new Windows Forms application. Then drop FolderBrowserDialog, FileSystemWatcher, label, listbox, and button controls onto the form. [B]Setting up Properties:[/B] Set up the name properties of the controls; the button is called chooseButton, the label is folderLabel, the list box … | |
Web Server: Sun Java System Web Server 7 update 5 I have inherited a JSP application and am trying to get it to work. I have figured out that it has something to do with the [ICODE]<input type="file"> [/ICODE]tag, because I cut all the rest of the code out. [CODE]<input … | |
Seriously, what is any programming language without a HelloWorld app? | |
It keeps highlighting the line "super(r);" I can't find whats wrong with it.... The Error says: 1 error found: [B]File: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java [line: 14] Error: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java:14: cannot find symbol symbol : constructor Circle(double) location: class Circle[/B] The contructor code is: [code]/** … | |
Every time I write a code using Visual Studio for my C++ class, I keep getting reference linking errors and I dont know how to fix it. I have attached the code and the error that I keep getting. [CODE]// Fig. 3.7: fig03_07.cpp 47 // Instantiating multiple objects of the … | |
Hey, In my duplicateWords function, I have been trying to figure out for a couple of hours how to [U]create[/U] duplicates for 4 different names in the list. Will someone help lead me in the right direction in how to complete this task? My program is reading in 50 words … | |
good day.. i have a problem in accessing my Access database in network.. I made an inventory system... i couldn't run the program simultaneously in two PC. i got this error >>> "could not use.. file already in used"... i thought it can use in network? is my coding have … | |
Hi I am new to C++ and new to programming in general. I would greatly appreciate if you could help me. I need to create a program using loops, that will do the following 3 task: 1. For each of the three persons, determine and report whether that person was … | |
Hi all, im very new to java i would like to know how to add the following objects into an array [code] CD cd1 = new CD("Kaiser "," up the khazi ", 9.99); CD cd2 = new CD("Oasis "," morning glory ",3.99); CD cd3 = new CD("Bob Dylan "," Alreet … | |
Hi, While trying a program from "C++ Primer 3rd Edition" by Stannley Lippman, I encountered with following two errors. 1. The book says that the header file fstream also includes the header iostream, so including just fstream will do. But g++ complained about cout, cin and cerr despite having fstream … | |
Well let me start by showing off my source. [code]//This is a game called "The Guessing Game" #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int number; unsigned seed = time(0); srand(seed); seed = 1 + rand() % 100; cout << "Please try to guess a … | |
[code=php] #include <iostream> using namespace std; int main() { int num; const int MAX = 8; int output[8]; cout << "Enter a number [0 - 255]: "; cin >> num; cout << num << "converts to"; for (int i = 0; i < MAX; i++) { output[i] = num % … | |
This program provides the user with options of what kinds of passwords they want, then they can choose from those menu options, then enter how long they want their password to be. The program is supposed to generate random ASCII values for the password(what it is composed of is based … | |
Hi , finally i managed to write code for infix tree generation. but when i am getting segementation fault . when i debug the code its entering infinite loop. please review my code and kindly let me know wheres the problem. i am passing a file through command line and … | |
Using a hash table with eleven locations and the hashing function h(i) = i%11, show the hash table that results when the following integers are inserted in the order given: 26, 42, 5, 44, 92, 59, 40, 36, 12, 60, 80. The collisions are resolved using chaining. int h(int i) … | |
Ok, so I've been trying to some practice programs and have come to a slight problem. Here's the program I need to work on: Write a program that determines which of a company's four divisions (NE, SE, NW, SW) had the greatest sales for a quarter. It should include the … | |
Ok im trying to compile and keep getting this error: 38 ISO C++ forbids declaration of `string' with no type. Not sure what im doing wrong. Here is my code: my header file: [CODE]#ifndef PLAYER_H #define PLAYER_H #include <iostream> using namespace std; class MyString { public: int find(const string& str); … | |
Good Evening everyone. I work for a marquee firm and i am creating a php mysql components list for the assistance for loading equipment. SO far, the user can input a marquee size (eg: 6mx3m) in a form and we search the database and output the items required for said … ![]() | |
Hi , i want to show splash screen whene the application start but after run this message is displayed : No thing to display i use this class , please help me to find probleam tanks [CODE]import java.io.IOException; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class UCNAMidlet extends MIDlet implements CommandListener { … | |
I am sorry for interfering like this in between, but I am new to this community and I need some help, if anyone can spent their precious time in doing so. Hi.I am working on a Java media player that uses [B][U]Java Media Framework(JMF)[/U][/B].I have designed the code for a … | |
I have successfully completed a project that I have been working on. However, I want to clean the image up slightly. This code consists of 2 different calculators and I would like to divide them with some sort of divider. Can anyone assist? Any help is greatly appreciated. [CODE]import java.awt.*; … | |
As the title says: a C function for detecting anagrams. Returns [B]true[/B] if both strings are anagrams, returns [B]false[/B] otherwise. | |
I have been working on a custom Hue Slider, when you drag the knob the color of it changes to its hue value. (ex 0 is red). I added a little gloss to the knob, I feel its not done, I Just don't have any Ideas as to how to … | |
What am i doing wrong. Tadd.h [CODE]#ifndef ADD_H_GUARD #define ADD_H_GUARD int add(int a, int b); #endif[/CODE] Tadd.cpp [CODE]int add(int a, int b) { return a+ b; } [/CODE] Taddmain.cpp [CODE]#include <iostream> #include "Tadd.h" using namespace std; int triple(int x) { return add(x, add(x,x)); } int main() { int xi; xi … | |
Good Day People I'v just finished my project in VB6.0 and now have to include reports for the program. I would like a button in VB6.0 to direct to a report in crystal report V85. I'm just not sure how the code on the button is supposed to be. Could … | |
I was looking for an SDK to learn a bit about fingerprint identification system. I have googled a lot and found many different SDKs. However none of them were free. I dont want to implement any commercial system, just want to work with an SDK for educational purpose. Do you … | |
i have to print this ******** *** *** ** ** * * ** ** *** *** ******** my code is [code=JAVA] class one { public static void main(String args[]) { String s1="*";int i,j; for(i=4;i>0;i--) { for(j=0;j<i;j++) { System.out.print(s1); } for(int k=0;k<8;k=k+2) { for(int m=0;m<k;m++) System.out.print(" "); } for(int n=4;n>0;i--) { … | |
i wonder it, because i hate c++ header files. if c# compiler has a way of getting rid of them, why cant c++ do? here some similar info but i am not satisfied. [url]http://stackoverflow.com/questions/1305947/why-does-c-need-a-separate-header-file[/url] | |
Hi everyone, Want a DateTimePicker column in my DataGridView. Essentially used code I found on MSDN [url=http://msdn.microsoft.com/en-us/library/7tas5c80.aspx]here[/url] Just dropped the different classes in separate files. It works, but the problem is I have to click from 2 to 4 times before I can select a date! The first click shows … | |
hi i am new to java programming and im working on a looping program involving the fibonacci numbers. what i would like to do is to have a program that asks the user how many values of the Fibonacci sequence to output. Then i want to create a loop that … | |
I have a program i have to build for class using the Player class. i need to be able to remove add show and save and i cant seem to get the for loop to work in the methods. and when i tried passing the class player to the methods … | |
I'm new to programming and i'm way out in left field on this one... I'm trying to write a program that takes takes numerical grade inputs and tells you what the letter grade is. The program must keep running until the user hits 'E' or 'e'. Here's my problem: with … | |
the following escape sequences cause [] in listview. Is there any way to fix it? Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace newLineInListView { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, … | |
I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received. [code=Java] public void doPost(HttpServletRequest request, HttpServletResponse response) throws … | |
First, I want to thank you for helping if you did, if not, thanks for checking it anyway. Second, I have been working on this for awhile, but I only am getting baby steps towards my goal. I get this far and I get compile correctly, but when I run … | |
hi guys, i need to pass product version information from windows installer to custom installer, i am almost sure that you dont know the answer but that is fine, it is also important for me to show you what you dont know. i will try to solve this thread later … | |
this is the code for search button [code] if ($go == 'Go') { if ($searchText == '') { $buttonPress = 2; echo "<script>alert('Please complete the information!')</script>"; } else if ($searchText != '') { $result2 = mysql_query("SELECT * FROM sec_ph WHERE phType LIKE '%$searchText%' OR phCustomer LIKE '%$searchText%' ") or die(mysql_error()); … | |
Talking about a shoebox type of database here. Would like to make a nice interface in C# for it. Typically something around 50 records or so. (e.g. my wine cellar;) ) To use a genuine SQL DB seems to me like a bit of an overkill. Could use a flat … | |
Hello, I am having the hardest time getting my strings to format right I want it to only show the first 14 chars of the string. sounds simple, but I think ive been looking at the code to long to see where im messing up :). here's the code I … | |
Is it possible to call a .dll I made in C#, and use it in my unmanaged C++ code? If so, can someone show me an example of how this is done, or a link to go about doing it. I wasn't able to find much on google, and most … | |
hi i need some help with adding a bunch of random numbers. i dont understand how to add them all. heres the code: [CODE]#include <iostream> #include <cmath> using namespace std; int main () { int i,x; srand (time (NULL)); for (i=1; i<=10; i++){ x=rand()%10+1; cout<<x<<endl; } system ("pause"); return 0; … | |
Hello friends. I'm very new to C and am still learning how to do basic stuff. I got the code to work in C++ (which I'm much more fluent in) but I'm having trouble converting it to C code. [code=cpp] #include <iostream> using namespace std; double factorial( int n); int … | |
Here is my code: [ICODE]#include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; int main() { const double e = 2.71828; double t, f, n, B, VoltageGain; cout << "Please enter the time in hours the culture has been refrigerated: "; cin >> t; cout << endl; while … |
The End.