132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lorita

Hi. I can't figure out what I'm doing wrong here. I know I have to instantiate a Carpet object, assign values then pass the instance to the printArea func. Easier said than done! Thanks for any help!! L #include<iostream.h> #include<conio.h> class Carpet { public: int lengthInFeet; int widthInFeet; }; void …

Software Development c++
Member Avatar for Acidburn
0
176
Member Avatar for Acidburn

I have this function: [code] bool Date::testEqual(Date &someDate) { if (Date == someDate) return true; return false; } [/code] but it returns 3 errors , [quote] C:\computer science programming\excerise sheet 5\2 - Date.cpp(91) : error C2143: syntax error : missing ')' before '==' C:\computer science programming\excerise sheet 5\2 - Date.cpp(91) …

Software Development c++
Member Avatar for Acidburn
0
170
Member Avatar for mel2005

at the moment this is a stack of queue, i am trying to make it into first in first out, (FIFO) , can anyone help. thank you very much [code] #include <iostream.h> #include <stdlib.h> const int STACK_SIZE = 6; const int NIL = -1; const int LAST_ELEMENT = STACK_SIZE - …

Software Development c++ display queue
Member Avatar for mel2005
0
161
Member Avatar for B33FALO

Hi everybody. I'm pretty new to java programming, just taking it as independent study my final year of high school, and I was looking for a little help. I was wondering if there was a way to have the program pause and wait for the user to tap any key …

Software Development java
Member Avatar for server_crash
0
7K
Member Avatar for Auto

I have a function in one of my programs that picks a random state from a list. It then puts this random state in a structure array. However the name selected from the list does not match the name that winds up in my array structure. The following is not …

Software Development c data-structure
Member Avatar for Auto
0
155
Member Avatar for hasan2003

Hi thanks for comming to this thread... can any one give me the idea how to use javax.swing.Icon interface?

Software Development java java-swing
Member Avatar for Ghost
0
117
Member Avatar for fiberoptik

I have a program to write that takes in the date in ##/##/## format. I then write the month day, year output. What I'm totally lost on is how to get from reading the char array to integer numbers?? Big time Lost! Need help!

Software Development c++
Member Avatar for Narue
0
212
Member Avatar for rpgplyrff8

I have been working on this project for my C++ class that I am taking and Ive gotten an error message I have never seen before. When I am attempting to execute it i get the flowing error: error LNK2001: unresolved external symbol "int __cdecl s(void)" (?s@@YAHXZ) I have also …

Software Development c++
Member Avatar for Dave Sinkula
0
145
Member Avatar for duner

Hey all, First post here and hello to everyone. I've been studying C for a few months now, and everythnig has been making sense and I'm enjoying the challenge of learning to progeam. Ther is one thing that keeps eluding my understanding of arrays, and that's using a variable in …

Software Development c first-post
Member Avatar for duner
0
2K
Member Avatar for Acidburn

Hello I'm getting 2 errors c:\computer science programming\excerise sheet 4\student\student.h(8) : error C2629: unexpected 'class Student (' c:\computer science programming\excerise sheet 4\student\student.h(8) : error C2238: unexpected token(s) preceding ';' heres the student class: [code] #ifndef STUDENT_H #define STUDENT_H class Student { public: Student(const char *, const Date &); void printStudent(); …

Software Development c++ oop
Member Avatar for Dave Sinkula
0
270
Member Avatar for dbarcode

I am currently trying to call a program from VB.Net that uses some command line switches. The following is the code I am using. The problems is that I get the error: "No application is associated with the specified file for this operation." CODE: Private Sub Button3_Click(ByVal sender As System.Object, …

Software Development vb.net
Member Avatar for dbarcode
0
152
Member Avatar for hasan2003

A teacher of mine at NCC course said that a Array cell contains the memory address (pointer) of the next cell. is it true ?

Software Development c
Member Avatar for Acidburn
0
138
Member Avatar for jengels

For this program, we need to read in a file which has baseball stats. Our program reads in the dat file then parses each line in the file. The file looks like this: Joe h,o,h,s,h,o,h,h,h,o,o,o Bill s,o,o,h,h,o,s,s,o So far I'm ok with this. Here is the part that I'm struggling …

Software Development java
Member Avatar for Phaelax
0
171
Member Avatar for tat2dlady

I have a problem where I read in a 2D matrix and divide the matrix into 2 parts, where the sums of each part are equal. Each part must contain contiguous integers that can be networked together by following paths from one intger containing cell to another via shared sides. …

Software Development c
Member Avatar for tat2dlady
0
165
Member Avatar for Asif_NSU

I have a template linked list class, eg: [CODE]LinkedList<int> list1; LinkedList<implicant> list_imp;[/CODE] Now I need a Linked List of Linked Lists, This is how I declared [CODE]LinkedList<LinkedList<implicant> > list_of_lists;[/CODE] Then I declared a Linked List of implicant class. [CODE]LinkedList<implicant> implicants_list;[/CODE] I calculated some value and put them in the implicants_list. …

Software Development c data-structure linked-list
Member Avatar for Narue
0
144
Member Avatar for JoBe

Hi ladies and gents, I wanted to start a new exercise, but after reading it several times, I actually don't know what the exercise is all about :!: The translation into English is this: [quote]Write a function wich can be declarered as the following: unsigned int datecode(int year, int month, …

Software Development c++
Member Avatar for Narue
0
403
Member Avatar for blackdove

I'm doing a "magic square" program and I'm having trouble with a button. It is supposed to stay active for as many clicks as it takes to fill the array storing the numbers, then become disabled. The button stops working the first time i click it though, and i dont …

Software Development c
Member Avatar for blackdove
0
132
Member Avatar for nabil1983

Ok wrote this program out, compile it it compiles, when i run it it starts off nicely, but when i enter Album Name it gives me an error. Neone know where im going wrong..... import javax.swing.*; public class CdStorage { public static void main (String[] args) { String menu_choice; int …

Software Development java java-swing
Member Avatar for nabil1983
0
140
Member Avatar for the_shark

Hi friends... I have a problem with some c codes and I think that you will be Capable to point it up for me. However, I do not want anybody to post the correct and complete code to me . I want to enter a string of numbers and the …

Software Development c first-post
Member Avatar for the_shark
0
172
Member Avatar for jasweb2002

Hey everyone, Alright, my project requires that I write a program to demonstrate my understanding of class inheritance. Problem is the teacher wants us to use Java, something I have never used and the teacher did not even give us a crash course in. Right now I am trying to …

Software Development java
Member Avatar for paradox814
0
154
Member Avatar for mb1

[code] /* Write a program that requests a file description (word) and a string from the user then states the number of occurances of the string in the file. (We will search for the word 'the'.) If the file does not exist, the program should state this to the user.*/ …

Software Development c++
Member Avatar for mb1
0
182
Member Avatar for mehdy

how i can change buttons control caption at runtime (with code)

Software Development c
Member Avatar for Tight_Coder_Ex
0
139
Member Avatar for Mature_Student

Hi there, I have used the advice in this forum to solve most of the problems I have had so far but I am running out of time on this final assignment (due this evening) and I am stumped. I need to write a function that takes a time in …

Software Development c
Member Avatar for Mature_Student
0
227
Member Avatar for Meldroz

Hey guys and gals, an int in java is 4 bytes as we all know i bet. Trying to break my into 4 bytes : int foo = 87; bytes[4] mybyte = new bytes[4]; the problem is i don't really know how to break my int into single bytes i …

Software Development java
Member Avatar for Meldroz
0
167
Member Avatar for rooparaj

1.Compute CRC32 checksum, write a quick piece of code that accepts the packet of data and returns the CRC. 2.How do you use the Mouse OFF event

Software Development visual-basic
Member Avatar for Comatose
0
198
Member Avatar for Auto

After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file. Here's the definition in my [B]main.cpp [/B] above the int main() of course [CODE][B]struct[/B] employee { [B]char[/B] name[[COLOR=Navy]20[/COLOR]]; [B]int[/B] schedule; [B]int[/B] level; }; [B]struct[/B] employee salesdept[[COLOR=Navy]10[/COLOR]];[/CODE] then in my …

Software Development c
Member Avatar for Auto
0
242
Member Avatar for Auto

I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an enumerated data type and here is the code I have with a …

Software Development c
Member Avatar for Auto
0
154
Member Avatar for kaoss1103

Ok i've just started programming(<-- i bought a book)well just started learning, and already 2days in im faceing issues i cant deal with yet or dont understand (well i am on a mac). so i think it would be a smart move getting a mentor(a nice person willing to exchange …

Software Development c email
Member Avatar for Acidburn
0
157
Member Avatar for crestaldin

[COLOR=Navy][FONT=Comic Sans MS]Can anybody help me with a code to clear the screen using C++. I have a program that has to continuously make changes to an array and display the array after each modification. All I need is a code to clear the screen after each display. Thank you[/FONT][/COLOR]

Software Development c++ display
Member Avatar for alc6379
0
142
Member Avatar for server_crash

How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment?

Software Development java
Member Avatar for jwenting
0
164
Member Avatar for Acidburn

When running the following code i get a big compile error: [QUOTE] Linking... main.obj : error LNK2001: unresolved external symbol "public: __thiscall debug::debug(int)" (??0debug@@QAE@H@Z) Debug/main.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. [/QUOTE] Class definiation saved as : class.h [php] #ifndef CLASS_H #define CLASS_H class debug { …

Software Development c++ oop
Member Avatar for Dave Sinkula
0
573
Member Avatar for stupidenator

Hey all. I am attempting to build a java applet with just a textfield and a button for a search on a web site. When the button is pushed, I have it set up to look at what the user typed into the textfield and then match it to either …

Software Development java web-browser
Member Avatar for stupidenator
0
111
Member Avatar for tenoran

Could anyone define "Memory leaks" well ? 'cause pretty hard for me to understand with C++ books.

Software Development c++
Member Avatar for Acidburn
0
90
Member Avatar for Fasola

I know about double arrays but haven't heard of a triple array It maybe a stupid question, but do they exist? example (obviously not real code): X = length Y = width Z = height array[x][y][z] = some point located somewhere in the area of a cude OR have you …

Software Development c++
Member Avatar for Fasola
0
312
Member Avatar for dave2point0

Hi, I am making some software for microchips. I am currently developing some algorithms or the PC, and was wondering if there is a way to access a mouse button in very simple C, not c++, in the form of a variable, either on or off. Also, switch bounce is …

Software Development c++
Member Avatar for dave2point0
0
155
Member Avatar for JoBe

Hi ladies and gents, I made this exercise in wich recursion has to be used and it worked as it should: [CODE] void ggd(short x, short y) { short a = 0; if (y == 0) { cout<<"The largest common divider is: "<< x <<endl; } else { a = …

Software Development c++
Member Avatar for JoBe
0
185
Member Avatar for c_s_m_o_s

hi. I read a .txt file and i want to put the values from it , to an array. I have dificulties. here is the code i am using: [CODE] public void read(File afile) { FileInputStream fInpStr = null; BufferedReader bRead = null; StringTokenizer strTok = null; String line = …

Software Development java
Member Avatar for c_s_m_o_s
0
155
Member Avatar for gschoser

I at least have the program working correctly thanks to the awesome help from various boards and people I work with. However, now I want to tweak the program a little bit. I am currently using a combobox for the interest rate and term. I would like to use either …

Software Development display java java-swing
Member Avatar for Phaelax
0
152
Member Avatar for Vincentjames501

Hey Guys, im trying to create a timer in c++ that starts at one, and every second the program displays the next number starting from -15, i have the start, but what i want is a breaker button... Such as while its counting, i want to be able to press …

Software Development c++ display
Member Avatar for Vincentjames501
0
160
Member Avatar for Maple_Tiger

I keep seeing these two words in Sams teach your self C++. Do they represent the same thing when talking about variables? I beleave that I know what "define" means. State it's type, it's name, and semicolon. However, I see that "declare" is used for, what seems, the same meaning. …

Software Development c++
Member Avatar for Maple_Tiger
0
190
Member Avatar for JoBe

Hi ladies and gents, I'm trying the next exercise: Write a function value, wich adds the decimal numbers of 'n' together and return the result of this into main? For example: 0.1234 = 10 0.01234 = 10 0.3286 = 19 What Ive got so far is this: [CODE] short amount …

Software Development c
Member Avatar for JoBe
0
299
Member Avatar for sasha16

Hello, I have been working for hours trying to get my mortgage calculator program to work. The purpose of the program is to allow user input of the loan amount, interest rate, and term in years, and then display the mortgage payment amount. I also have to list the loan …

Software Development c++ display
Member Avatar for Dave Sinkula
0
150
Member Avatar for Acidburn

This is gonna take some time, anyway here it is: the student class : [PHP] #ifndef STUDENT_H #define STUDENT_H class Student { public: Student(const char *, const char *, const Date&, const job&); char * getfirstName(); char * getlastName(); void getbirthdate(); void getjobnumber(); private: char firstname[25]; char lastname[25]; Date birthdate; …

Software Development c++
Member Avatar for Acidburn
0
137
Member Avatar for shouvik

"THINKING IN C++" a real cool book in C++ is available online and can be down loaded free of charge. The site is!!! [URL=http://www.codecuts.com/mainpage.asp?WebPageID=315]http://www.codecuts.com/mainpage.asp?WebPageID=315[/URL]

Software Development asp c++
Member Avatar for Saelice
0
306
Member Avatar for ncat_08

I have two programs that i have to write by next friday (april 1 ) but i have no idea how to do them. Can someone please help me out. These are the [B]conditions for the 1st one:[/B] 1) read floating point numbers into an array until teh sum of …

Software Development c++
Member Avatar for ncat_08
0
90
Member Avatar for raghavendrak

Hi I have installed Eclipse and I am trying to run C++ programs using the cdt tool which I installed it from the update manager present in the eclipse itself. But whenever I am trying to run a C++ program I am getting this error. Error starting process java.io.IOException: Exec_tty …

Software Development c++
0
144
Member Avatar for Toulinwoek

I want to create an application that consists of several "modules", each of which would be based on a database table, and will be opened either from a menu or from a button in an Outlook-styled toolbar. Obviously I'll create a "main" window, but then there will be several windows, …

Software Development visual-basic
Member Avatar for Toulinwoek
0
153
Member Avatar for Alfarata

No matter what I enter in the text box txtDoorSeries when I run with Debug and a watch on DoorCode it always is 1 . It does not fall through the if statements. Am I using the wrong properties? Thanks for any help. Sub DrCode() If Val(txtDoorSeries.Text) = 610 Or …

Software Development visual-basic
Member Avatar for N[e]tt[e]
0
188
Member Avatar for N[e]tt[e]

Anyone can help me? I'm doing my final year project. I need source code for my project. I need to know how can i link my Ms access to my project..using OLEdb and Odbc..I need to do log in page(login.aspx) but i dunoe how to type the coding.anyone here can …

Software Development vb.net
Member Avatar for N[e]tt[e]
0
160
Member Avatar for nabil1983

Hi all, Ok i've started doing a mini project about a CD collection database. i got the program working ata stage where you can enter a single entry and the record is printed to the screen, the problem im having is i can not seem to modify the program to …

Software Development java java-swing
Member Avatar for tonakai
0
161

The End.