132,726 Archived Topics
Remove Filter ![]() | |
I am having a little trouble incorporating a simple password into a voting machine style program. If anybody can see what's wrong with it and point it out, I would be very grateful. [CODE]#include <iostream> #include <iomanip> #include<string> #include<cstdlib> using namespace std; int main() { char choice; string password = … Software Development c++ | |
So school's out for a month and Ive been doing some hobby VB6 programming... Im writing calculators involving up to 25 variables, many constants, etc, etc, etc.. So, instead of requiring the user to input all the vars I thought I'd allow the loading of comma- or tab-delineated textfiles with … Software Development visual-basic | |
OK, here's my problem. This is supposed to print out a list of menu items. You choose from the list, then print the bill. My problem is that I can't seem to get the menu items to print out in a tabular format and my printout won't add the items … Software Development c++ | |
:cry: I am very confused, i am working on a console application and it doesn't seem that my console output codes are working. Can someone tell me whats wrong? cout << "text" << end1; Software Development c++ | |
i am trying to do a program but i have two error and i don't know what they mean. can someone please help me. this is the program [code] #include "stdafx.h" #include <iostream> using namespace std; int S1(int x, int& y); int S2(int& m, int n); int main() { int … Software Development c++ | |
Hello there, Okay i had to write a program that computes the number of days between two dates, right, and so far i'm just sort of stumped over what to do next to get it all right and functioning correctly. I've written the code and everything else, and It runs, … Software Development c++ | |
Consider this function: double find_distance (const stud &pnt_1, const stud &pnt_2); stud is a defined structure. What is the point of calling pnt_1 and pnt_2 by reference if 'const' is included at the begginning, making the value remain constant? I mean, when we call by reference, its only to change … Software Development c | |
Iam suppose to make a program that creates an employee database of names, addresses, and phone numbers. the user to search by name for an employee in the database. if the name is not found output a message to that effect. so far I have this but its giving me … Software Development c | |
ight here is my program or what i need my program to do and my frame work its pretty nasty its got lot of gaps but i just need to figure out how to output the ending to this to have the right start day the right num of days … Software Development c++ first-post | |
Sir, I need ur help in the Following Assignement. I have to write a program to store the Employee details i.e rollno,Department,salary,name,experience etc using the file operation. plz help me! Urs PriyaJaiGanesh Software Development c++ file-system | |
Hello, I'm back again and i brought my code.. This Program counts upper/ lower case letters, digits, end of sentence markers, intrasentence markers, Blanks, and all other symbols, and then approximate the following statistics on average word and sentence length. But i'm not to sure if this is the right … Software Development c++ | |
The System () function call is in C and C++, but I can't seem to find out just exactly what it can do. I use "C++ How to Program", by Deitel and Deitel, but it's silent on the application of System(). Any help would be appreciated. Thanks. PS: For example, … | |
i am taking a cpsc 140 class and i'm a little confused how to begin my assignment. Write a C++ program that reads in an unknown number of characters from the a text file, count the number of words, and print each word in reverse to the screen. Words are … Software Development c++ | |
hi all, i need urgent help. i am currently learning c++ and i have been given a program to write, I am really struggling with it and as it is an assignment whic needs to be handed in tomorrow i really need help :( - im not lazy its just … | |
Hello... I am writing a C++ program that needs to code division with remainders. My current code does not work. //Division if (num2==0) do {num2 = rand() % 10; cout<<"new number "<<num2<<endl;} //get another number while (num2 == 0); cout << "(10) "; cout<<num1 << " / " << num2 … Software Development c++ | |
Hi everyone, I am trying to compile some java codes from a .java file that i had saved to disk. Basically i am trying to build my own ide. I have a text area in which the java code is in and also have two buttons. What i need is … | |
Hi my name is Peter and I'm looking for somebody who can help me to understand how to read from external file without "destroing" existing inforamtion inside. whole staff is based on book example which i'm trying to extend. I have a programm which is working with database of 3 … Software Development c++ file-system | |
When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function? Software Development c++ | |
I have to make a C program read ordinary text (a sequence of lines) from the program's standard input, and print it with each line reversed from left to right. It has to be no longer than 80 symbols and it should read until it gets an EOF. Im stumped … Software Development c | |
[i]editing function messed up this post. For more information, feel free to PM me. Sorry about that! --alc6379[/i] Software Development c first-post | |
i've been reading a lot of the posts here to help me learn C. the problem is, much of the code is written for other compilers (i use gcc). i didn't know there was compiler-specific code until i tried to compile code from questions asked here. this seems so backwards, … Software Development c | |
SHORTEST-JOB-FIRST , PRIORITY , ROUND ROBIN I need the idea of each of the above algorithms as flow chart??? please help me Software Development c | |
I am working on a program that asks for 2 number between 1 and 100. Its supposed to say how much even numbers are in between these two numbers. Then I need it to list out all the even numbers between those numbers... So far I got it to calculate … | |
Hello, I'm new. I'm a teacher (not a programmer), but I would like to get a little more serious about hobby programming. I have Visual Basic 6.0 Working Model (this came with one of the programing books I bought for a college class a few years back). Unfortunately, I cannot … Software Development visual-basic windows-xp | |
Hi! I am developing a project in which i want to run 2 programs simultaneously in such a way that when the user runs 1st program,the 2nd program gets called from the 1st program and now both the 1st program and the 2nd program start executing simultaneously. For ex :Suppose … | |
Hello everyone, I am using read method of InputStream to read a stream from a remote machine. The network connection is not very stable (for example, a wireless network whose the signal strength is relatively low). I am wondering if read method returns -1 (which indicates the end of the … Software Development java | |
hi .... i have written a programm which solves the math equation : x = -b +- square root of b ^ 2 - 4 (a)(c) all / 2(a) programm is really short since am still a beginner so heer it is : import java.awt.*; import java.applet.Applet; public class MathEqu … Software Development java | |
hey everyone. School is finally over (heck yes!) and next semester I'm moving onto C++, kinda nerve recking. I don't have a good C backround yet. So I'm working on some problems from our text book over the holidays. (If anyone has some interesting problems/programs that I could practice they … Software Development c++ | |
Yeah, it's your typical homework help topic, but the problem is this is stuff we NEVER COVERED IN CLASS and it was NOT IN OUR BOOK, even our TA can't figure out why our professor assigned this to our 101 class. I have a good chunk of it done, I … | |
Hello, I am trying to write a tee filter in C language, almost like the UNIX utility. But I have no idea where to begin can anybody give me a direction I should start in. | |
I am taking a class in C and I am having a problem bringing an int through scanf. I have to create a function that will check a date in this format (MMDDYY). So I have set up a scanf for the users input and then I bring it into … Software Development c | |
Hi Integers ahve a range from -32.767 to +32,767. How come I can use the following code: int a = 1000000; int b = 5000000; int c = a + b; cout << c << endl; ... and it works? Thanks Frank Software Development c++ | |
Can someone point me in the right direction on implementing a merge sort. Here is what the main program will look like. THanks. [CODE]int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if … Software Development c++ | |
I'm writing a program that asks the user to input 3 numbers, then outputs the shape of the triangle. This is what I have so far, but it still doesn't work. Can someone help? Thanks! [CODE]#include <iostream> using namespace std; enum triangleType {scalene, isosceles, equilateral, noTriangle}; void triangleShape (int shape); … Software Development c++ | |
hi, in turbo C the maximum array size i am able to specify is array[250][250].. what should i do to enlarge this size to say..array[512][512].. i dont know a thing about memory allocation, so please help me out/.. :-| Software Development c | |
I am new to C++ and so how do i start my first programs. Can some one tell me what i need to do first. Also can someone send a free online C++ book? Software Development c++ | |
Hey everyone. Been doing C for a little while now and this website has helped me in advancing my knowledge and skills in C programming. I have another question now... it's really bugging me actually... I'm trying to make a program basically just encode and decode. It seems too simple … Software Development c | |
since no one replied to my first posting I am trying again. This time I was able to take a set length (4) number and sort its digits in order. Example make 5961 output 1659. Can anyone tell me how to do this without limiting the length of the number? … Software Development c++ | |
hi guys, im new here, i have a project that i have to do but cannot complete... Write a program that prompts the user for a number from 1-9. Then display all of the numbers from 1 to 100 except for any numbers that are evenly divisible by the user’s … | |
Ok, I'm sitting here in my CIS class trying to figure out how to move words put in my character array. The program is, sorting the monthly rainfall in order from highest to lowest, organizing the months along with it. I have one array of ints and another character array. … Software Development c++ first-post | |
I AM RUNNING A PROGRAM THAT DEALS WITH TEXT FILES IN NOTEPAD. I TYPE IN A FAKE SSN AND THE PROGRAM IS TO READ A LIST OF FILES FROM student course. I AM GETTING AN ERROR MESSAGE TELLING ME THAT PROGRAM CAN'T READ FILE. TWO EX OF SSN'S ARE 201235678 … Software Development c++ file-stream file-system ios | |
hi, just a quick question i have created a program to input 6 numbers, but the problem is that i need it to subract the highest and lowest numbers then add the remaining numbers left. im new to "c" and cant figure this out i just need someone to point … Software Development c++ | |
Hi everyone, I have an application that i need to distribute as a jar but i have no idea how to create the jar archive as well as something called the manifest file. Basically i have only one class and the main is in that class itself. The path of … Software Development java | |
I need help with the source code that I am going to attach. I have all of the pieces but I cannot figure out to put the pieces together. I am to ( 1) have a display showing denominations of money accepted, total amount deposited, price of a soda, and … | |
i am trying to avg scores but i keep getting errors, can someone please help me. [code] #include "stdafx.h" #include <iostream> using namespace std; const int SIZE =3; int main() { int sum=0; int tests[SIZE]={0}; float average; char terminate; cout<<" Enter test1:"; cin>> tests[0]; cout<<"Enter test2:"; cin>> tests[1]; cout<<" Enter … Software Development c++ | |
Please. I'm writing a Test Engine Software and I have a big issue. I have a large question database about 1000 questions and I need to load 50 random questions for each test instance. i.e Each time a user runs the test, 50 DISTINCT questions will be loaded. They should … Software Development java | |
this is the beginner again how do u display one of three user-selected shapes, ('T'=triangle, 'D'=diamond, or 'R'=rectangle and 'X' to terminate). using a switch statement. please help me with the following. prompt user to choose a shape, using a switch statement, then, choose the appropriate code/function required to prompt … | |
I have a silly problem. I want to make a class (let's call it Classone) that has an object that's an instance of Classtwo as an attribute. So far so good, but when Classtwo has an attribute that's an instance of Classone, I get a compilationerror. I would appreciate if … Software Development c++ | |
Me and my friend need to make a license plate generator program as a final project for our c++ class. We're trying to make it so it outputs 6 random numbers and letters. I'm gonna try to make it pick 6 random numbers between 0 and 35. If it is … Software Development c++ | |
im studying programming fundamentals..I dont know what is the commands and syntax of c language, pls can u give me some definition and information about c language...thnks!!!!!!!!! ;) Software Development c |
The End.