49,761 Topics
| |
This lab i am stuck on and was wondering if someone could help me with the source code. Thanks. I need a program in c++ that asks a user for 20 integers and finds the max, min, average and median of the numbers inputted. It wants code to contain arrays … | |
Hi, I'm new to C++ and my first assignment is to convert C code into C++ code. Here I have a loop, however; I can't seem to get it to break out of the loop. It is suppose to input an odd number that is less than 15 and set … | |
I have some code that implements a linked list. The program has the basic implmenetation including: • IntList() // Constructor • ~IntList(); // Destructor • void appendNode(int); • void insertNode(int); • void deleteNode(int); • void displayList(); • void reverseList(); I am trying to get the reverList to work correctly. Below … | |
Alrighty, just wondering if anyone can spare a few minutes to help me out a little. Trying to do the finishing touches on a project I've got for tomorrow. My problem is this - I'm trying to make the user interface a little more appealing instead of it just asking … | |
What is wron with my code?: [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int i; void myfunc(char scrpt); char scrpt; char scpt[10][200]; int junk; int main() { int z; char scpt[10][200] = { "AAA", "A1", "BBB", "B1", "CCC", "C1", "DDD", "D1", "EEE", "E1" }; srand((unsigned)time(NULL)); z = rand()%1-10; … | |
The goodIds and badIds arrays don't seem to be loading right. The good one shows all the values loaded in including 4 0s at the bottom where the bad ids were.. the bad one does the same only all the good ones come out as 0s and the bad ones … | |
I need help with inputing the file. The file has the "lastName" "firstName" "phoneNumber" "email" then a new line. When i read in all 4 rows it says the first line in all 4 rows. the infile is in main [CODE]#include <iostream> #include <fstream> using namespace std; void mainMenu(); void … | |
I am trying to migrate from VC++6 to VC++9. I am getting error " fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory" on build. I tried removing .h and adding using namespace std; after #include, here it gives me error in iosfwd file like "iosfwd(574) … | |
I have a c++ problem regarding looping. I am writing a program which will include a problem similar to below. 1) ok, i am writing a program that asks the user to enter a number. 2) Then ask the user if the number entered was correct. 3) If the number … | |
I am trying to move a project from CodeBlocks to visual c++. (it compiles fine using minGW) I am using the 2010 express version. when I compile the projectusing VC++ I get the errors below. I have done some research and it is comming from including windows.h. to test this … | |
I have an if stmt which checks to see if a char value (upper or Lower) is equal to a value input by end user. My understanding was if you are using a char value in a conditional stmt you need to put single quotes around the char value. If … | |
Hi, I've only learned c++ for about 2months, I've basically learned up to arrays, two and multiple dimensions but not in-depth. Currently reading through pointers. I've managed to achieve a similar graph to what i am supposed to have. What I'm getting. [IMG]http://i109.photobucket.com/albums/n79/johnz13/graph1.jpg[/IMG] Should look like. [IMG]http://i109.photobucket.com/albums/n79/johnz13/graph.jpg[/IMG] Problem I am … | |
Hi all, I create a MFC DLL "Static" and with wizard I add a dialog and "Microsoft web browser" ActiveX in this dialog, also I create a class for this Dialog. All I want here to call this Dll from a Win32 app "normal c++" and load this Dialog into … | |
I need to write a program that sums all values in an array row that the user can choose. The program sums correctly but instead of only outputting one row's sum, it sums up all of the rows up until the input row and adds them all together. I can't … | |
I have worked on this code hours, and get it to work finally on Linux Debian.. its basically sort a linked list --bubble sort. Also I added a piece of code to the main function to measure the execution time of the bubble sort function what I am trying now … | |
Hi, I had a query whether Windows multithreading API throw any Synchronization exception. If I am sharing a STL string between threads and the string is not guarded,will there be any synchronization exception. Another query is does STL container throw exceptions apart from memory violation Thanks in advance :-) | |
I'm an experienced programmer of 5 years in Java & C#, but recently I decided to program in C++ as well. I'm familiar with proper code syntax and advanced programming techniques, but this compiler error i'm getting just stumps me beyond recognition, I've analyzed my code for syntax errors a … | |
Hi, I want to develop a an application based on independent "CustomModule" that all derived from a base class "BaseModule" and that can send different kind of "CustomEvent" (derived from a "BaseModule" class) to each other. Each Module just knows that it is connected to others "BaseModule" (i.e. it does … | |
Hi! I have a problem finding a string from a register if it contains a certain character combinations and * is used to "fill" the positions of the string as we do not know the contents of. Example: We register "abc" and "abd". If we only know "a" and "b" … | |
Hello everyone, I’m an intermediate-level C++ programmer grappling with a fairly rudimentary problem. I’m creating a C++ object called FruitCart; FruitCart contains a number of integers categorizing the numbers of individual fruit in the cart. I also need FruitCart to contain accessor functions so other functions can set, retrieve, and … | |
Hallo everybody, I'am a newbe in the subject of dynamic-link library an c++. Currently I'am working on an interface of a fortran dll to c++ programm. I have available a example interface in Fortran, which works very well. My idea is to develop a one to one correspondent c++ source … | |
I have a void type array. I want to create a function which will read 12 bits in each time and store it in a unsigned int type variable. Any ideas? Thank you. | |
I have got a homework named greatest common divisor of two integers write in C++ in MS visual c++ 2008 in windows form. Using listbox, textbox... I don't know how write this programme. Please help me thank you. Sorry for my English. | |
We are just learning user defined functions. Instructor has us taking a prev assignment and pulling the calculations into functions. I thought I understood how to do the function, but guess not I''m getting the "error term does not evaluate to a function taking 0 arguments." I have been working … | |
I am trying to get my program to print the normalized matrix values and the maximums for each column. The output should be organized nicely in rows by columns manner followed by a row of values for each column maximum. For each column of the matrix find the member-cell with … | |
[CODE]bool validateCourse ( int courseNum ) { switch ( courseNum ) { case 4587: case 4581: case 9696: case 4590: case 4580: case 4599: case 4583: case 8997: return true; case default: return fasle; } } [/CODE] I need it so if the user enters anything but these course numbers … | |
I'm writing a header file for a class project and one of the functions we have to add finds a patient's age from their birth date. I need to write the function without arguments or any user input and can't use a static date. I've figured out enough that I … | |
me too i need to load image by borland c++ but i dont know how please someone tell me | |
Hello, I have entered 6 random names into a text file. From my program, I accessed that file, and stored the 6 names into a vector. Now my question is, how do I delete every n number of names? I am having trouble figuring out how to keep "wrapping around" … | |
Here is the code: [CODE] if(i&~077)[/CODE] , where i is an int value. The condition is supposed to be testing whether i is within a proper range. But how? Thank you very much! |
The End.