49,761 Topics
| |
I need to keep track of students last names and their GPAs. I need the user to enter 7 names and their GPA. I need to output it in columns. Also I need the average GPA and the Highest GPA. And I also need 'Last Name' earned the highest GPA. … | |
So the problem seems to be when i try to compile its telling me on line 16 of the main program (the last line) "unqualified-id at end of input" and "expected ',' or ';" at end of input I played with just about every combination of ending brackets and semi … | |
I am trying to learn how to create windows applications using microsoft visual c++ 2008. What is the difference between a Win32 Application and a Windows Form Application? Also does anyone know any good online tutorials or books on creating windows applications? | |
i am required to do this : You will write the C++ program for a simple game playing system, which plays against a user. Let’s call the program P and the user U. P and U are in a magical world, in which a dragon can appear. P and U … | |
Hi There, Hope you can help with this. I have created a void function which has to add the totals and return the values to the main section for display. For some reason it does not return the totals. I tried everything I know. I also put displays in the … | |
I have this problem. I don't know how to prompt user to input for the size of array in a class [code] #include <iostream> using namespace std; class ArrayClass1 { private: int *array , size ; public: void prompt(void) ; // asks for size of desired array // and allocates … | |
[CODE] #include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; } [/CODE] ok well if i dont have the sleep(1000); there it doesnt hide the window. i want it to load the window hidden, not hide it once its loaded. Does anyone … | |
Having trouble understanding how this recursive function works. [CODE]int F( int X ) { return (X<=0) ? 3 : F(X/2)+F(X-3); }[/CODE] I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 … | |
this is a test question for my class so I've tried to keep it specifically like this: I need to make a function called: countWord(String p, String w) the first parameter 'p' is to hold the paragraph the second 'w' is to hold the word you want counted the function … | |
Hello, I am working with images and I have got a problem. I have this method and I want it to return an array of unsigned ints. I have not got problems of compilation but it does not work properly. Could anyone help me? Thank you in advanced. [code] unsigned … | |
Hey A friend of mine and I, wants to start to develop software in C++, but we can’t seem to find any information about creating software, yes we have read several online tutorials and 2 books, but all the stuff we have been reading is all about console applications, which … | |
Hello everybody, ive been looking for an answer to this basic (i thing) issue: Im making a class to read a XML file but the compiling errors are driving me crazy, i cannot figure out how to solve this problem, so here is the code if anyone can help me: … | |
how can I get the remaining weight, without using the int modulus? The problem is solving how many widgets are on the pallet, and inputs are the total weight and the pallet. In the program, ONEWIDGET is the weight of a widget. since the input can put any random number, … | |
I have a problem with a sort I am trying to do with a std::vector. I am doing an example below where I push_back some strings like this. I know I have to use a comparator for this, that I have called:[B] "compare_on_asscending_value"[/B] The problem is that I am not … | |
I've been running around like crazy trying to find anything on this problem and so far have found nothing. I have a function in console to update a record in a file and waht I want to do is when it asks for the updated input it displays the existing … | |
Guys I have 2 forms and I have a button that when I click have to open another form but I dont know how to do that, I have google searched it but I ended having hilarious syntax errors, anyone guys know the code to open a new form from … | |
[COLOR=black]Hi I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b … | |
Hi, How to do arithmetic and relational operations using Standard Template Library.(STLs). Could any one please guide me regarding this. I am new to Standard Template Library. | |
hi i have created adialog based application where each of them call the other using DoModal(). my question is : if Dialog A is in some position on the screen and then called Dialog B...i want for Dialog B to take the same exactly position as Dialog A .(to be … | |
Im trying to align my screen ouput. At the moment Ive been using setw and \t. They don't seem to line up correctly. I dont know why the first one hasn't got the got the correct alignment or y its different from all the others. My program is pretty complecated(well … | |
Hello everyone! I am writing a music playback program. I have got the playing of audio working using ffmpeg and libao. Now I need to implement the ability to pause the playback, and I have a few ideas - [LIST]Check the variable (ie. pause = true/false) [/LIST] [LIST] Pause the … | |
guys I just would like to ask a question. how do i enter 100 random numbers in a array? please help me...im just a newbie programmer...thanks guys | |
hi all i'm new to c++ and decided to tackle c++ by doing a small project i would like to write a program that will start other programs in the background and get its pid number so far, i have used system() but i get the output of that program … | |
The following code works fine with "Release" config, but gets this odd "HEAP_CORRUPTION_DETECTED" error when I try to execute in the "Debug" config. I am using visual studio 2005, default settings. Also, I looked into deleting multi-dimensional objects, and it appears I am doing it correctly here ([url]http://www.daniweb.com/forums/thread6511.html)[/url]. Pretty simple … | |
Hi, im fairly new to C++ and would like help with using random number generators, i have heard of them but cant seem to find there code structure. Any help is greatly appreciated :D | |
Hello everyone! I am using pthreads on Linux with C++ which spawns one thread and (tries to) play music. However, as soon as the program gets to the point where any function tries to use any member in the class, program seg-faults. Here - [ICODE]class audio { public: int play(char … | |
Hello people, While compiling the code in set of files below, I get the following error: [CODE] Error 1 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 50 Error 2 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 51 [/CODE] … | |
Hi I need to make multiple copies of a file using Dev-C++ can anyone help? | |
Normally if I want to concantinate two strings I would use: [CODE]strcat (variable_name, "Constant");[/CODE] But is there a function that let's me use (variable1, variable2) ? Any help is welcome. :) | |
I'm supposed to modify some C++ codes created by another guy. He sent me all the .cpp and .hpp files (including a "Main.cpp" and other "x.cpp" with "x.hpp"). He said he could use them to create a .DLL file. I tried creating a new project --- Win 32 Dynamic Link … |
The End.