Beginners (Page 70)

Accessing multidimensional vector in a class.
I have a class CharMap and in its constructor I have this: vector< vector<char> > CharGrid(xres, ve...
[1 reply] : Your CharGrid is not populated. You are accessing bounds that are not ... (by closed account j3Rz8vqX)
New to programming, Issue with Visual Studio 2013
Hello all, I am new to coding entirely. I am trying to use accelerated c++ to get my basic learning ...
[3 replies] Last: My apologies for the late reply, I was very preoccupied at work. Thank... (by adrns012)
updating the contents of a file
So what I need to do for this program is to read from a transaction file all the data and then updat...
[4 replies] Last: If you want to replace a string in the file, the new string would need... (by Chervil)
Sort Algorithms using Pointer Arrays
Hello! I'm new in town and I working on sorting Pointer Arrays. I am familiar with the bubblesort,...
[3 replies] Last: for... (by Duoas)
by T3C
For Loops
I began learning C++ today, and it's my first programming language so please bear with me. I want to...
[3 replies] Last: Thanks guys. (by T3C)
Return ref to a constant object
Write your question here. Using eclipse, if the object is a constant, it allows to return a constan...
[3 replies] Last: Well, the problem there is that you are returning a non-const referenc... (by firedraco)
Function Overloading logic / understanding
Hi All, I am literally just beginning learning C++, following a beginners 21 day tutorial... I...
[3 replies] Last: Yes. (by Peter87)
enemy keeps leaving screen
My game right now has a random movement setup for the enemy 'i' but it keeps leaving the screen. any...
[3 replies] Last: Your algorithm isn't incorrect (intended double negative). I am sayin... (by closed account j3Rz8vqX)
2D array
Say for example, I have a 4x4 matrix of numbers in a file. 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 ...
[5 replies] Last: In the above, we read data from one array to populate another. For a ... (by closed account j3Rz8vqX)
Temporary Variables
Once the function is executed, wouldn't the memory used for pc be freed? In that case, there would ...
[2 replies] Last: You should see the difference between stack variable char* pc and th... (by JockX)
Function problem
Write your question here. #include <stdio.h> #include <stdlib.h> typedef struct node { ...
[2 replies] Last: sorry some stupid connection mistake ...exactly that! i wrote that as... (by polka21)
by stlund
Function overloading with Float and Integers.
So I'm trying to make a program that calculates celsius to fahrenheit with function overload. I h...
[3 replies] Last: You can write an overloaded version of CTF as well, float CTF(float ... (by eyenrique)
function prototype vs non prototype
hello i just want to ask if there is a difference between prototype function and non prototype. exa...
[5 replies] Last: I see thanks all my question has been answered thank you all (by Lorence30)
Give the error c++ help me please!!
#include <iostream> #include <string> #include <fstream> #include <cstdlib> #include <cstring>...
[5 replies] Last: You have only created the Car class. If you don't know the difference ... (by Peter87)
Login system help
Hi! I am new to c++ and i want to do a login system for a program i am working on. I want it to use...
[2 replies] Last: Thanks for the help. Yes i mean user2 and user sorry for that. Uhhm i ... (by Space Spaghetti)
by Typ
Count repetitive Input (Array)
Hello again, I wrote a modular program, which -gets 10 integers and saves it in an array, -sorts...
[4 replies] Last: If the array is sorted, you can rely on this to count the number of re... (by Smac89)
100 - 1 = 990, 990 - 1 = 980 while 120 - 1 = 119 and 119 - 1 = 118
This Code: for (int cntr = 100; cntr >= 0; cntr = cntr - 1) { std::cout << "\r\r\r" << cntr <<...
[8 replies] Last: Or just... use a newline... (by NoXzema)
extern versus namespace (1,2)
I've almost never used the keyword extern, in fact I've never needed it. If you want to use function...
[20 replies] Last: Although, I would agree that most of zwilu's arguments are nonsensica... (by closed account jvqpDjzh)
simulate key press
i would like to simulate the "w" key being pressed. as if iwas pressing it on the keyboard but the c...
[1 reply] : why would you need to simulate having w pressed? why cant you do this?... (by The noob guy)
espression with unsigned
Write your question here. #include <iostream> int main() { unsigned u1 = 42, u2 = 1...
[2 replies] Last: I do not understand what is the meaning of the expression itself Let ... (by helios)
Pages: 1... 6869707172... 90
  Archived months: [may2014]

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