by admin
Welcome -- read before posting!
Welcome to the beginner's forum in! 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 Duoas)
Hi all. I have some questions and please help me, I have exam and i need answers. So I need to kn...
[1 reply] : function overloading is have 2 versions of the same function. operato... (by jonnin)
Ofstream problems
Good day everyone, I have a problem in my program, when i use ofstream called write, main.exe starts...
[5 replies] Last: I'm having a mind blown moment as I didn't know ofstream can be passed... (by Happilicious)
Design questions - creating a command line interface and controlling privilege level
Hello, I am writing a console application which needs to print certain messages while performing ca...
[4 replies] Last: perfect, thanks a lot Thomas1965!, got it (by erixliechtenstein)
Program received signal SIGSEGV, Segmentation fault (1,2)
Hi, I have encountered the above error while debugging. I am suspecting that I have used some pointe...
[29 replies] Last: @jlb: I will be fiddling with C++ this summer and this is first thing ... (by lifeisgood)
how to convert at txt file to html
i am trying to write a program that reads a txt file and converts it into html 1.0 file. The he...
[2 replies] Last: Also, only raw string literals may contain newlines. Inside a string,... (by mbozzi)
HW/Assignment Issue While Loop Misbehavin'
Hello, I have been asked to create the following output using a loop: How much do you want to save ...
[4 replies] Last: Hello alexelliott83, After looking into ar2007's suggestion I found t... (by Handy Andy)
How could I test whether the input parameter is uninitialized
I have 4 arguments are integers, and for consistent reason, I want to test the input argument is ini...
[8 replies] Last: Thank you for your solution. gunnerfunner solve this problem. (by waschbaer)
Output without coding display
How i can make a file to display the output of c++ coding done in codeblocks without displaying the ...
[4 replies] Last: I would prefer the file to be cross platform. true, it's on the OP"s... (by gunnerfunner)
font color error
I am trying to change the baackground color and the font color in c++ but 'codeblocks' only reads t...
[10 replies] Last: Hello suyashsing234, Your welcome. Sometimes it is the little things... (by Handy Andy)
what is type casting of classes and where is it used??
hi, can anybody tell me what is type casting of classes and where it is used? I googled it and I...
[3 replies] Last: It's a const reference to an object of type A . (by MikeyBoy)
explaination of static in layman's language
I looked up everywhere but really can't understand how static works.Can you tell me its overview in ...
[1 reply] : The static keyword has many uses in C++. static local variables If ... (by Peter87)
goto for an integer
How to do i use goto for an integer? when i use goto label; label: it works but when i use goto ...
[5 replies] Last: > so what should i use instead of goto which is also as simple as goto... (by JLBorges)
by xari2
function void main()
#include<iostream> using namespace std; int i; void main() { i=10; cout<<"\n"<<"in main(),...
[2 replies] Last: see what tulu wrote and instead of void main() use int main() and befo... (by suyashsing234)
by darje
binary files
when i try to write binary in visual studio i write to text file .. and i cant see nothing even g...
[2 replies] Last: you have to put a flag on the file open., ios::binary); ... (by jonnin)
smart menu (1,2,3)
Hello ! I have made a smart menu that does the following: 1) allows to add a function with a name ti...
[44 replies] Last: i did try using shared_ptr but it crashes the program i'l implement it... (by globaltourist)
Hello, I was to make a post office management system for my school project and it is working perfect...
[11 replies] Last: @whitenite1. I tried that and it did not work. As I said I found tha... (by Handy Andy)
by sharbu
Count the number of duplicate elements in an array-C
Accept an Array of size N and print the total number of duplicate elements (The elements which occur...
[2 replies] Last: Figured it out :) #include<stdio.h> #include <stdlib.h> int main()... (by sharbu)
by sharbu
convert a bool return value into YES or NO
The following program finds whether the given two strings are isomorphic or not. This code returns 1...
[6 replies] Last: I'll try again. Aim is to make it work for any container, not just str... (by lastchance)
Pages: 123... 39
  Archived months: [apr2017]