199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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; … | |
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 … | |
[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 … | |
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, … | |
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 … | |
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 … | |
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 | |
[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 <= … | |
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: | |
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 … | |
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 … | |
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 | |
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) … | |
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. ( … | |
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 - … | |
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 … | |
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 … | |
Hi thanks for comming to this thread... can any one give me the idea how to use javax.swing.Icon interface? | |
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! | |
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 … | |
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 … | |
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(); … | |
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, … | |
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"; … | |
A teacher of mine at NCC course said that a Array cell contains the memory address (pointer) of the next cell. is it true ? | |
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 … | |
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. … | |
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. … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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.*/ … | |
how i can change buttons control caption at runtime (with code) | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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] | |
How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment? |
The End.