Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
if ( ) + side effects
 
Hi together, in a book I came across examples that demonstrate the behavior of if-structures when t...
[8 replies] Last: https://www.teamten.com/lawrence/programming/keep-if-clauses-side-effe... (by againtry)
Can't fill in 2d array from comma-delimited text file
 
So basically my text file looks like this: Rico,Suave Erden,Alperen Mac,Crip Migos,Quavo ...
[2 replies] Last: #include <iostream> #include <fstream> #include <string> using namesp... (by againtry)
by Vladek
Columnar transposition in C++
 
I found this code on the Internet together with a movie, where it is shown how it works (and on the ...
[7 replies] Last: So I understand that you can sell me the code. Will you use the money ... (by Vladek)
Pointer program that creates a memory map table
 
For a HW assignment I have to use an incomplete program with pointers to create a memory map table. ...
[1 reply] : You have the name and the contents. To get the address of a variable u... (by seeplus)
help with _getch()
 
Hello! I am doing a work on project, during travelling I use my phone IDE (Cxxdroid) and when I ...
[1 reply] : Both _kbhit() and _getch() are windows functions. How do get it to wor... (by coder777)
Divination Calendar/I-Ching Program
 
I am using I-Ching/Mayan(Tzolkin) calendar ,on this calendar each day the entire set up get changed ...
[no replies]
Simulation problem of greatest common divisor in Cascade hardware simulator
 
My question is how to implement a GCD chip in Cascade. I've read the guide (https://github.com/cpeh...
[no replies]
the confusion on c library
 
that is the description of c library in the website Reference: The elements of the C language libra...
[3 replies] Last: Right, round also exists in the C standard library, so perhaps it wasn... (by Ganado)
Orphaned process doesn't receive SIGHUP
 
Hello! I have this simple fork code: int main(int argc, char const *argv ) { pid_t p = fork()...
[1 reply] : https://linux.die.net/man/2/getppid Change this line. printf("test,... (by salem c)
by ALNLAA
A little help with switch statements
 
So i have a task : enter N , and a "social score". After which you write N amount of marks, for an ...
[6 replies] Last: Friendly tip: When you say "it doesn't work", tell us specifically wha... (by Ganado)
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: https://en.cppreference.com/w/cpp/utility/program/EXIT_status (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)
Pages: 123... 13
  Archived months: [aug2021]