General C++ Programming - February 2016 (Page 15)

by Sam786
Need help with C++
 
I need to do a program similar to this in C++,this is currently in java. Any idea on how to do it? ...
[3 replies] Last: Also, article on how to generate random number: http://www.cplusplus.c... (by naaissus)
selection sort issue
 
my second function Sort_arrays is copying my array1 into arrayPtr. i have determined its somewhere i...
[1 reply] : Line 61: overwrites the new array with the old one. The new one is lo... (by kbw)
Finding Average. Trying to find the average of the numbers in string below. This is what I have so far
 
# include<iostream> # include<fstream> # include<string> # include<iomanip> using namespac...
[3 replies] Last: http://www.cplusplus.com/articles/z13hAqkS/ It doesn't look like it c... (by Zhuge)
Reverse String
 
I initially posted this in the beginners forum, maybe too much to ask there, I have the string to ch...
[7 replies] Last: Needs context. It's not possible to say why the result is not as requi... (by Chervil)
ASCII TO STRING Conversion
 
Hi, I have been searching a while for a way to convert acsii code to and from a string, any help is ...
[5 replies] Last: What if its a very long string, like for example 49 20 4c 49 4b 45 20 ... (by BobTheBuildingBuilder)
C++ operator ==, is it important to check self equality?
 
Given the the following code bool Foo::operator==(const Foo& other) { if (this == &other) { return...
[4 replies] Last: > for operator= (assignment) it's usually critical. In modern C++, it... (by JLBorges)
Numerical or Decimal types in C++?
 
Hi, I was wondering if C++ has types to handle REALLY big numbers (let's say currency amounts wit...
[4 replies] Last: You could use a 64 bit integer to represent the number of cents. (by dhayden)
Passing more than one argument to argv in VS
 
I need to know how to pass more than one argument to argv in Visual Studio Community 2015. I have t...
[7 replies] Last: Guys, I already did ALL of that stuff. The code itself compiles in VS... (by DragonOsman)
String Find issue.
 
Hi Everyone! I'm having a little problem with the std::string find function. It's not working in th...
[9 replies] Last: Ah, it's alright. I'm sorry too! (by Hibblejaybob)
(Insertion Sort) How do I count the number of swaps comparisons and passes?
 
If I wanted to print out the total number of passes, swaps, and comparisons, where exactly would I p...
[1 reply] : Can you define what you mean by "passes", "swaps", and "comparisons"? ... (by Zhuge)
Decrypting with arrays?
 
Hey guys, i'm having trouble with one of my c++ assignments. It's about decrypting a string of lett...
[2 replies] Last: You're going to need to explain the algorithm. The screenshot of the w... (by Zhuge)
Feedback on Text Processing
 
Hey there, I'm new to the site. I'd like to put up a piece of code I've been working on and get som...
[8 replies] Last: > how clean your version looks The code looks cleaner because it uses... (by JLBorges)
store just one Row of a vector at a time
 
My vector finalNumbers could have 1-9 columns...could use some help in the right direction I want to...
[no replies]
split line and store
 
Hi everybody :) I have a txt file with some columns, and I woul like take, for each line only the 7...
[4 replies] Last: Thanks for the file data example. Here's an outline of reading from t... (by Chervil)
by calgai
Question about const string array size
 
Hello, I got an interesting result in counting the size of const string array. Looks the sizeof retu...
[2 replies] Last: Here array is pointer! Not array of strings. So size of pointer it is ... (by kulkarnisr)
by homing
assembly crash course for C++ Developer
 
Hey, Do you guys know any book or link where learn the most important things about assembly? I...
[3 replies] Last: Do a search on "intel assembly language tutorial" That seemed to hit ... (by kbw)
incomplete type
 
Keep getting the following compile errors. ..\src\main.cpp:36:13: error: field 'card_rank' has inc...
[3 replies] Last: int and Card_Rank are two different types. Simply assigning an in... (by Peter87)
by Zyion
How do I count the lines for the method and object. I can't figure it out. (1,2)
 
#include <iostream> #include <string> #include <fstream> #include <stdio.h> using namespace std; ...
[26 replies] Last: I got it to work kinda... thanks pnoid! it outputs the number of lines... (by Zyion)
std::string& input function throws bad memory allocation exception
 
I have to write a program for LearnCPP that uses a for-each loop to search through a fixed-size arra...
[16 replies] Last: FWIW, I think it's a bad practice in C#, as well. It's just harder to ... (by helios)
Huffman compression
 
Create a simple class named Tally. Data members should include an array of 256 integer counters, for...
[2 replies] Last: Okay. I did it. Now what? (by Disch)
February 2016 Pages: 1... 1314151617... 21
  Archived months: [jan2016] [mar2016]

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