43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for phalgun_g

hello everyone.. I have been given an assignment to do a mini project in my college using C.As such im in dire need of ideas for the same. I need ideas for programming games,innovative programs etc.. till date they have taught us C pointers structures & arrays.. So ill have …

Software Development c
Member Avatar for MosaicFuneral
0
161
Member Avatar for rabbithaveit

Iv used arrays to store usernames Iv stored the array data in a procedure called "Usernames" But im wondering if its possible to then use the arrays to do a crosscheck validation for a login. Iv done some extent of research and Im either typng it wrong...Or I dont know …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
203
Member Avatar for rEhSi_123

Hello everybody! I am creating a Book library system in C++. I created a login class where the user types in a username and password and if successful is able to log into the menu system. Now, everything goes well unless and untill the user types in the right credentials …

Software Development c++
Member Avatar for SeeTheLite
0
5K
Member Avatar for GDICommander

Hello, everyone! I am using Xalan to parse a XML document. This is a glimpse of what I do: [CODE] std::string fileNameStr = fileName.Tofilename(); XalanDOMString strFileName(fileNameStr.c_str()); LocalFileInputSource srcFile(strFileName.c_str()); XalanDocument* document = parserLiaison.parseXMLStream(srcFile); [/CODE] What I want to do is to know the encoding of the source document. There is no …

Software Development xml
Member Avatar for GDICommander
0
120
Member Avatar for Falkoner1

Okay, I'm trying to have a linked list autonomously delete itself, however, the destructor function I am using doesn't seem to work, it just keeps constantly looping, until the program just ends itself. Here's the function: [CODE]node::~node() { if(this->next != NULL){delete this->next;} delete this; }[/CODE] Basically, this should run through …

Software Development c++ linked-list
Member Avatar for Falkoner1
0
171
Member Avatar for turbomen

I need to write a program that asks a user for their new password, to check that they have entered it correctly they must verify it by entering it again. If the two passwords matach then you accept the change and tell the user that they have been successful on …

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for jessica2009

[code=python]def main(): print (" PC : Hi there.whats your name?") userit = raw_input (" user :") print (" Pc : Nice to meet you " ) , userit , userit = raw_input(" Do you like python? (A=Its Great, B=Its Ok, C=Its Rotten)") if userit == A: userit = userit.upper() print …

Software Development python
Member Avatar for vegaseat
0
129
Member Avatar for turbomen

Question: I am to write a comparison program that outputs true mathematical statements. Ask the user for two numbers, and then output one of the following statements number1>number2 number1<number2 or number1=number2 The user must also be able to keep running the program with different numbers, when they have finished running …

Software Development pascal
Member Avatar for FlamingClaw
0
88
Member Avatar for dammitjim30

Hi all! I am racking my brain trying to figure out why my code is not working for this TicTacToe board assignment. I keep getting the following error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at TTTBoard.makeMove(TTTBoard.java:79) at TTTGame.main(TTTGame.java:59) Java Result: 1 The assignment calls for a 3-by-3 2-dimensional array of …

Software Development java
Member Avatar for dammitjim30
-1
452
Member Avatar for serkan sendur

hi guys, i downloaded eMbedded Visual C++ 4.0 and when i run setup.exe it asks for a serial number, where can i find it? thanks

Software Development c++ microsoft
Member Avatar for jbennet
0
2K
Member Avatar for turbomen

A positive integer is entered from the keyboard. If it's even, all even integers from 2 up to and includng the entered integer are displayed. If odd, all odd integers from 1 up to and including the entered integer are summed, and the sum displayed. Please help me again.

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for konczuras

Hello everybody! There's something I can't figure out myself. I'd like to use an hscrollbar for setting a float value. The float would be from 0 to 1, like 0.02, etc. So I'd use the integer value of the hscrollbar, and divide it by 100. But if try it, I …

Software Development
Member Avatar for konczuras
0
140
Member Avatar for Valaraukar

Hi, I am basically writing a program that reads in ASCII files exported from 3ds max in order to reproduce an object in OpenGL. My code works fine for one object and I've even got it working for two as long as the second object contains less vertices/facet windings than …

Software Development c opengl
Member Avatar for nucleon
0
195
Member Avatar for ctrl-alt-del

Hello all! I have yet another question. Since I'm making good progress in learning C# I'd like to learn some new stuff that I have been putting off and to clean up my code. As such it seemed like a good idea to try and create a frontend for a …

Software Development
Member Avatar for ctrl-alt-del
0
140
Member Avatar for songweaver

Hey guys I am having a problem knowing where to start on writing this Leap Year program that wants a day number output. Here is the scenario: Write a function [I]dayNumber[/I] that returns the day number (1 to 366) in a year for a date that is provided as input …

Software Development c++
Member Avatar for songweaver
0
699
Member Avatar for javaman2

hi everyone, i need help with an assignment that i'm having trouble with. I need to create a class called Money whose objects represent amounts of money, with two instance variables of type int for the dollars and cents in the amount of money i got the constructors down but …

Software Development java
Member Avatar for darkagn
0
708
Member Avatar for Tank50

Hi Once I complie below coding part,it give me error meassage.The Error Meassage is Error . [COLOR="Red"]The name 'CurrentOutLet' does not exist in the current context[/COLOR] BelowI write my coding [CODE]. public SqlDataReader Current_outletReport(string code, string startdate, string enddate) { try { SqlDataReader CurrentOutLet; SqlConnection con; string str = "SELECT …

Software Development
Member Avatar for Tank50
0
95
Member Avatar for Dragonsfire

I'm trying to write a simple deque program that lets you add/delete numbers and display them at will. The code is as follows. User.cpp: [code] #include <iostream> #include "Doth.h" using namespace std; int main() { char choice='m'; int n; Deque call; while(choice!='q'||choice!='Q') { cout<<"Menu:"<<endl; cout<<"[A] Add to the front"<<endl; cout<<"[B] …

Software Development c++
Member Avatar for Dragonsfire
0
123
Member Avatar for littlespy

Hi all, I'm working on a programming assignment for class and after trying a few things on my own I got stuck. Basically my function will take a string and count the number of times each word in the string occurs in the string. For example this string: The brown …

Software Development c
Member Avatar for nucleon
0
100
Member Avatar for WaelTheNoble

Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of …

Software Development c++ file-system flash
Member Avatar for WaelTheNoble
0
3K
Member Avatar for lilkid

[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to …

Software Development file-system python
Member Avatar for lilkid
0
128
Member Avatar for farhan.foxtrot

Running this file returns the error: Exception in thread "main" java.lang.NullPointerException at Packet.<init>(test.java:20) at test.main(test.java:46) here: line 20 : this.data[i][j] = data[i][j]; line 46 : Packet packet = new Packet(4,data,count,column); can anyone help ma how to create this constructor that accepts String[][] ? [code] class Packet{ int op_code; String[][] data; …

Software Development java
Member Avatar for Ezzaral
0
99
Member Avatar for DemonGal711

Alright, I need to create an N-ary tree that contains a list of words all of the same length so that we can create a word ladder from it. Given a word (like cat), we are suppose to put that as the root and from a dictionary we are given, …

Software Development c++
Member Avatar for DevC++4.9.9.2
0
785
Member Avatar for TriniBabe

please help i think d error is in inputtin d values into d linked list! D files are attached

Software Development c++ linked-list
Member Avatar for Nick Evan
0
75
Member Avatar for computercobra

I am trying to make a simulation of the enigma machine and was wondering if this is the right way to start the problem? Here's the main.cpp file: [CODE] #include <iostream> #include <ctime> #include <cmath> #include "enigma.h" using namespace std; int main () { enigma machine_1; return 0; } [/CODE] …

Software Development c++
Member Avatar for computercobra
0
2K
Member Avatar for loren41

[B]I have a text file that contains multiple records. Within the records, I am able to locate the line containing the desired text and read it into a string. Inside the line, I know the number of the starting character for the words I need. The length of the substring …

Software Development python
Member Avatar for sneekula
0
259
Member Avatar for seaders

Ok, I've a DLL that's hooked to pick up all Mouse and Keyboard events in it. What I then want to do is through all those to another window. I understand how to do simulate these events, with PostMessage and SendMessage, to the HWND, but what I'd like to do …

Software Development c++
Member Avatar for nucleon
0
712
Member Avatar for madhatter84gn

I am running into an issue that involves sharing an XSD2Code generated class. I am working with one huge xml schema that I generated into a class in a common class library. The problem I am facing is multiple applications will be referencing this common class but I want to …

Software Development c c# c++ xml
Member Avatar for madhatter84gn
0
95
Member Avatar for gabec94

Hi, does anyone know what is wrong here? The program is supposed to find the largest number entered, and the 2nd largest number entered. The process for assigning the 2nd largest is not working, I do not think I am evaluating it correctly, and suggestions? [code=java] package random; import java.util.Scanner; …

Software Development java
Member Avatar for masijade
0
236
Member Avatar for Icebone1000

How I can do it? I want a constructor of a object to have parameters, this object is inside other class..the compiler say the class dont have proper default constructors..(error C2512) [CODE=C++] ... class Game{ private: Player P1; Player P2; public: Game(void);//constructor ... [/CODE] [CODE=C++] class Player{ private: int x;//player …

Software Development c++
Member Avatar for NicAx64
0
169
Member Avatar for pt_solar

This is the question asked, your help is very much appreciated : One of your professors has asked you to write a program to grade her final exams which consist only of 20 multiple-choice questions. Each question has one of four possible answers:A,B,C or D. The file CorrectAnswers.txt , which …

Software Development c++ open-source
Member Avatar for SeeTheLite
0
196
Member Avatar for pt_solar

hi I have a problem finding the lowest and highest selling product in this question. Can you please help me ? this is what I have . It also wants me to display the name of the salsa not how many jars were sold how do I include that in …

Software Development c++
Member Avatar for pt_solar
0
779
Member Avatar for chris5126

hi, i am totally stuck i need a script (that works in ksh under solaris 10) that takes the following output [code] d15 509MB c1t0d0s5 d13 7.0GB c1t0d0s3 d11 1.5GB c1t0d0s1 d10 10GB c1t0d0s0 d25 509MB c1t1d0s5 d23 7.0GB c1t1d0s3 d21 1.5GB c1t1d0s1 d20 10GB c1t1d0s0 [/code] and for the …

Software Development shell-scripting
Member Avatar for Aia
0
247
Member Avatar for blaklite

firstly hello to you all.. Secondly, im new(ish) to java and prone to doing silly things so i'm probably doing it all wrong BUT I want to be able to have a class that has as one of its members as an array of objects. When the class is instanced …

Software Development java
Member Avatar for blaklite
0
125
Member Avatar for turbomen

A given year is a leap year if it is divisible by 4. However there are a few exceptions to this rule, if any of these years are divisible by 100 they are not leap years unless they are also divisible by 400 - so 1990 is not a leap …

Software Development pascal
Member Avatar for FlamingClaw
0
91
Member Avatar for turbomen

I have got a question which come together with my answer but I found that it does not too match with the question. Can you help me to make it changes? Question: A letter of the alphabet is to be input from the keyboard, and a message output as to …

Software Development pascal
Member Avatar for FlamingClaw
0
104
Member Avatar for meistrizy

Thanks in advance for your help. The problem is this: I am supposed to read an array from a file and ask the user to input a name to search for within the file. If the name is there then return the position number in the file, if not output …

Software Development c++ file-system
Member Avatar for meistrizy
0
140
Member Avatar for PRATS 1990

I HAVE A VERY PECULIAR PROBLEM,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, THE PROGRAMS I COMPILE SHUT DOWN AFTER COMPILING ONCE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, FOR EG- I CREATED THIS PROGRAM FOR GETTING THE ASCII CODES OF AN ALPHABET ,,,,,,,,,,,,,,,,,, AFTER I WROTE THE ALPHABET IN DOS IT DISPLAYED ITS VALUE AND SHUTDOWN,,,,,,,,,,,,,,,, HOW CAN I ALTER MY PROGRAM TO …

Software Development c
Member Avatar for PRATS 1990
0
228
Member Avatar for southernd0529

trying to get the program to run but there is an error in line 31 (expected primary expression before else) i dont know what to do [code=cplusplus] // Devin Southern // COSC 112 - Spring 2009 // Dr Stone // Lab 9 // This program will use loop to keep …

Software Development c++
Member Avatar for southernd0529
0
142
Member Avatar for pt_solar

I'm new to this and I'm a beginner at c++. I need some help with some questions that I've been trying to solve for hours. I think I got most of this one right but I got stuck at the wages array. This question says : write a program that …

Software Development c++
Member Avatar for pt_solar
0
1K
Member Avatar for daviddoria

To remove duplicates from a vector, my first thought was to insert them all into a set, it would take care of the uniqueness of the elements, and then read them back out into my vector. However, I have a vector<Point>, where Point is a point in 3d space (ie. …

Software Development c++
Member Avatar for daviddoria
0
213
Member Avatar for YingKang

This is a part of the problem in my homework. I have : int alpha[20]; int beta[20]; int inStock[10][4]; I need to write a function copyAlphaBeta that stores alpha into the first five rows of inStock and beta into the last five rows of inStock. my program is here, but …

Software Development c++
Member Avatar for YingKang
0
298
Member Avatar for deathwishgenius

This is my first post: Ok, there's GPL'ed programs, and GPL'ed Java. Is my java program, which uses no other GPL'ed programs all my own? Simple question, simple answer... don

Software Development java
Member Avatar for deathwishgenius
0
135
Member Avatar for Swapnil Palande

Dear all, Please help me in solving following query. I want to use Encryption and Decryption to add password to database and to retrive password from database. What is the code for this? Thanks and regards, Swapnil.

Software Development c# encryption
Member Avatar for Yanivhl
0
347
Member Avatar for littlespy

Hi all, Just registered on the forum. I have a quick (hopefully) question. I'm trying to read from a text file into one single string. I'm having some trouble though and can't quite find my error. I have the following code below right now. The problem is that my function …

Software Development c file-system
Member Avatar for Aia
0
160
Member Avatar for gabec94

Hi Im trying to write simple miles per gallon program, I have gotten every part so far, but I cannot figure out how to "calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained for all tankfuls up to this point." …

Software Development java
Member Avatar for gabec94
0
928
Member Avatar for gabec94

Hi, Im trying to write a program of a salary from a textbook problem, but am having a hard time. Hopefully you can get the gist of the program, I want it to keep asking for items of what the "salesperson" has sold, until an invalid item is entered, where …

Software Development java
Member Avatar for gabec94
0
81
Member Avatar for Frizeris

Can anyone provide me with an example how to create a program using Delphi that randomizes and shows 2 words out of 78 with a click of a button? The words are: [CODE] Afghanistan Albania Argentina Australia Ausria Blegium Bhutan Bolivia Brazil Bulgaria Canada Chile Colombia Communist_China Costa_Rica Cuba Czechoslovakia …

Software Development delphi pascal
Member Avatar for pritaeas
0
78
Member Avatar for foxypj

Hello I am trying to make a program that converts different units. The conversion factors are stored within a txt file and i need to read them in. i have this code so far; but it doesn't work. using System; using System.IO; namespace Task3 { class TextFileReader { static void …

Software Development file-system visual-studio
Member Avatar for foxypj
0
185
Member Avatar for tkjr4160

Could someone please help I am getting an illegal start of expression [code] import java.util.Scanner; public class 9a { // The main method public static void main( String args[] ) { Scanner input = new Scanner(System.in); // declares and initializes the variables used to store user input. int n1; double …

Software Development java
Member Avatar for tkjr4160
0
120

The End.