General C++ Programming - May 2013 (Page 15)

If Statement Within a Switch
 
Hello! I am having a bit of difficulty with this. I wish for the program to output "The number zero is neither odd nor even." whenever user enters a 0. But when...
[2 replies] Last: Ah. You are correct, Mister Vlad. I didn't realize that the '=' operat... (by Vauxhall)
Binary tree Insert?
 
Hello everyone. I recently finished implementing a Binary search tree for a project I was working on. It went well and I learned a lot. However, now I need to i...
[5 replies] Last: I know what they are. And to be pedantic, a BST is a type of binary tr... (by Duthomhas)
by MaxFox
Problem in my c++ code
 
here is the code: #include <iostream> #include <cmath> #include <conio.h> using namespace std; int main () { char chAuswahl; { co...
[3 replies] Last: he means: edit your message and put code enclosed by tag [ code ] ... (by Nobun)
Destructors being called more then expected?
 
In this code: #pragma once #include <iostream> class CBox // Derived class { public: // Constructor explicit CBox(double ...
[12 replies] Last: So true thanks Peter87. and thanks cire! (by Anmol444)
by Bhallu
Doubly Linked List
 
Please Tell me what is wrong in this program and how it can be solved? #include <iostream> using namespace std; class Node { private: int data; N...
[no replies]
libusb win 32
 
Hi Can anyone give me some correction about libusb win 32? Thanks!! :)
[4 replies] Last: Yes I read the documentation but I don't understand how to configure V... (by fabioGiudici)
Random access iterators
 
In this code: vector<int> mydata(100); mydata = 999; In statement 2 does that call the iterator to access the 3rd position and set its value to...
[18 replies] Last: Ok, thanks. (by Anmol444)
Indicating a sequence of elements
 
Why is it that in the STL it is standard to indicate a sequence of elements in a container by a begin iterator that points to the first element and an end itera...
[2 replies] Last: Oh true, thanks! (by Anmol444)
question about headers and objects files
 
Hi all, I have a question regarding how GCC relates a header file and its binary file. The following example from "An Introduction to GCC" will help me to exp...
[7 replies] Last: Thanks for the prompt replies! I wasn't sure how GCC searches for refe... (by santiagorf)
Calculate date and time from UNIX time
 
I need to calculate the date and time from UNIX time. And i need to do this without any extra libraries or includes. Just plain arithmetic code.
[no replies]
AVL tree deletion
 
So I am new when it comes to tree data structures and I am supposed to implement an AVL tree. My problem is the way the deletion of a node works. I have this co...
[no replies]
Help Please
 
So I've been tasked with creating a program that checks to see whether or not a string is a palindrome. It has to remove whitespace, punctuation, and capitaliza...
[7 replies] Last: Found one problem you should be able to fix easy. If you type !@#$%^... (by SamuelAdams)
GDB for Memory leaks
 
Hi Guys, Please help me to understand why the below command has failed with the error "gdb: unrecognized option `-leaks'. I am sure that this used to work for ...
[1 reply] : http://stackoverflow.com/questions/14775312/enable-memleak-option-in-g... (by cire)
by yl88
Problem with deleting pointer
 
not nedde any more.
[1 reply] : You need to take another look at your sort function. The line: int*... (by cire)
Convert PDF to TIFF
 
I am developing a program that convert PDF files to TIFF files. I use imagemagick++ and can accomplish the concersion successfully. But the resolution of the mu...
[7 replies] Last: I don't know anything about imagemagick++ either, but the one thing d... (by doug4)
Executing of batch file
 
I want to execute one command using batch file but non of below code is working where Please tell me where I am going wrong, Following are codes for executin...
[2 replies] Last: @aryanLohia Your code works ok for me, if I ensure that the batch fil... (by andywestken)
vulnerable recursive programming on "define"
 
hi guyz! i've been studying "algorithm" by myself by book. and there's this part - vulnerable point of "define" syntax on recursive programming. pl...
[1 reply] : Look at the y term of max. For each recurrsion of max_arr2, the y ter... (by AbstractionAnon)
by labeeb
Error in reading struct from binary file.
 
Below is the code for reading a struct that was stored in a binary file. Problem is while reading from file I get the name without first character and age is a...
[3 replies] Last: By the way, the version of the while loop I proposed can be easily c... (by KRAkatau)
by ReVolt
Turning BMP Image To Min. Finite Automata
 
Hello I have problem with this... I don't know how to start with it, first thing that came up to my mind was "loop through an array of bits" in bitmap (monochro...
[12 replies] Last: thanks, but I have to consider the offset at each row em I right? (by ReVolt)
Question about unordered map
 
This http://www.cplusplus.com/reference/unordered_map/unordered_map/ Says that --------------------------------------------------------- "Internally, the e...
[13 replies] Last: Thanks! (by Anmol444)
May 2013 Pages: 1... 1314151617... 47
  Archived months: [apr2013] [jun2013]

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