48,985 Topics

Member Avatar for
Member Avatar for sinrtb

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?

Member Avatar for sinrtb
0
113
Member Avatar for mohit_t

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 = …

0
104
Member Avatar for bluegoo06

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 …

Member Avatar for Dave Sinkula
0
170
Member Avatar for frankieb

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: …

Member Avatar for BountyX
0
117
Member Avatar for Fasola

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 …

Member Avatar for Fasola
0
191
Member Avatar for Fasola

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?

Member Avatar for Narue
0
215
Member Avatar for johnson9000

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: …

Member Avatar for johnson9000
0
163
Member Avatar for Acidburn

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 …

Member Avatar for prog-bman
0
130
Member Avatar for falaky

[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++ …

Member Avatar for jwenting
0
227
Member Avatar for MrNiceGuy82

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 …

Member Avatar for Narue
0
121
Member Avatar for jhdobbins

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 …

Member Avatar for jhdobbins
0
100
Member Avatar for mb1

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 …

Member Avatar for Narue
0
97
Member Avatar for Auto

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(); …

Member Avatar for Auto
0
144
Member Avatar for Tyreses

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 …

Member Avatar for Tyreses
0
228
Member Avatar for atrixnet

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 …

Member Avatar for Narue
0
603
Member Avatar for pink

: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 …

Member Avatar for peter_budo
0
85
Member Avatar for pink

:( 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 …

Member Avatar for pink
0
175
Member Avatar for weziw

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 …

0
81
Member Avatar for thomasisaac

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; …

Member Avatar for invisal
0
153
Member Avatar for MaxC

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) …

Member Avatar for azeembutt
0
277
Member Avatar for mehdy
Member Avatar for JoBe

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 …

Member Avatar for JoBe
0
160
Member Avatar for jhdobbins

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 …

Member Avatar for Dave Sinkula
0
171
Member Avatar for Gink
Member Avatar for ContactGT

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 …

Member Avatar for ContactGT
0
138
Member Avatar for csi_a_m

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 …

Member Avatar for csi_a_m
0
183
Member Avatar for finbar

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 …

Member Avatar for Dave Sinkula
0
164
Member Avatar for j.kelly

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) { …

Member Avatar for j.kelly
0
141
Member Avatar for hopeolicious

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 …

Member Avatar for murschech
0
122
Member Avatar for jhdobbins

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 …

Member Avatar for jhdobbins
0
214

The End.