49,761 Topics

Member Avatar for
Member Avatar for mitrious

given the following code [CODE]bool space(char c) { return isspace(c); } bool not_space(char c) { return !space(c); } template <class Out> void split(const string& str, Out os){ typedef string::const_iterator iter; iter i = str.begin(); while(i != str.end()){ i = find_if(i, str.end(), not_space); iter j = find_if(i, str.end(), space); if(i != …

Member Avatar for mitrious
0
148
Member Avatar for Swiftle

Hi, I'm having trouble figuring how to search for a specific element of a class in a list. I saw some examples of find() but they only show how to search for a string or an int. Another thing is modifying elements of a class. So let's say I have …

Member Avatar for Swiftle
0
143
Member Avatar for Howdydoody

Hey guys, The question on the homework is "Write a function that returns a count of the nodes that contain a value less than the parameter value." I was wondering if someone could point me in the right direction maybe with some pseudo code or something of the like. ive …

Member Avatar for Howdydoody
0
132
Member Avatar for mak_sutt

Hi I have a GUI created using VC++. I want to read the value or content from a text box of another GUI in windows(dont have sourec for this GUI). Can you pleae suggest me how can i do this, please also point me to some basic tutorial or books …

Member Avatar for ninjatalon
0
119
Member Avatar for cyrusmay13
Member Avatar for eightyseven
0
827
Member Avatar for i4ba1

Hai all, i want to create interactive multimedia software. the software want to run in windows, linux, and mac. what the programming language that suite to developed that software?. c++ or adobe air? Best Regards

Member Avatar for i4ba1
0
171
Member Avatar for bensewards

Hey everyone, In my COMP 208 class, I was asked to do the following: "Redo Lab 2 Problem 2, only this time use vectors to hold the names and gpa’s instead of arrays. So you will work with 2 vectors, one holding the gpa’s (type double) and the other holding …

Member Avatar for user422
0
198
Member Avatar for txwooley

I am trying to learn C++ through on-line tutorials and such. In almost all tutorials, the author tells you which headers to include for that particular exercise, but never tells you how he knows that. I understand that if you are advanced enough to be writing tutorials, you know off …

Member Avatar for mike_2000_17
0
118
Member Avatar for kartikkp

Hey I'm having trouble with compiling this code, I keep getting a "undefined refernce to winmain@16 I feel like it has to do with int main() I tried just main(), im not sure how to fix that [CODE]#include <iostream> #include <fstream> #include <string> #include <stdio.h> #include "HangmanBoard.h" #include "FileProcessor.h" using …

Member Avatar for jonsca
0
111
Member Avatar for chamnab

do u know some code that we can use mouse in c++ because i want to click some button in my assignment ?

Member Avatar for Red Goose
0
137
Member Avatar for deanus

Hi, When I access the property pages of a project with Visual C++ 2010, in the 'Configuration Properties | VC++ Directories' sub-tab there's an 'Include Directories' property. Under 'Configuration Properties | C/C++ | General' there's a property 'Additional Include Directories'. Is there a difference between the 2? What are the …

Member Avatar for Ancient Dragon
0
99
Member Avatar for chamnab

i have some question to ask everyone . 1.what is thread ? 2.what is advantage to use thread ? 3.if you can ,please give me some tutorial about create and using thread . 4.thank for your answer

Member Avatar for Ancient Dragon
0
58
Member Avatar for fishsicles

Hello, I am working on developing an interpreted programming language for a capstone project and have hit a snag dealing with two classes. In the interpreter, the classes represent a scope containing a procedure pointer and the procedure pointing back to the scope containing it. The former to allow the …

Member Avatar for fishsicles
0
144
Member Avatar for arguav74

Hi everyone, I am taking a C++ 100 level beginners course and we just got this assgnment that I am stuck on. Here is the assginment description: [QUOTE]We are going to just compute the first 15 or so digits of π using doubles. In any case, to compute the value …

Member Avatar for WaltP
0
872
Member Avatar for CronosAkroma

ok so here the problem the code works just adds break on to every line i want it to only add breaks to the line that don't alraedy have spaces after them. while (! fileIn.eof() ) { getline (fileIn, linea); fileOut << linea << b <<endl; }//end while is what …

Member Avatar for WaltP
0
105
Member Avatar for chamnab

can anyone help me to clear this ? example: Hello i want to clear 'e' and remain words is "Hllo" please tell me if it possible . thank for the answers.

Member Avatar for mrnutty
0
47
Member Avatar for speedofdark

Hey all, I've used this site quite a bit as a reference, and couldn't find a solution that worked for me. So I became a member. :) Anyway, I can't get my insert function to...function when I go to add a node. The node is NOT to be just added …

Member Avatar for speedofdark
0
218
Member Avatar for caut_baia

Hi folks i only have one question.Can or should i delete a base class object instantiated in a derived class's constructor , inside the derived class's destructor? [code] class A { protected: int somedata; public: A () {} A (int x) : somedata(x) {} virtual ~A () {} }; class …

Member Avatar for caut_baia
0
529
Member Avatar for fsefsef23

I don't know what i'm missing, but I keep getting the error in the poly_tst file when trying to compile that says 'expected primary-expression before ']' token. According to my book I'm writing everything correctly. Here is my class file function (poly.h) void setcoeff(Term); Here is my implementation file definition …

Member Avatar for mike_2000_17
0
185
Member Avatar for gvkumar

Hi, i am porting my applicaiton from vs6.0 to vs2005 i am getting problem enum ,it is not getting integral value Could somebody help in fixing this issue, thanks in advance [code]enum Keys { classesRoot = HKEY_CLASSES_ROOT, currentUser = HKEY_CURRENT_USER, localMachine = HKEY_LOCAL_MACHINE, currentConfig = HKEY_CURRENT_CONFIG, users = HKEY_USERS, performanceData …

Member Avatar for gvkumar
-2
131
Member Avatar for israruval

ok so im trying to implement a stack using vector and i have to access the last element of the vector el, i dont know if its right and also how would i implement the pop function of the stack using vector el_t stack::topElem() { el_t n; if(isEmpty()) cout <<"stack …

Member Avatar for mike_2000_17
0
5K
Member Avatar for lexusdominus

i have a string which is giving me problems. when i put it into a textfile, it puts the cursor onto the nextline. i assume because there is a \n at the end of the string, but when i cout the string, the newline character isnt there (well, the console …

Member Avatar for lexusdominus
0
96
Member Avatar for jimJohnson

I need to take my last C++ class over one more time and just trying to get a head start on the programs we had been assigned. I will provide the instructions and was wanting to get any feedback on what I should get rid of my current program and …

Member Avatar for jimJohnson
0
208
Member Avatar for fsefsef23

I'm writing a polynomial project that requires me to utilize classes. Problem is, I have the polynomial stored in two arrays in the class, one for coefficients (float coefficientholder[10]) and one for exponents (int exponentholder[10]), and get functions (at least according to my book) are simply consisting of return commands …

Member Avatar for mrnutty
0
180
Member Avatar for biancaW

I have another question regarding activating of an automatic door: three sensors front pad, rear pad, and door; they determine weather the door is activated or not. front pad=0 empty front pad=1 occupied rear pad=0 empty rear pad=1 occupied door=0 closed door=1 open there are situations when the door is …

Member Avatar for fishsicles
0
313
Member Avatar for goody11

Hey, I'm having some troubles reloading a new png in place of my old one on my window using the GDI+ SDK. Here is my WM_PAINT message: [CODE]case WM_PAINT: { BITMAP bm; PAINTSTRUCT ps; //Painting the Background HDC hdc = BeginPaint(hwnd, &ps); HDC hdcMem = CreateCompatibleDC(hdc); HBITMAP hbmOld = (HBITMAP)SelectObject …

0
68
Member Avatar for VasquezPL

Hi...I wrote a proggy that replace some words in text file there is a condition that if somebody write in the texbox ","...all sentences change into plural form... [CODE]if (systemTEXT->Text->Contains(",")) {token == 1;}[/CODE] it works great...text contains "," - it means plural forms are needed..token=1 [CODE] if (linia->Contains("system_token")) {poprawka = …

Member Avatar for VasquezPL
0
140
Member Avatar for sdr001

This is the line of code that I am getting an error with. [CODE]mtx[cIndex(bitNum)] & = ~(1 << bIndex(bitNum));[/CODE] The error code is: expected primary-expression before â=â token I think I am missing some '(' and ')''s. Thanks!

Member Avatar for sdr001
0
106
Member Avatar for realproskater

So i've been working on this for while and i keep getting error after error, after i posted here last i cleaned it up but here is my latest debug error. I feel like that my code and algorithms are all there but im messing up in one of my …

Member Avatar for daviddoria
0
96
Member Avatar for CrumbledCookies

Okay, so I'm a 7 month experienced programmer in C++, and now is the time when I am having the most trouble. So my Professor wants us to create a program that asks the user to input a sequence of numbers and then convert those numbers into outputs of "how …

Member Avatar for ravenous
0
188

The End.