General C++ Programming - November 2012 (Page 38)

Remove words from a string
 
EDIT: So I started with removing stopwords form a string, but rather than editing the string itself, I take each word form the string and sepatate them into a v...
[7 replies] Last: Note: std::binary_search() requires that the sequence is sorted. Us... (by JLBorges)
Exception in Constructor?
 
if i have this: class Number { private: int x; public: Number(int _x):x(_x) { if (_x == 0) //what i do here? if i don't want 0? } } W...
[4 replies] Last: It would be something like this: #include <stdexcept> class Number {... (by Cubbi)
Bubble Sort
 
So many of us have all done bubble sorts, however, I am new to c++ and this code is just not seeming to work for me. I want to check if a number is greater than...
[no replies]
by lasog
Abot Banking System Need Help
 
Banking System - Problem Description A bank wants a computer system to help administrator bank accounts. Both checking accounts and saving accounts must be tra...
[no replies]
by jkfde
Need help On Project
 
I have to write a program that find the biggest and smallest number in an array. Here is Source Code #include <iostream> #include <fstream> #include <ioman...
[2 replies] Last: the values of the array are unknown, that's why theirs random number g... (by jkfde)
by fauxq
From VB to Cpp. Newbie in need of help!
 
I have been working on this program for a few days now. I am very new to C++, and as you will probably be able to tell, am very confused about the correct synta...
[no replies]
Type INT
 
is there a way to compare a variable to an int without having to type if(i = 1 || i == 2 ... etc?
[4 replies] Last: I hope this isn't homework :) #include <iostream> #include <string>... (by SamuelAdams)
Interrupting a constructor
 
Hi, While writing a code, I just thought if this is possible. Say in a copy constructor (or any constructor) I want a condition on the element it is being...
[1 reply] : I don't think this is possible, but I don't really understand what you... (by Zhuge)
Need Help on my project
 
hello, i'm very confuse about my project. anyone can help? #include <iostream.h> #include <conio.h> double hasilnya(double bilangan, int banyak) { double ja...
[5 replies] Last: still not work correctly -_- (by aralight)
skip
 
#include <iostream> #include <cmath> using namespace std; int main() { int n,num,i=0,a,b,c,d; cout <<"Choose n to create a complete graph [3 9]? "...
[2 replies] Last: Thank you very much,but how can my output be ? 1-2, 3-4 1-2, 3-5 1-2, ... (by sabbir366)
QString::fromAscii()
 
Please how can I use this line of codes in C++(not in Qt)? QByteArray responseData = QByteArray::fromRawData(reinterpret_cast<const char *>(result), nReceiveA...
[no replies]
linked list
 
hello.. i take a data structure class and our teacher gave us an assignment about single linked lists am supposed to write a getSize , deleteAt, insertAt fun...
[4 replies] Last: thank you so much it works well now!!! :D :D (by lulu girl)
array, string, file i/o
 
-
[1 reply] : The problem with asking for outside guidance is that the answers given... (by Cubbi)
How do I verify two letters
 
Hey guys so basically I'm reading text from a file well like a menu type. Everything is good now this is my problem: I have to read a set of letters : S and D...
[6 replies] Last: This is what you need http://www.cplusplus.com/reference/stl/map/ (by Cheraphy)
Can't Figure this out, Please help
 
I've been working on this Infix to Postfix for a couple weeks, and I can't seem to figure out why it keeps crashing when i try and do more complicated conversio...
[no replies]
by BandK
Sort...
 
I sorted by merge sort int array (this int array is part of struct)...if 2 or more ints are equal how to sort by char(and char is in struct)?
[no replies]
C++ Understanding Constructors
 
I have successfully gotten the info to print out in the correct order. However, I cannot figure out how to implement getCount. Help would be appreciated. ...
[5 replies] Last: By the way these statements are invalid Animal a(); ... (by vlad from moscow)
by BandK
Merge sort...My problem
 
I have linked list and struct like this... struct list{ float price; float password; char name ; } User writes price and names in linked li...
[no replies]
by LB
Circular dependency w/ class typedefs
 
struct A { typedef /**/ X; typedef B::X Y; }; struct B { typedef /**/ X; typedef A::X Y; }; Is there a way to solve this circular depe...
[1 reply] : So there's no way? (by LB)
deque =why elements not changing?
 
//why are actions of ActionB, ActionC not effecting the elements vecP? see end of main. #include<iostream> #include<fstream> #include <cstring> #include ...
[6 replies] Last: defining vecP &psn =*itr; fixed the problem, thanks (by drshaheen)
November 2012 Pages: 1... 3637383940... 51
  Archived months: [oct2012] [dec2012]

This is an archived page. To post a new message, go to the current page.