General C++ Programming - May 2016 (Page 13)

WSAData HELP
I am not sure what the WSAData function does and was hoping someonce can explain it or suggest any books or websites that can help. I am trying to make a server...
May 8, 2016 at 7:04pm
[2 replies] Last: This is what i meant. I have a small understanding on this code, but i... (by fivestar)
Convert custom String to C-Style string
Hi. I have my own GString class, built using a char* called mainString I have these methods to allow conversion from my GString class to char* GString::...
May 8, 2016 at 5:54pm
[3 replies] Last: A constructor declared without the function-specifier explicit sp... (by JLBorges)
by Hmo
HELP PLEASE
I am supposed to rite a program that convert the time from 24-hour notation to 12-hour notation and vice versa. My program must be menu driven, giving the user ...
May 8, 2016 at 5:13pm
[5 replies] Last: After you set the fill, did you set the width (setw) ? (by Moschops)
Sorting code
Our teacher wants us to show the "number of passes" or the difference in passes in the Selection, Insertion, Bubble, Merge, Quicksort, Radix sorting. Cause the ...
May 8, 2016 at 7:06am
[4 replies] Last: Oh right, forgot about that. Thanks a lot for the help! (by TheGuy21)
by mmyy9
problem with operator<< overloading
I am getting errors in my code. Can someone help me because i can't fix it? std::ostream & operator<<(std::ostream &os,const std::list<int> &toBePrinted){ ...
May 8, 2016 at 6:27am
[4 replies] Last: Thank you very much, it works well!!! (by mmyy9)
BB
what I want to do is add the colour value to the next until the end then average it out at the end with 8, but I don't know how to write that.
May 8, 2016 at 4:32am
[7 replies] Last: No, I can't. Your code is incorrect for several reasons. (by helios)
Hangman Game: Help with finding error
Hi. I'm trying to finish my program on hangman but I jsut can't seem to find the last mistake. The only proglem with the code is that when I enter a letter that...
May 8, 2016 at 3:30am
[2 replies] Last: Thank you so much. I really appreciat it !!! :) (by jrjamesruan)
by knn
error: no match for call to ‘(Vector) (int&)’
Hey, I have a problem with my code and I don't know how I can I fix it, because my skills with refeverences and pointer are not very well. I have following ...
May 8, 2016 at 12:30am
[12 replies] Last: Ah okay... a syntax error. Now I've seen it. I changed intput to input... (by knn)
Ordered removal of a Vector
I am trying to remove an element from a vector at a location given from the user. I was successful at adding an element to my vector and preserving the order. I...
May 7, 2016 at 9:35pm
[5 replies] Last: Thank you so much! I thought I was at least going in the right directi... (by The117Vendetta)
How to know which is greatest number?
#include<stdio.h> #include<conio.h> void main() {int i,max=0,imax,b; int a ; clrscr(); for (i=1;i<=5;i++) { printf("\nEnter number %d:",i); scanf("%d",...
May 7, 2016 at 6:43pm
[1 reply] : You are already keeping track of the highest value so keeping track of... (by Peter87)
by guru23
Minor sort problem
I'm trying to make my program sort this array of numbers from least to greatest but the output is coming out otherwise. Output: 9 12 3 14 #include...
May 7, 2016 at 5:41pm
[7 replies] Last: Don't ever try to use a . That's it. That's all there is to it. a - ... (by Moschops)
Data Compression Question
I recently learned about Huffman Compression in one of my classes and wrote a program that read a text file, built a tree, and created the Huffman code for each...
May 7, 2016 at 4:20pm
[1 reply] : The data "abc" in binary could actually be a sequence like "01000001 0... (by SIK)
by byOmer
Char array to double ?
Where is the "+" and "5" ? it give me only first array. but I want to every array. #include <iostream> #include <cstdlib> using namespace std; int ma...
May 7, 2016 at 2:32pm
[1 reply] : This is not how the input works cin takes the character number and p... (by pizzaboy150)
How can I generate openCV debug libraries using cmake-gui?
My openCV is missing debug libraries (libraries that end with "d") and so I can not read an image using imread(). How can I generate this libraries to my buil...
May 7, 2016 at 12:20pm
[4 replies] Last: I have set the build target to debug, but it is still not working. (by payman kh)
Reading in words from a file one at a time and ignoring unnecessary characters in it?
Hey everyone, I have to read in words from a file one at a time, make them lower-case, then pass them into a function. The problem I am having is that sometime...
May 7, 2016 at 11:50am
[6 replies] Last: Just for fun, a solution that edges into the very useful world of C++ ... (by Moschops)
by pintu8
while loop problem in c++
Using while loop write a program that prompts the user for two integers. Print each number in the range specified by those two integers.
May 7, 2016 at 8:03am
[6 replies] Last: thaanks a lot Peril (by pintu8)
Large size of Matrix handling(interview question)
I just had an interview where I was given a size m x n and asked to create a matrix. Each field in the matrix is either true or false and asked to calculate how...
May 7, 2016 at 12:45am
[3 replies] Last: @helios @JLBorges Thanks for the replies guys. I told them at each tim... (by codebusters)
by brsk
How to capture 3 different keys in a OnKeyDown event?
Hi, I'm currently working on a proyect at my job, and I'm having trouble trying to capture 3 different keys at the same time. I have no issues when I try CTRL +...
May 6, 2016 at 9:35pm
[no replies]
Changing class type to a derived class - possible?
I was wondering if it was possible to change the class of an object to something derived from it, and if so how would be best to do it? For example, I have a...
May 6, 2016 at 8:29pm
[3 replies] Last: If you need to cast to a more specific type, you aren't using polymorp... (by Zhuge)
How can I change the build_type in cmake-gui?
I am running cmake-gui on windows 8.1 How can I change the build type to debug? there are no option for this in the gui window?
May 6, 2016 at 8:20pm
[no replies]
May 2016 Pages: 1... 1112131415... 17
  Archived months: [apr2016] [jun2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.