48,985 Topics
|
|
im includeing [code] #include <windows.h> // Header File For Windows #include <gl\gl.h> // Header File For The OpenGL32 Library #include <gl\glu.h> // Header File For The GLu32 Library #include <gl\glaux.h> [/code] how do i link this(the opengl headers) in the cmd console window im using mingw and g++ any ideas? |
|
Hi. I want to escape any special characters in the input field before inserting the data into mysql tables in C++. Here is how I am using this function [QUOTE]// Escaping special characters in the Subject field char * S = new char[strlen(m_headerSubject.c_str())*3 +1]; mysql_real_escape_string(conn, S, m_headerSubject.c_str(), m_headerSubject.length()); m_headerSubject = … |
|
I got most of this too work, i talked to my teacher and he gave me some hints but i cannot get it full. The idea is to get the program to count specifically how many "a"'s there continueing through all the 26 letters. I cannot figure out exactly out … |
|
I have forgotten how to perform this function. I need to display only the records that meet the following criteria: I only want to show records that have a quantity greater than 100. Can someone help? This is an MFC project using an ODBC database: [code]void CInventoryView::OnRecordQuantity() { // TODO: … |
|
Right now I'm reading up on the chapter "File Processing" to help me quench my thirst for putting C++ to USE in the real world. Seems to be the most powerful subject so far. Can you please clarify the difference between Sequential Access Files and Random Access Files? What are … |
|
I can't figure out how to write a program that will work over a network of computers? How do you get a program on one computer to carry out instructions that will affect a program on another computer or computers? Does anybody have any ideas? |
|
I am trying to push a pointer into a vector, but my compiler gives me the error: request for member 'Add_Object' in theContainer, which is of non-agregate type 'Container(X)' Please tell me what I am doing wrong. Here is my code: [CODE] #include <vector.h> #include <iostream> class Object { private: … |
|
Hello, I recently programed a hangman game, However it as flaws with are buggin me! Basically you sak the user for a guess, then the outcome is displayed... then I've cleared the screen and redraw / reload it. This wouldnt be done in the real world since rendering would take … |
|
[B]hi alll am a new member of this this amazing community and feel good to be part of it.i required help regarding simulation of multilevel feedback queue.i have checked many samples of scheduling but couldnt got right...so can any body help me?? code of this simulation should be in c/c++ … |
|
Im having trouble with the Running product in my C++ program. Where is the question: > 2. Write a program that repeatedly reads in integer values until a value less than or equal to zero is entered. For each value, it should print the product of the numbers from 1 … |
|
Just curious how you feel about a few things... First, how do you feel about operator overloading? Our next project "can" involve it if we chose and I think it would be easier that way, but the TA's said some people think its a bad idea. I was just trying … |
|
I have to write a function that reads a string and outputs only the consonants. example: string: adadad output: ddd I wrote a program without the function and it works. Now I'm trying to change the program to use the function. As of now my only error is: error writing … |
|
Can the [I]main() [/I] call be embedded within a class? At work yesterday I caught a snippet somewhere, and I noticed [I]main()[/I] was inside a class, something like the following: [code] [B]class[/B] personnel { [B]void[/B] in_prev_data(); [B]void[/B] in_new_data(); [B]int[/B] main( [B]int[/B] argc, [B]const char[/B] **argv ); [B]void[/B] process_data(); [B]void[/B] pack_data(); … |
|
Hello, i'm just starting to learn the very basic's of c++ but what i need is either a link or someone with alot of patience for c++ sockets, i'm planning on making a direct connection message encrypted chat program, but i can't find any eliable easy to use sites for … |
|
When trying to compile a C program including the code below, I keep getting this error and I don't know what to do to fix it. Please explain if you can! Complete code may be downloaded from my website at [url]www.atrixnet.com/cquestion.zip[/url] (It's only 2 Kb) I suppose I'll attach it … |
|
:sad: There is a programming question. This is searching program. there is a string array. In this string array ther is a sentence. I get a word from the user . When the user's word is match with the sentence that is in the string , a message will appear … |
|
:( There is a programming question. This is searching program. there is a string array. In this string array ther is a sentence. I get a word from the user . When the user's word is match with the sentence that is in the string , a message will appear … |
|
Could someone please help me with my code for the hangman game. The problem seems to be with the playGame() functions while loop. [CODE] #include <iostream> #include <fstream.h> #include <cstdlib> #include <cstring> #include <ctime> //To generate a random seed //The function prototypes void DrawState(int state); //Draw the hanging progress steps … |
|
Hi, I am currently writing a C++ API for Unigraphics(CAD Program) as part of my final year uinversity project. In the example programs im modifying, there is alot of use of '*' and '&', in the context: When defining variables: char *feature_select = "Please Select Features"; void *filter = NULL; … |
|
Hello all, what do you think the answer following question is? The cin.getline function: a) reads a fixed number of characters as a string into a character array. b) reads a line as a string into a character array. c) reads a string up to the first blank space. d) … |
|
Hello ladies and gents, Ive been reading about pointers abit and at there are two pieces of text in the book about pointers wich aren't clear to me, was wondering if any of you could enlighten me abit about them! :D [quote]Sometimes it's desired to clearly point out that a … |
|
Our program got cut down from a .h and 2 .cpps to just one .h and one .cpp.... so trying to convert fucntions back to my .h I received tons of errors. Hopefully someone can help me get rid of most of these? please? I need to turn in the … |
|
|
|
I have only just subscribed to this group, so if I am in the wrong place, can someone please point me to a more relevant group. We use MS Visual Studio C++ Version 6.0 along with Blue Sky RoboHELP HTML Edition. We have a 9 components in our application and … |
|
I need help adding the data in columns and rows of 10 in a 2d array. I got the rows added, but could someone please help out with how to sum the data in the columns. Please look at my code, and thanks in advance [code] #include <iostream> // I/O … |
|
Well lads im new here in fact this is my first post, i assume first of many. Im starting work placement soon and i have been told that i will have to complete a project in C++ where i have to create a directory tree for storing documents which will … |
|
|
I am relatively new to C++ and am a bit unsure why the following function doesn't work. [code] /********************************************************* * GetDate: Takes a string to be displayed to the user * and returns a CTime object. Returns NULL if an invalid * date is entered *********************************************************/ CTime GetDate(string requestString) { … |
Can someone help me to figure his out. I have to read in a file that contains employee names, numbers, payrates, and hours. Then I have to calculate the gross andsend everything to an output file. I keep getting this error message "employee.cpp" 69 lines, 1471 characters $ c++ employee.cpp … |
|
well... its me again with another project following the basics of the last one... heres my header file: [CODE] #ifndef SCHEDULE_H #define SCHEDULE_H #include<string> class schedule { public: // this section will display the heading for the output table void printHead (); //This function is used to calculate the totalgpa … |
The End.