General C++ Programming - February 2013 (Page 28)

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 Assignment Provide the definitions for the following class...
[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 can see it in this line for example : host->flag |= 8; '...
[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 amount of vowels in a user input string. This is what I have so...
[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 averages of 20 students> I can't seem to figure out to get it...
[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. Here is what i have but my erase statement is wrong and wont ...
[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 from the file in the form lastname, firstname middlename. The...
[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(); InsertMenu( hMenu, 0, MF_BYPOSITION | MF_STRING, 0, "Hello"); ...
[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 computer generated number. Once the program is finished, at the e...
[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++){ for(int c=0;c<colums;c++){ cout << ...
[1 reply] : You may not declare a multidimensional array as a function parameter w... (by vlad from moscow)
ColorKeying in sdl
 
This program makes an error that says something about the memory location. The error itself does not say anything specific about the problem. I am trying to rem...
[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 declaration and then write a program that demonstrates usage of each m...
[1 reply] : class Rectangle { public: Rectangle(int height, int width); ~R... (by closed account S6k9GNh0)
bank account system
 
can anyone help me with this question... Design a class named ‘Account’ to represent a simple bank account. The class should hold the following:- • Fi...
[4 replies] Last: yeah it works..thanks (by raaj5671)
which header file contains mmap and munmap?
 
i am using visual studio 2010 for my work. Which header file contains the mmap and munmap functions? i am trying to map a file into the memory.
[1 reply] : None. Those are POSIX functions. If you want to use shared memory, y... (by kbw)
Subtracting value from 2 integers in 2 classes
 
The title is confusing i know, i couldn't think of the right name. Anyway, i have 2 integers, both in 2 seperate classes in 2 seperate files. I have main.cpp, t...
[2 replies] Last: I figured it out with inspiration from iHutch105 (thank you). I made a... (by Texedova)
.csv with searching
 
My .csv file is like: Bone,origin,deep/superficial,location, action. with list of 38 bones. This is my main.cpp: #include <iostream> #include <fstream> #inclu...
[11 replies] Last: I don't know what function you mean. If you want to use csvData wit... (by coder777)
no operator matches this operand
 
#include <iostream> #include <string> using namespace std; class Account{ private: string firstname; string lastname; string FullName; int...
[4 replies] Last: tq very much its solved now (by raaj5671)
Communication between QThread and boost threads
 
The Gui is in Qt and Api is in boost. The Gui is meant to sit on top of Api. One of the functions of Api is to do network level data management, process data in...
[no replies]
what is this?
 
What is the member this in visual c++? ex.. QueryInterface(IExample *this, REFIID vTableGuid, void **ppv) i need a detailed explanation.
[1 reply] : What is the member this in visual c++? It doesn't hold any special ... (by cire)
Some syntax errors etc
 
I am new to this forum so please excuse any errors i make! I have recently started programming in c++ and one of my first projects is making a console trainer f...
[13 replies] Last: the program is complete with no errors (thanks to the help of you guys... (by Jamal Petrelli)
Help with starting this program so confused?
 
The classic toy the Magic 8 Ball make predictions about the future if you asked it a yes/no question. Write a C++ program that simulates a magic 8 ball (you n...
[1 reply] : Any line. You just trow it away anyway: 8Ball doesn't care what are yo... (by MiiNiPaa)
February 2013 Pages: 1... 2627282930... 43
  Archived months: [jan2013] [mar2013]

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