199,114 Archived Topics
Remove Filter ![]() | |
I am trying to make the random generator fill my array with no duplicates. An diplay the in order but aslo first line to print array[0], then second line array[0] and array[1], so on and so on until it display all twenty on one line. Pease help [code] #include <iostream.h> … | |
Dear Brothers, Tell me what is the major difference between Asp and Php ? and also tell me which is cheap ? Thank you! Your's Harry! | |
Got everything set except dont' know where to put the no scrollbar (scrollbars=0 or scrollbars=no) command. [code] <html> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Eric King (eric_andrew_king@hotmail.com) --> <!-- Web Site: [url]http://redrival.com/eak/[/url] --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! [url]http://javascript.internet.com[/url] --> … | |
I'm desperately trying to finish of a site for my writers club and I know nothing about programing only got as far as I have care of WYSIWYG program. Anyway I want to insert a series of forms in one of the pages giving random Male Names, Female Names, Places, … | |
Hi, Ran into another issue with my program. In C or C++ is there an easy way to skip the linefead at the end of a record (hex 0a)? Thanks, | |
I'm trying to get the computer to compare a username and password entered by the user to a username and password in a text file. If a match is found, then I am going to present the user with other options. I think there must be an easier way to … | |
Im using an ADO data control to connect to an Access database .mdb I can set the ConnectionString property correctly, but when I set the RecordSource to an SQL statement such as an INSERT statement in this format INSERT INTO table_name (column1, column2,...) VALUES (value1, value2,....) it doesnt work when … | |
Hi there, I'm just thinking if DVD decryptor program is possible using VB6. If it is, can anybody give me some points to consider before going into this project. Thanks in advance. Newvbguy | |
Here is the code: [code] #include <iostream> #include <cstdlib> using namespace std; class student { public: void inputScores(); // Prompts user to enter 2 quiz, a mid term, and a final score; store // them in corresponding data members. void computeGrade(); // Compute average and then convert the average to … | |
Just wondering if you would help me in my assignment, I've started on them. I've done most of it except the following three questions. (1) Any flight can be brought to the front of the queue ready for deleting (landing) For example if the flight is in the back, we … | |
does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it. ty | |
I have questions are: If I have one shape on the form, and when I run I want to have 5 shapes on my form. What can I do? Can someone help me? | |
in an form with two text boxes, one for entering the name of a peson in english and the other for entering the name in another language say Arabic; the two languages (locales) are installed on your win Xp; manually you change from one to the other by pressing ALT … | |
[B] (1) any flight can be brought to the front of the queue ready for deleting(landing) (2) any flight can be diverted to the back of the queue for another airport if the first airport is busy or on runway closed due to an accident. (3)in the flight ID, there … | |
(Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be processed by the program. It is known that all the data … | |
Heeeeeeeeeeeeeeeeelp :cry: :cry: :cry: hello all can anybody help me pleeeeeeeeeeeeeeaaaaaaazzzzzzzzzz!!!!! Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be … | |
can anyone help me with this switch statement? i want it to go through line by line my file and, in the cases, increment x, y and z counts depending on the value of each digit in the strings. i debugged and its giving me some stupid value for xcount. … | |
i am working with VB6. i used ADODC recordset. in my Form there is some text box and command bottom. it is about Student Data for example. it can view and add new record. i want a view after adding new record.so how can i refresh DataBase record from Access … | |
i need help to rewrite this in infix to postfix using class. it was in a struct format at first, now i need to format this in a class version. [code] #include <iostream> #include <cstring> using namespace std; const int SIZE = 20; private: int top; char num [SIZE]; public: … | |
in the past i have been able to run dos commands thru C++... for example: system("cls") in C++ used to clear the screen... does anyone know if this can be done in java? | |
Can someone please help me where to begin on this problem... I don't want answers, just some guidance: I have to make a program that reads a 4 digit integer: and encrypt it with a calculation: then swap 1st digit with 3rd, swap 2nd digit with 4th and print the … | |
[code] #include <stdio.h> #include "Boolean.h" #include "combinatorics.h" /* 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) { *nfact = 1; while(n > 0) { … | |
How do you convert a string to an int? In my book under string functions, it shows this short example: [CODE]ia = atoi ("-123.45xyz"); [/CODE] which says that ia = 123. So, I tried applying this to my code. [CODE] index = atoi (a.GetCode()); cout<<description[index]; //a.GetCode() returns a number string … | |
Can anyone give me an idea how to convert an int or decimal number into hexadecimal? I know how to do it for binary by dividing by 2 and using the modulus % operator, but how do you take into account a b c d e f if the integer … | |
The problem I'm having is this: I have a table [MAX_ELEMENTS] [18] where the MAX elements can be as high as 100,000. The length of each element is 18 characters. What I doing is simply loading in full 18 character records into this table. The problem I'm having is that … | |
I want to create a program that converts mp3's to other formats. I wanted to know if anyone had any information on how mp3's are made and if there are any resources out there that I could use to learn the internals of an mp3 and other music files. Thanks | |
I have a program that uses blocking/non-blocking direct and indirect communication. I need to have it randomly choose whether or not it should do the blocking or non-blocking method and I do not know how. Does anyone have any suggestions? Thank you. | |
I am in a beginner C++ class and I have a homework problem where I must to find the greatest common divisor through subtraction. I am totally lost. Can anyone show me what I am doing wrong? #include <iostream> using namespace std; int main () { int m; int n; … | |
when using #include <iomanip> ; what is the syntax for formating numerical values for currency - example 123456, format to $123,456. Using the cout << command. | |
hi, im in the middle of a situation where i have an auto incriment primary key and i need to change its value back to zero any ideas ? | |
Hi all, This program below sorts arrays of integers. It counts the number of times it compares pieces of data to do the sort.With the array size set at 4 it always takes 9 comparisons. Does neone know how i can Modify it to read in a series of four … | |
Hi, I have a fileoutput method which when called, should output the array into a text file. The array is stored in the same public class as the fileoutput method and I am using a constructor for the array, which is in the Cd class. I would like to know … | |
Got bored, and whats better than spending your time learning. So I'd thought I'd create something fun, [code] #include <iostream> using namespace std; int main() { char array[5] = "John"; //chosen hangman char array2[5]; //populates with * char key; //ets a key from the user int life = 5; int … | |
Hi ladies and gents, Next exercise is the following: Write the function which we can declare as follows: unsigned char bcd (int n); The idea of this function is to store the last two decimal numbers of n into a 'binary coded decimal' byte and to return this value. So, … | |
hi, I was wondering if any one knew where i could find the instructions for tasm 2.8.....i am trying to compare A TO FF(100H), if greater than FF go to loopA.........I would really appereciate, if any one knows the above instruction...please help me out. thanks | |
This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it? To avoid an infinite loop make sure the loop body: alters the exit condition or contains at least one output … | |
Greetings all...long time reader, first time poster. I have 2 java files, one that contains methods that do conversions, the other contains a loop that allows a user to select "what" they want to convert. The program works, but one of the conversions is to multiply by 0.0092. When I … | |
I have this program that is supposed to take in numbers from the Main cpp file and add them to the link list. Eventually i have to sort them then display them on the screen. For right now i am just trying to insert them to the link list but … | |
Hey Guys. Can anyone see why this short script isn't working. Its a basic bit of programming to record a users answers in a multiple choice quiz. Each answer should be stored in the same array which should be passed through the 10 questions. I have written a check to … | |
I'm working on TSR through C. i have writen dogens of them for dos, :rolleyes: but it works for dos only, can you tell me who to write TSR's for windows. Thankyou.... | |
hi every 1 i am new and Ihope that you would help me I have to write a program that will allow you to enter if you enter the password without using strcmp function and here is my try [code] #include <iostream> #include <cstdio> using namespace std; bool password(); int … | |
Hey everyone. I was just wondering what people think is the best environment for editing and compiling code. Currently, I use JCreator. | |
Write the definition of a function dashedLine , with one parameter , an int . If the parameter is negative or zero, the function does nothing. Otherwise it prints a complete line terminated by a new line character to standard output consisting of dashes (hyphens) with the parameter 's value … | |
Write the definition of a function printAttitude , which has an int parameter and returns nothing. The function prints a message to standard output depending on the value of its parameter . If the parameter equals 1, the function prints disagree . If the parameter equals 2, the function prints … | |
Write the definition of a function printLarger , which has two int parameters and returns nothing. The function prints the larger value of the two parameters to standard output on a single line by itself. this is what i have so far: void printLarger(int, int){ } I have to write … | |
hello, I kep getting : [quote] C:\computer science programming\excerise sheet 6\cheque account\3 - Bank.cpp(100) : error C2614: 'cheque' : illegal member initialization: 'Balance' is not a base or member Error executing cl.exe.[/quote] [php] #include <iostream> using namespace std; class BankAccount { public: //void setAccount(int num, double amount); taken out replaced … | |
Help me if you can please ??? Got so far on my project and know gone brain dead!! Project is for company called Zenith Paints ( please someone reconise this) (The first program in the Visual C++ project is a validation program. You are required to validate three different types … | |
Hey Everybody, I'm making a Java applet and trying to post it online. Whenever I open the HTML page where the applet is, i get an error message. Here's the website with the applet on it: [URL=http://www.inquirybio.com/quiz.html]Applet Website Link[/URL] Thanks in advanced, C++ | |
![]() | Okay, not new to MySQL, or PHP, but I'm really lost on this one. I have a query (simple one really) that is supposed to return the requested values from a database. I've tested the query with MySQL direct and it works fine, but when used via the web interface, … ![]() |
What I need to do is have the data on the bottom line of my chart to show the full date as it is in the database that I take the data from. In the database it is in the form of 29/March/2005 and this is how I want it … |
The End.