General C++ Programming (Page 3)

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)
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)
subroutine & pointers help!
 
I created a program based on the instruction below, but do not know about this pointer, subroutine a...
[3 replies] Last: Thank you so much. I will look at this and learn it. My coding did e... (by mildredx)
type error in struct?
 
Below I am getting the compiler error: src\main.cpp:7:2: error: 'Card_Ranks' does not name a type ...
[4 replies] Last: Forward Declarations (by RUNNER PRO AGARIO)
Application crashes in Debug mode, but doesn't in Release mode
 
Hi. As a test, I'm using this code #include <iostream> #include <conio.h> #include <string> usi...
[2 replies] Last: I'm using VC++ compiler, not GCC. And yes, it warns me but in Debug m... (by gedamial)
std::array out of range error in simplified Blackjack game code
 
On LearnCPP, there's an exercise asking to play a simplified version of Blackjack. I was having tro...
[18 replies] Last: I'll try calling the printCard() and printDeck() functions in main(). ... (by DragonOsman)
Vector is loading values (int) that it should not
 
I have written a program that asks the user to input integers 10-100, inclusive, and load them into ...
[1 reply] : validateValues does more than just validate a value (why is it plura... (by cire)
I need to make this program shorter
 
I have this program #include <iostream> // cin, cout #include <string> // strings #include <...
[1 reply] : I suggest some functions. Try to reduce the code duplication. Also I... (by jlb)
What do you think of my SDL2 program so far?
 
Hi everyone, I started learning C++ last month. I've learned enough basics to begin working with ...
[3 replies] Last: Why make the SDL_Event object a a local variable in game loop instead... (by Peter87)
Please Help !
 
The C++ syntax has real molested me. I am completely stuck. For those who has assisted me before and...
[9 replies] Last: One of the goals of a database is to not read all the records into m... (by dhayden)
Copy constructor gets called instead of inizialier_list<> constructor
 
Hello. struct Foo { Foo() { cout << "default ctor" << endl; } Foo(std::initial...
[5 replies] Last: because i'm explicitly converting the floating-point number no, it c... (by Cubbi)
C++ delay() problem
 
Hi guys, I am trying to make a program that output "Loading", then delay for 1 sec, then output "."...
[4 replies] Last: @Kinyo356: http://codereview.stackexchange.com/questions/42506/using-... (by cire)
My static library project is somehow related with my 'test' project
 
Hello. I've made my own Static Library project on Visual Studio. The problem is this: unless I...
[10 replies] Last: Thanks to everyone ;) (by gedamial)
problem in POPPING ARRAY QUEUE
 
#include<iostream> #include<stdlib.h> #include<conio.h> using namespace std; const int s=50; int...
[2 replies] Last: Yes you are right. Thanks. (by gaurav97)
bubble sort error
 
#include<iostream> using namespace std; void swap(int&a,int&b) { int temp=a; a=b; ...
[5 replies] Last: THIS IS A SIMPLE VERSION OF YOURS. HOPE IT HELPS... #include<iostream... (by Kinyo356)
Pages: 12345... 26
  Archived months: [dec2015]

Cannot post in this page. To post a new message, go to the first page.