199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Gambit0789

i am currently making a game for my VB class and i am trying to make some boundary code. I have done everything. i've asked people my friends for help and we can't figure it out. if anyone could give me some clues to get started that would be great. …

Member Avatar for belama
0
178
Member Avatar for rharvison

This is my very first introduction to C++ and I am stuck with a very simple mini-calculator project. I cannot figure out what the errors are that the compiler is showing. I have shown my written code and the compiler messages below that. I am receiving syntax errors on the …

Member Avatar for rharvison
0
115
Member Avatar for redsabre

Hi all, I have an issue and am looking for some help. This would be a quick fix (if it's even possible), 'cause I am working on, and will be going the Perl/CGI/etc. route, but for now, here's the sit. I have a "mailto" web form. When the site visitor …

Member Avatar for Comatose
0
179
Member Avatar for solthirsty

I think the best way for me to explain this is to show you guys what im trying to do. [code] #include <iostream> class customer { int CustID; public: void CCustRecords(int NumOfCust) { x = NumOfCust; for(int i = 0; i < x; ++i) { cout << "Enter the Customers …

Member Avatar for Dave Sinkula
0
178
Member Avatar for Comatose

[CENTER][SIZE=5][B]Prelude[/B][/SIZE][/CENTER] In the last tutorial, we covered a basic skeleton of a small CGI in Perl. It didn't do much, other than check if the user tried to go directly to the CGI, or if they were submitting information to us through a page. This doesn't do us a whole …

0
346
Member Avatar for mikecoyner

whenever i use cin.get in a loop it skips over the first cin.get. for example, in the code below, the programs skips over the cin.get for the stu.name?? [code]#include<iostream.h> #include<fstream.h> struct student { char name[20]; char ssn[20]; char dob[20]; float gpa; }; main() { student stu; ofstream outfile; char choice; …

Member Avatar for mikecoyner
0
258
Member Avatar for EvilObsidian

What I'm trying to do is format input from a text area so that it is all uppercase letters and numbers, eliminating all punctuatoin and whitespace. I want to use a method format() to loop through all the characters in the text and use a switch statement to determine whether …

Member Avatar for server_crash
0
311
Member Avatar for Comatose

[CENTER][SIZE=5][B]Prelude[/B][/SIZE][/CENTER] Perl is an excellent language, versatile, powerful, and not too difficult to learn. I'm not going to go into detail about Perl, and explain why we have to put #!/usr/bin/perl on the first line, or how using modules work, but I will explain how to check for information from …

0
442
Member Avatar for drunkpanda

recently, i bought a textbook call "Objects first with java" for self study. at the chapter 7, design a "Command Line Game" and a exercise ask me to put more functions in the game, as i do so i encounter many problems, and one of the problem as sohowing below, …

Member Avatar for stupidenator
0
349
Member Avatar for Hjcooke

This is a piece of work i need to complete for my Object Orientated programming module at university. The task, (User Input) Order Number, Name, Address line 1 and Address line 2 and select either Computer and/or printer check box. N.B. These FIVE fields must be completed by User otherwise …

Member Avatar for shakaal
0
263
Member Avatar for richyrb

ok its one of those things i can't get my head around it at all.. i dont know if it the code i have already thats causing the problem or the fact that i dont know how to do MOD properly.. :( its causing bad gray hair.. :( so if …

Member Avatar for Lafinboy
0
302
Member Avatar for Vincentjames501

How would one change the size of the font and/or the font itself. Im using win32 (I guess.. its not MFC).... Does anyone know how to do this in c++.... Thanks... Vince

Member Avatar for Tight_Coder_Ex
0
316
Member Avatar for koolguysj

[CODE]/* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { unsigned long int count = 1; unsigned long int result = 1; while(count <= …

Member Avatar for Dave Sinkula
0
128
Member Avatar for 12345letsgo

I would like to add an avatar set to my forum, but have no idea how(it did not come with that opttion, so iam guessing i'll have to do it manually) i know no php, but am good ith css/html/javascript. would appreciate any help. :lol:

Member Avatar for Gary King
0
168
Member Avatar for Jankos

Hi, i just started c++ programming in college this semester, and i have a project that i have no idea how to do. Im sure it will be extremely simple to all of you experts, but i just cant think of a way to do it. Maybe some of you …

Member Avatar for Narue
0
103
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 …

Member Avatar for Acidburn
0
176
Member Avatar for nivedita

How can we parse the request header in Java scipt to find out the protocol of the request, whether it is http or https? Thanks in advance Nivedita

Member Avatar for tgreer
0
260
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) …

Member Avatar for Acidburn
0
170
Member Avatar for Him3

Hi all, I have a array of 96 integers and I want to store each one in Database. I want to access all these 96 integers in a Java program. Now I am confused about how to store it? 1> wheather i have to store it as 96 fields. ( …

Member Avatar for Him3
0
106
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 - …

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 …

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 …

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?

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!

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 …

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 …

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

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

Member Avatar for dbarcode
0
152
Member Avatar for johnnybt

Ok I have a form. You hit submit and it spits it back to you on a confirm page. You hit submit there and it is points you to the page with the following code that is supposed to email it to me. <? //Declare the variables $recipient = "entries@mysite.com"; …

Member Avatar for PoA
0
137
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 ?

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 …

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

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

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

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 …

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 …

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 …

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 …

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

Member Avatar for mb1
0
182
Member Avatar for mehdy
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 …

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 …

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

Member Avatar for Comatose
0
198
Member Avatar for haria_kishore

Hi guys, sorry to trouble u guys,but can't resist Actually i have a table (transaction table) in which i have got customer id(can have more than one record with same id) ,acc no, and type (either credit or debit). Now i want to find the balance of the customer by …

Member Avatar for haria_kishore
0
109
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 …

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 …

Member Avatar for Auto
0
154
Member Avatar for xlogan777

i am a beginner and this is what i have done so far. 1.i have installed ms IIS and dreamweaver mx and cold fusion mx. 2. i start the IIS and i save the test cf file under inetpub/wwwroot/james ps.. my syntax for the CF is ok cause i copied …

Member Avatar for skyhawk133
0
157
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 …

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]

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?

Member Avatar for jwenting
0
164

The End.