49,761 Topics
| |
The exercise is finding the largest and second largest numbers of ten entered. The numbers can only be entered once. No functions, arrays, of the STL can be used... Just while statements The problem I'm having is with a sequence 5, 4, 9... The 5 becomes the largest, 4 is … | |
Hello people I'm new to this forum and only been suing c++ / c for a little while now. I'm trying to seek out help with a program. I've written some of the code: .................................................................................................... #include <iostream> #include <iomanip> #include <ctime> #include <cstdlib> using std::cin; using std::cout; using std::endl; using … | |
I've been having some fun with early programming and have created several projects with various attempts at some failed programs. I wanted to redo, with new file names, some of these with new attempts. However when I try to delete the bad files in a project, the project stills lists … | |
Hi, New to programming & a bit lost. How can I create an exe file inC++ that will startup another program such as Excel?? Thanks in anticipation TP | |
I am writing a program that uses a singly linked list. The program is suposed to ask the user for the number of days they have temperatures for and for the corresponding temperature. I seem to be having a problem with the get_temp function. When I run the program it … | |
i am in the midst of studying for finals and i came across a program about the olympics. in this program we were given the id's of each judge and the scores to put in. once we have all the scores you are asked to average them. although my program … | |
Hello, I am kind a newcomer in work with c++. I need some help with creating class. I want to create a button (toolbar) class, but I have created toobar and button in simple way: [CODE] char buffer[25] = "x"; char buffer2[25] = "xx"; char buffer3[25] = "xxx HWND CreateToolbar(HWND … | |
I am used to using: [CODE]char *str;[/CODE] to make a string but recently have changed to using the ANSI string class as its a lot more powerful and easier to use... BUT i have a problem! when I have encountered a string which conatins a " character I have used … | |
I'm having trouble defining the functions get_last, delete_last, and add_item. I've been working on the program for days and can't get the function definitions to work at all, so i left them blank. COULD SOMEBODY PLEASE HELP!!! This program is suppose to define a List class that holds a list … | |
i am learning "c".i am in the beginning level. i want more explanations about arrays. in arrays what does the garbage means? how it affect the program. | |
Hi al...I am a total c++ beginner...I need ur help plz...I am making a program which asks the user to input a binary number and displayz the binary number converted to decimal number using a function. The code which i wrote is below: #include<iostream.h> #include<math.h> int bin2dec(int n) { int … | |
I'm not incredibly skilled with C/C++, but I'm writing a C++ Win32 Console Application that inputs an atomic formula, and outputs the molar mass. Everything should work fine, but in my if structures where the user input is the atomic symbol for Uuq, or any element that has 3 letters … | |
Hi i'd be glad if u help me with write this program. i want to write a polynomial program which it has a class that create 2 obj like this with useing linked list: (Ax^2y^3+Bx^4y^8+....)AND(ax^5y^1+....) and after that multiply these 2 obj to each other and put the answer in … | |
im having the hardest time with this problem it doesnt like my do while loop it doesnt want to do my loop for spacing and doesnt want to do my day pacing with the if else breaks! #include <iostream.h> /* jake sanders CS115-001 fall 2004 Programing Assignment 3 Program Description: … | |
I need to write a program that finds the sum and average of 50 numbers. I am very new to C++, I have learned VB and this is really confusing to me. Please help me with this simple program. I went to another forum and had no responses. Kelly | |
I am in need of some examples of writing functions. The way it is stated in my book is kinda confusing. I dont know if I have to return a value or not. I dont understand if it is necessary to use the general form of a function returning a … | |
howdy all, I'm working on some old apps that require the 16 bit support on MS Visual C++ 1.52. I was told it's been discontinued therefore it's ok to get a copy from someone. If this is true, I would appreciate if anyone could point out a place to download … | |
I want to access a variable that is declared as such class xx { private: CRITICAL_SECTION m_csResponse; } this variable I want to access from a method in another diff class in a different file(the variable being updated).What should I do in the other class? | |
Hey! I GUARANTEE that I'm the most junior programmer here! I started programming VB about 2 months ago, and I started Dev-C++ yesturday!!! I actually have a quick question regarding Dev-C++, I would be very grateful for an answer on this ^_^ I have just purchaced the "Beginning C++ Game … | |
I couldn't get in here for a while, my pc was clocking-busy place?! I posted my problem to the wrong forum & didn't get any help-surprise! I just want to know what I'm doing wrong in my code. I can't get rid of the 2 errors or understand what they … | |
Hi, it's me again, i started to learn C++ and I would like to ask your help to create a program. I want to create a program that will open and close my CD-ROM tray, after user input. You know, i press a button, tray opens, press a button, it … | |
> oh yeah. well it happens sometimes Hi, Can anyone give me a hint of what I'm doing wrong here? not pretty, but here's my code... #include <iostream.h> #include "apstring.h" #include <fstream.h> int main() { apstring user_name; int street_num; apstring street_name; apstring apt_num; apstring city; apstring state; int zip; ofstream … | |
Hi guys. I am relatively new to C/C++. I need a C program to print out all the information (stats) of a floppy disk, such as sectors per track,number of file allocation tables,maximum entiries in root directory,sectors per file allocation table and so forth. Additionally the program should also be … | |
Hi I'm creating a dialog resource in VC++ using the resource editor, I am able to select and copy and paste edit boxes quite happily until I hit 224 in number. Then no further edit boxes can be pasted in the area. Any known issues with edit box restrictions ? … | |
I receive to build areas when I want to start my debugging. But the errors do not show up when i just compile. They are: error LNK2001: unresolved external symbol "void __cdecl withdraw(char,double &,double &,class std::basic_ifstream<char,struct std::char_traits<char> > &,struct node * &)" (?withdraw@@$$FYAXDAAN0AAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@AAPAUnode@@@Z) and fatal error LNK1120: 1 unresolved externals. … | |
I have asked this question before and have not gotten a completely useful answer. I am trying to sort a number of any size. For example: if 643597 is entered, the output should be 345679. | |
I have to get the total votes and percent of each vote for this program.I cant figure it out! I have attached input,but this should be output. Johnson 5000 6.2 Miller 4000 7.75 Duffey 6000 5.16 Robinson 2500 12.4 Ashtony 1800 17.22 Adkins 3500 8.85 Walls 5500 5.63 Bills 2700 … | |
I've finally pulled out my old Visual Studio 6.0 and installed C++. I've done some very low level C++ programming years ago, but I've never used this program before. I've loaded the MSDN and searched on how to start a program. However, after about 3 weeks of migrating from one … | |
hello all, im new here, ok, i have a question, im trying to make a simple program, but keet gettin an error [CODE] //NFL Favorite Team #include <iostream> int main() { int NFL; std::cout << "Who is the best team in the NFL?\n"; std::cout << " (please only use the … | |
I have written a program that gets a string from the user and puts the characters on a stack, when the NULL terminator is reached it starts to pop the characters off the stack and display them therfore reversing the string. I am having one problem with this program though; … |
The End.