General C++ Programming (Page 2)

Getting the value and the string from 1 line
 
Hi, so i have a file that contains a integer and some letters in one line, e.g 123hello i want to...
[1 reply] : #include <iostream> #include <sstream> int main () { std::string... (by Smac89)
Help with BST implementation
 
Hey guys, I'm working on a BST implementation for class and I cannot for the life of me figure out t...
[no replies]
by nonolt
find index from 2 vectors combined
 
Hello, I am new in c++ and I am having difficulties with finding values in two vectors. Basically, ...
[6 replies] Last: Thanks cire. It took me a bit of time to understand every lines of you... (by nonolt)
notepad++ ...
 
Hello everyone I am working on a school project (notepad++). Currently notepad++ has (){} wher...
[2 replies] Last: I did try that and I cant make it work. Any ideas how I can assign the... (by detroit)
Use array to store Class objects.
 
So starting with the Item.h file : #ifndef ITEMH #define ITEMH using namespace std; class Item ...
[3 replies] Last: Update to my code: .h File #ifndef CONTAINER_H #define CONTAINER_... (by eibarra)
how to recognize two words entered by the user for a string
 
Hello, In my little experiment i am trying to get the compiler to recognize 1 word with 2 parts fr...
[2 replies] Last: #include <iostream> #include <vector> #include <string> int main() {... (by cire)
by Ikaros
Problem with functor and error handling
 
Hi, I need to evaluate mathematical functions. These functions might have singularities. So I need t...
[5 replies] Last: Ok. Thanks. Now I understand. (by Ikaros)
VERY IMPORTANT Help needed with C++ project
 
I have a c++ test coming and i need an answer as quick as possible. Thanks in advance. Task: Code...
[3 replies] Last: OK. Let's start from the post #1: - Can we see actual implementation o... (by eraggo)
C Programming : The “|=” Operator
 
Hi all! I don't know C very much, and so I'd like to know what the “|=” operator means. I ca...
[2 replies] Last: TY! That was clear and helpful. (by Anthony973)
Vowel Counter
 
Hello I am new. I need to write a program using at least one while loop to count and display the amo...
[2 replies] Last: This char c; // Set variable c as a character cout << "Input: "; //... (by vlad from moscow)
Looping Help
 
For this program i had to change and input file and make a output file showing the name grades and a...
[3 replies] Last: well, i guess everyone stepped at least once in this trap (by coder777)
delete specified names from a list of store names
 
Hello i have a vector of stores. i would like to delete the specified choice(store) from the list. H...
[4 replies] Last: never mind i figured it out. thank you. (by bob39rocks)
find function in program
 
I have a program that is supposed to read from a file that is asked from the user. Then read names f...
[1 reply] : what does the input file look like ? (by SamuelAdams)
by xzbit
regarding NM_RCLICK create popup menu
 
GetCursorPos(&p); int iIndex = ListView_GetSelectionMark(hList); hMenu = CreatePopupMenu(); In...
[2 replies] Last: thank you AHCFan20 int ret = TrackPopupMenu(hMenu, TPM_RETURNCMD | ... (by xzbit)
Problem with looping
 
Hello I'm currently creating a guessing game program where the user will be asked to guess the compu...
[3 replies] Last: You should put int main(){ double x = 0; if ( x < 1 ){ ... (by Ikaros)
multidemensional argument
 
void printMatrix(int x ){ cout << "Matrix " << x << ":" << endl; for(int r=0;r<rows;r++){...
[1 reply] : You may not declare a multidimensional array as a function parameter w... (by vlad from moscow)
Compiles successfully but calculations give wrong answer
 
Can anyone please tell me what's going on here. I'm using MSVC++ and it builds sucessfully but somew...
[2 replies] Last: You are writing to menuitem.<> in getdata() but reading from 0 to c i... (by MiiNiPaa)
ColorKeying in sdl
 
This program makes an error that says something about the memory location. The error itself does not...
[13 replies] Last: It will look for the file in the current working directory . If the c... (by Peter87)
Please urgent help
 
Task: Code Assignment =============== Provide the definitions for the following class declaratio...
[1 reply] : class Rectangle { public: Rectangle(int height, int width); ~R... (by computerquip)
bank account system
 
can anyone help me with this question... Design a class named ‘Account’ to represent a simple...
[4 replies] Last: yeah it works..thanks (by raaj5671)
Pages: 1234... 53
  Archived months: [dec2012]

Cannot post in this page. To post a new message, go to the first page.