199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sweetjhin

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

Member Avatar for sweetjhin
1
110
Member Avatar for luskbo

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 …

Member Avatar for luskbo
1
258
Member Avatar for Mensa180

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 …

Member Avatar for Mensa180
1
343
Member Avatar for EddieC

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 …

1
328
Member Avatar for bufospro

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 …

Member Avatar for bufospro
1
79
Member Avatar for zohdi_rizvi

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 …

Member Avatar for diafol
1
105
Member Avatar for toraj58

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

Member Avatar for nenadnikolic
1
389
Member Avatar for ddempsey96

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 …

Member Avatar for ddempsey96
1
299
Member Avatar for mmiikkee12
Member Avatar for javaAddict
1
157
Member Avatar for StarZ

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]/** …

Member Avatar for Ezzaral
1
145
Member Avatar for djohnson82

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 …

Member Avatar for djohnson82
1
87
Member Avatar for NinjaLink

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 …

Member Avatar for NinjaLink
1
217
Member Avatar for xWiredx

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 …

Member Avatar for xWiredx
1
81
Member Avatar for grijalva10

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 …

Member Avatar for chunalt787
1
112
Member Avatar for whiteyoh

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 …

Member Avatar for Ezzaral
1
493
Member Avatar for mrinal.s2008

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 …

Member Avatar for William Hemsworth
1
321
Member Avatar for Kl2eativ

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 …

Member Avatar for siddhant3s
1
109
Member Avatar for kn336a

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

Member Avatar for kn336a
1
108
Member Avatar for TaP1227

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 …

Member Avatar for TaP1227
1
134
Member Avatar for Gaiety

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 …

Member Avatar for dkalita
1
100
Member Avatar for ankit894u

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

Member Avatar for ankit894u
1
236
Member Avatar for Bemani_lover

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 …

Member Avatar for VernonDozier
1
167
Member Avatar for nated

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

Member Avatar for nated
1
50
Member Avatar for emhmk1

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 …

Member Avatar for diafol
1
145
Member Avatar for mahdi68

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

Member Avatar for mahdi68
1
160
Member Avatar for eager to learn

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 …

Member Avatar for masijade
1
134
Member Avatar for hybridoutlaw

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.*; …

Member Avatar for masijade
1
120
Member Avatar for tux4life

As the title says: a C function for detecting anagrams. Returns [B]true[/B] if both strings are anagrams, returns [B]false[/B] otherwise.

Member Avatar for Dave Sinkula
1
908
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
1
177
Member Avatar for DrakeMagi

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 …

Member Avatar for rajeevns
1
107
Member Avatar for mpande

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 …

Member Avatar for mpande
1
694
Member Avatar for Asif_NSU

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 …

Member Avatar for devmakwana
1
2K
Member Avatar for poojasweetgirl

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

Member Avatar for poojasweetgirl
1
164
Member Avatar for serkan sendur

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]

Member Avatar for serkan sendur
1
369
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
1
2K
Member Avatar for Zero-Method

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 …

Member Avatar for Zero-Method
1
179
Member Avatar for RejectKid

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 …

Member Avatar for RejectKid
1
174
Member Avatar for Trekk

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 …

Member Avatar for BestJewSinceJC
1
118
Member Avatar for serkan sendur

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

Member Avatar for kvprajapati
1
389
Member Avatar for peter_budo

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 …

Member Avatar for peter_budo
1
154
Member Avatar for adsiq
Member Avatar for Hanyouslayer

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 …

Member Avatar for Dougnukem
1
173
Member Avatar for serkan sendur

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 …

Member Avatar for DdoubleD
1
358
Member Avatar for xuexue

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

1
236
Member Avatar for ddanbe

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 …

Member Avatar for ddanbe
1
1K
Member Avatar for =OTS=G-Man

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 …

Member Avatar for sknake
1
191
Member Avatar for AceiferMaximus

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 …

Member Avatar for AceiferMaximus
1
2K
Member Avatar for blahbla

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

Member Avatar for blahbla
1
160
Member Avatar for Grn Xtrm

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 …

Member Avatar for Grn Xtrm
1
202
Member Avatar for swolll

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 …

Member Avatar for swolll
1
627

The End.