Beginners - August 2017

Problem on reading binary files
I'm trying to create and read a simple binary file but instead of displaying from 1 to 10 it display...
[4 replies] Last: Adding create.flush(); after writing to the file could do it. It... (by Chervil)
by xbar2
Need some help with my C++ practice
Hi all, i am learning C++ and have some test mockup available with me while practice, i was able to ...
[1 reply] : 1, 2 and 4 appear to be trick questions. There is no built-in integer... (by JLBorges)
I am stuck with this question..hope someone could guide me along! Thank you Problems: 1. I do not kn...
[10 replies] Last: Hello cplusplusgs, "using namespace std;" if for lazy instructors tha... (by Handy Andy)
Include other cpp files into main.
I am currently creating a simple login system for an upcoming assignment. I want to neatly organize ...
[5 replies] Last: You've made the same mistake in line 20 of your first code block - you... (by MikeyBoy)
string C++ and C-string
What is a string in C++ and what is the difference with C-string; What is the use of string tables ...
[2 replies] Last: string in c++ is a class/object with methods and internal memory manag... (by jonnin)
i want the console auto shutdown after 1 minute because i dont want anyone who try fake ID and passw...
[8 replies] Last: Dev-Cpp uses the same MinGW compiler that comes with Code::Blocks 16.0... (by Thomas1965)
delete words from file
How do i delete words from file.Here is my code.Lines 52-67 are the lines that i need help with. #...
[5 replies] Last: Here's one way of thinking about it, which is fairly simple. Read the ... (by closed account 48T7M4Gy)
Can someone please help me solve this question?
Hello I have received this question from my lecturer, however, he is unwilling to teach me how to so...
[7 replies] Last: #include <iostream> #include <string> using namespace std; int main(... (by lastchance)
Program does not give the right values.
We have to make a LCM function, the GCD function was given. I copied and pasted the GCF function to ...
[4 replies] Last: Thanks for the help guys, I appreciate it. (by Adjutant)
searching text file
function Searchf accepts line but displays not found even for words that are present. #include<i...
[2 replies] Last: thank you so much. (by suyashsing234)
file search even displaying part of word
The search works but when i type a letter or continous letters of a word it displays word found even...
[2 replies] Last: thanks. (by suyashsing234)
HashTable Remove Function crashes program (1,2)
I have two functions find and remove implemented for a linked list and they work fine. However I'm u...
[21 replies] Last: My apologies. I didn't know this was a forum about which letters to ca... (by kingkush)
making a C++ program and need to input a bat code
Write your question here I am writing a program to assist with password resets and need to input th...
[6 replies] Last: missed the follow ups. system can be replaced with, depending on what... (by jonnin)
For loop question
I used a simple for loop in a program ie (int i =0 ; i<x ; i++) , but now i need to use the value of...
[2 replies] Last: Telling the above in simple terms declare int i outside for loop and u... (by suyashsing234)
How to assign the max & Min into the array's rows (1,2)
Hi everyone, I got a problem assigning the maximum and minimum into the respective array's rows. ...
[23 replies] Last: Hello Shyanie, You are welcome. If you have any more questions just a... (by Handy Andy)
by xeef
sem_t for pthread on heap
do i understand this right if i have a class with a class variable i need to use malloc and cant...
[8 replies] Last: @coder777 This is called a dangling pointer. this is clear to me ... (by xeef)
by Ma92
reference returning functions
Please explain, where we can use a reference returning function. int& setdate(int t) { re...
[5 replies] Last: Oh, interesting example. I didn't think of that, thank you. (by Ganado)
confused on passing by reference
what im really trying to do is to have this program calculate the equation i have but instead of it ...
[2 replies] Last: Line 19 creates a whole new variable named x. Perhaps you meant: x... (by Repeater)
deleting an element in a class array
Brief Background: - I am using two classes (Patient and List) + test drive (.cpp file) - Here is a...
[6 replies] Last: vectors are sweet but you may want to avoid resizes and big data shift... (by jonnin)
by Bopaki
The function: replace_copy_if produces no output in my program
In this program the function: replace_copy works fine, but replace_copy_if gives no output. ...
[5 replies] Last: ( int x ) -> int { return x <= 50; }, this should technically retur... (by gunnerfunner)
August 2017 Pages: 123... 17
  Archived months: [jul2017] [sep2017]

This is an archived page. To post a new message, go to the current page.