132,726 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 :)

Software Development c
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 …

Software Development c++ linked-list
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 …

Software Development python
Member Avatar for Mensa180
1
343
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 …

Software Development
Member Avatar for nenadnikolic
1
389
Member Avatar for mmiikkee12

Seriously, what is any programming language without a HelloWorld app?

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

Software Development java
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 …

Software Development c visual-studio
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 …

Software Development c c# c++
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 …

Software Development c++
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 …

Software Development java
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 …

Software Development c++
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 …

Software Development c++
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 % …

Software Development c++
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 …

Software Development java
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 …

Software Development c
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) …

Software Development c++
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 …

Software Development c++
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); …

Software Development c++
Member Avatar for nated
1
50
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 …

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

Software Development java java-swing
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.

Software Development c
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 …

Software Development
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 …

Software Development c++
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 …

Software Development visual-basic
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 …

Software Development c++
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--) { …

Software Development java
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]

Software Development c#
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 …

Software Development vb.net
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 …

Software Development java java-swing
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 …

Software Development java
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 …

Software Development java
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, …

Software Development c c# c++ listview
Member Avatar for kvprajapati
1
389
Member Avatar for adsiq
Member Avatar for shaneselling
1
121
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 …

Software Development java
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 …

Software Development
Member Avatar for DdoubleD
1
358
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 …

Software Development dataset
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 …

Software Development
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 …

Software Development c# c++
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; …

Software Development c++
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 …

Software Development c
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 …

Software Development c++
Member Avatar for swolll
1
627
Member Avatar for serkan sendur

guys i need an error-free way of keeping name value pairs in a regular c# string. i am quite busy, i dont think i am able to come up with the best algorithm now. what i want is two methods one to add a name-value pair to the string, the …

Software Development algorithm c c# c++ regex
Member Avatar for kvprajapati
1
1K
Member Avatar for nomemory

Hello, I am a python newbie and I am trying to accommodate to the basics. What's the python equivalent for the following Java snippet ? [B]Java:[/B] [CODE]public class Main { public static void main(String args[]){ int a,b,c; a= (int) (Math.random()*100); c=0; while((b=(int)(Math.random()*100))!=a){ c+=1; } System.out.println(c); } }[/CODE] I was trying …

Software Development java programming-construct python
Member Avatar for woooee
1
217
Member Avatar for ZidaneXero

Hello everyone Im new at this thing of programming and im having trouble in saving a new record to the database, I've searched online for this problem and ive tried all the possible ways that i find in internet but i cant manage to make it work correctly This is …

Software Development microsoft-access vb.net visual-basic
Member Avatar for kvprajapati
1
452
Member Avatar for Frederick2

I have a general question about threads prompted by something strange I'm seeing in an application I developed involving ODBC access to Microsoft Access and SQL Server databases. Let me present the context of the problem first. I have been developing some tutorials on ODBC database access in two different …

Software Development c++ gui microsoft-access storage
Member Avatar for Frederick2
1
597
Member Avatar for husna_

Hello, My question is: Can I add in new column(S) in the gridview if the column is not found in the database? - E.g. An indicator if a certain lecturer is a ML/Lec (roles). I have a gridview that is "extracted" out from the database. But I want to add …

Software Development c#
Member Avatar for serkan sendur
1
213
Member Avatar for Covinus

whats the reason behind using int main over void main? in most books ive read they often discourage the use of void main. but offer little info about it

Software Development c++
Member Avatar for Tom Gunn
1
1K
Member Avatar for george_82

I am new in C# and I was trying to add socket programming tools from the COM component list .But I found that thee is no microsoft winsock component in that list. So can somebody tell me how to add winsock component to my tool box.

Software Development socket-programming
Member Avatar for george_82
1
124
Member Avatar for ITech

I have created a windows application using C#. the problem is fairly simple. I doono how to refer to the Application path in c#. In Vb we can use App.path to refer to the Application path My C# code for opening a report is as [code=c#] public partial class frmSpaBill …

Software Development c c# c++ file-system
Member Avatar for serkan sendur
1
353

The End.