Beginners (Page 2)

by acprog
Show the array (nxm) and navigate it with cursor
Is there any way for showing a bidimensional array and navigate it using cursor - in console? I m...
[3 replies] Last: It isn't especially hard, but it isn't simple. However, this is my re... (by Duthomhas)
by Jhokuu
[issue] code not reading for loop properly
An assignment from school that I'm having a little bit of issues with. The output after the first ro...
[2 replies] Last: #include <string> #include <iostream> constexpr size_t array_size {... (by seeplus)
urgent help with input problem
need help urgent. if the user enters y, or Y output = you are enrolled if the user enters n, ...
[1 reply] : The user can theoretically type in bad input, such as "abc", so you ne... (by Ganado)
How can i print argv
Hello How can i print all value for argv? Is this code are ok? Doest i need a terminal to see the r...
[2 replies] Last: (by ne555)
by derpus
Cannot output ansi colour codes with fstream
I'm having trouble with the outputting of strings containing ansi codes. #include <windows.h>...
[13 replies] Last: > if anybody could explain to me why using the '\e' in the text file d... (by salem c)
by chipp
const variable syntax (1,2,3)
i just read a code with different declaration of const , e.g.: int const* num1; int const* c...
[50 replies] Last: The extern int xxx; does not allocate memory. It does tell that iden... (by keskiverto)
by sito20
Sales_item.h: no such file or directory
Hello all, I recently began teaching myself c++ with a book, c++ primer, and I just started with ...
[2 replies] Last: I found a link to a file with the header name on a subsequent page, th... (by sito20)
by jeyc
c++ login system
I'm new to c++ and I'm trying to create a login system for my school project this is my code: ...
[1 reply] : welcome! please put code tags around this, edit your post and highlite... (by jonnin)
Can't handle signals after changing process group
Hello guys! I have this little code: struct sigaction sa; void signal_handler(int signum); int...
[1 reply] : Scroll down to th... (by salem c)
Error trying to use a for loop with input validation using tolower() and .length()
*Disclaimer* This is a homework assignment, I asked my teacher about the issue and he gave me great ...
[10 replies] Last: Just keep posting in this thread, starting a new thread is ultimately ... (by TheIdeasMan)
by Jhokuu
Running into a snag with an error
so my goal here for this assignment is to re-arrange my array from largest to smallest I'm aware my ...
[2 replies] Last: foo.cpp|50 col 16| warning: unused parameter 'arr' [-Wunused-paramete... (by ne555)
Normal distribution random values sum to 1
Hello everyone, I need a small help. I need to generate random values between 0 and 1. They must be...
[15 replies] Last: @ lastchance,no, it is not you, it is me who could not explain the th... (by learner999)
Searching string for a partial string, using structures: displays both 'found' and 'not found' statements?
This is for a program that uses structures to store data. customer is the structure that holds data...
[15 replies] Last: Perhaps (not tried): void findCustomer(const string& name) { size_... (by seeplus)
by BigTim
Making a bank account display certain amounts
This is my first year taking coding so I'm a bit confused cause I'm currently trying to work on this...
[2 replies] Last: Yeah, I'm sorry for the terrible explanation I was able to figure it o... (by BigTim)
How to add Cascade infrastructure to Microsoft Visual Studio
I want to use Cascade ( in Visual studio V.2013. The following is ...
[3 replies] Last: This is a problem of windows. min/max are defined as a macros. So dire... (by coder777)
>> operator not working for ifstream
So I have this function I'm working and I've been stuck on it for hours, in short I'm trying to impo...
[2 replies] Last: Consider this: template< typename V, typename W > void Digraph<V, W>::... (by coder777)
Out of range error on substr
Error: terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::s...
[3 replies] Last: Ganado -> Hey thanks for the tip, the ignore placement seems to have g... (by Volapiik)
Blackjack: Issues with repeating integers in array (1,2)
I've been making a blackjack program to refamiliarize myself with the C++ programming language; I ha...
[22 replies] Last: A std::deque might be better suited for a deck of cards than a std::ve... (by Furry Guy)
Sorting a List With Nodes
Hello All, I am working on a small program for classes in C++. For the program, we have to write ...
[5 replies] Last: bool node::operator > (const node& n) { return n < *this; } but eve... (by ne555)
changed address of variable in the heap segement
#include<bits/stdc++.h> using namespace std; int* A( ){ int* a = new int; *a = 3; co...
[1 reply] : why does the address of a changed? Because each time you call A() ne... (by coder777)
Pages: 1234... 14
  Archived months: [aug2021]

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