General C++ Programming - November 2017 (Page 15)

Output operator and ADL
Josuttis states the following about defining an O/P operator for a type defined in the std namespace...
[7 replies] Last: OK. I was merely alluding to the fact that gunner's solution was simpl... (by SSteven)
by kopev
error LNK2019 on visual studio
hello everyone, I try to use md5 in c/c++, working with visual studio I've hard time figuring out th...
[10 replies] Last: The reason why the "unresolved symbol" error occurs is that the object... (by keskiverto)
Its a bug ??
#include<iostream> using namespace std; int main() { int a; cin>>a; cin.ignore();...
[1 reply] : So you type in the number 3, and the screen looks like this: 3 The... (by Repeater)
by ololo
How to change XML attribute value for a list of elements
Hi guys, I have a XML fragment where there are a lot of "Charge" elements. I need to change the val...
[2 replies] Last: ... (by moribaki)
Need assistance with this simple program
This is my first ever OO program so please don't judge me lol. This program is meant to print out th...
[1 reply] : Your classes aren't entirely correct. Better would be: #include <ios... (by goldenchicken)
Adding data from class objects
Hello all, I am having difficulty figuring out why I cant correctly add the "size" which is my membe...
[13 replies] Last: No, should I get rid of one of them that isnt used? I just need to kno... (by markymark99)
HELP! Reverse loop?
Use a loop to pull in the sets of information. As you pull them off, print only the names, in the fo...
[no replies]
Check subset,union,intersection,difference and disjoint between two arrays
#include<iostream> #include<string> using namespace std; int main(); char arr ; char arrA ; ...
[1 reply] : Foo is a subset of Bar, if every member of Foo can be found from Bar. ... (by keskiverto)
Sorting and Display
//playlist.h: #ifndef _PLAYLIST_H_ #define _PLAYLIST_H_ #include <iostream> #include "song.h" usi...
[10 replies] Last: while(input != 'X' || input != 'x'); this looks wrong to me. it loo... (by jonnin)
Make a subgraph from a Boost Graph Library(BGL)
I have a boost graph library that I define it as below: /// vertex properties struct VertexData { ...
[4 replies] Last: @Cubbi thank you. I understand your answer better. However, I decided ... (by Bruce34)
Understanding of code.
string choice; string str; cout<<"Do you want to encrypt or decrypt the message: "; ...
[1 reply] : int i; // spin through each character convert to number and add a s... (by Jaybob66)
I need help to write a program to generate digital waveform of a binary number.
[no replies]
[3 replies] Last: i tried doing *ppAssessment.push_back(NewCw) Remove the leading * . ... (by coder777)
binary to ascii, ascii to binary.
#include<iostream> #include<cstring> #include<cmath> using namespace std; char bin_to_ascii(st...
[4 replies] Last: @programnick I think you missed what I was saying. My goal is to conv... (by Chervil)
Need Root of Tree
This code works, but I need a function to locate the root of the tree (exp). Any help would be gre...
[7 replies] Last: > What about cloning or deep cloning? What do you think? Implementing... (by JLBorges)
by shamar
Help with a program
Hello Good night. I'm Beginner and I've received this program to do its due tonight and i'm still ha...
[1 reply] : Duplicate: (by TheIdeasMan)
Beeping function duration determined by key-pressed event
Hello, I'm currently learning C++ through Dev C++, and I'm working on an programme which with keyboa...
[no replies]
Something weird happening with #ifdef
So I have this code: void TileButton::draw(Graphics *g) { #ifdef DEBUG_TILE_BUTTON g->drawRect(re...
[3 replies] Last: I have solved the problem now, thanks both for your help. (by goldenchicken)
Compare a string with quotation marks
The function strcmp does not seem to like quotation marks in a string. I'm using GNU C++ 5.x. Did I ...
[2 replies] Last: something is up. This simple program gives the expected output of 0 me... (by jonnin)
by Jakjam
Help with the char function
I must write a program that tells the user how many characters are in the string that they entered. ...
[3 replies] Last: Now with pointer use. #include <iostream> #include <string> using na... (by Repeater)
November 2017 Pages: 1... 13141516
  Archived months: [oct2017] [dec2017]

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