General C++ Programming - March 2016 (Page 3)

Problems with functions for c++
 
We have a problem that asks us to write a void function that uses two nested for loops and the modul...
[2 replies] Last: You don't need to return the value. In this problem you are to just pr... (by Stalker)
Encrypting/Decrypting using transposition cipher
 
Hi. I am writing a program for my CS2400 class as homework where we are to either encrypt a message...
[2 replies] Last: Is there a specific place I should put these? (by baronrhys)
char card symbols problem
 
I'm trying to output the unicode characters for a card deck. I need help in implementing it. I didn'...
[8 replies] Last: What does this code give you: #include <iostream> #include <clocale>... (by Moschops)
by dn90
Double hashing issue.
 
FindPos function: static const int R_VALUE = 55603; template <typename HashedObj> int DoubleHashTa...
[1 reply] : Run it under a debugger. Look at the values of variables at the point ... (by Moschops)
by Hamfam
Bool is setting itself to false
 
Hey guys. I've got this bit of code that is beginning to frustrate me so much and I just can't figur...
[4 replies] Last: Also, your Location class probably shouldn't have booleans representi... (by keskiverto)
by Gyiove
calculating avarage without knowning the sum of numbers but there are clues and the pattern repeats.
 
Hello everyone! Lets imagine that we have a vector full of numbers: vector<double> nums nums.push...
[7 replies] Last: I insist, ¿what's your physic problem? I agree. You've posted a v... (by dhayden)
Need help for carry array Integer operator+ function
 
I have the code: LargeInt LargeInt:: operator+(LargeInt &other) { int carry = 0; int temp = ...
[2 replies] Last: The if (carry > 0) ret.info[i++] = carry; within the loop makes no s... (by keskiverto)
by Banlom
Question to split by words
 
Hey, i have a problem to split a string with strtok. My String i have to split looks like this...
[2 replies] Last: Yes, the numbers are always in the square brackets. What do you mean w... (by Banlom)
Problem with exchange sort int float pairs
 
File name:CSC2144N.txt Contents of .txt file -------------------- 10 7.35 -21 45.9 3 -4.56 85 34.1 -...
[3 replies] Last: Yes, I'm looking through the rest of the code now. The thing to do is ... (by Chervil)
rot13
 
Write a C++ program that asks the user for the name of an input file and translates the contents of ...
[3 replies] Last: I added #include<string> and I think it's working (by stormy6161)
How to run C++ programs on Mac or Linux?
 
Hi. After creating a console program or a GUI C++ program how to run it on Linux and Mac? Does C++...
[2 replies] Last: Thanks buddy (by omer123)
Map<vector<vector<int*>*>>
 
I am very curious why the following code compiles and yet does not produce a map of the expected val...
[3 replies] Last: Why on earth would a that loop return a local copy? If you don't spe... (by cire)
Getting Rid of Global Variables
 
I created this program that outputs a menu for a baseball game, allows the user to choose form the m...
[1 reply] : //Function prototypes void showMenu(); void showBill(double, double, ... (by cire)
by jam47
expected constructor, destructor...
 
It's on line 43... and I don't know where to resolve the error. It says expected constructor, destru...
[2 replies] Last: Thanks ne555, I will study that. (by jam47)
Trees
 
I have to build a tree, not a binary tree or any special tree. The instructions say build the tree i...
[1 reply] : class node{ container<node> children; }; class tree{ node root... (by ne555)
need help
 
Hey guys need some help, im a noob when it comes to c++ but im having an issue when it comes to 2 pa...
[2 replies] Last: thanks, i was looking into to but im still a little confused. once i d... (by undecked0)
How to sort alphabetically
 
This is what I'm supposed to do: Write a program that reads two input files whose lines are ordered ...
[4 replies] Last: I don't understand how to alphabetically organize it? To determine i... (by dhayden)
Help with ambiguity
 
Can someone resolve this ambiguity for me? The function 'test' is supposed to determine how many ar...
[2 replies] Last: Here's one way I've found: #include <iostream> #include <tuple> #inc... (by prestokeys)
socket programming issue
 
I have this Atmel code (see attached files) that I have modified for my needs. It connects to my wif...
[1 reply] : anyone ? (by aliyesami)
by RianB
Vector2 Struct: Unresolved External Symbol
 
I keep getting Error LNK2019: unresolved external symbol. Could someone please look at my code, and ...
[1 reply] : Solved... I decided to make the Vector2.cpp file, inline... (by RianB)
March 2016 Pages: 12345... 23
  Archived months: [feb2016] [apr2016]

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