Beginners - April 2020 (Page 14)

by pkdir
Return success value - Best Practice
 
Hi, I have a few functions that load and validate data from a file. If any of the text fails a give...
[8 replies] Last: I keep replying in-between you posting haha. So after reading your me... (by pkdir)
by R0SsAN
C++ Obfuscation
 
Hi everyone, I have created a program to search for strings in certain txt files. The .exe would lik...
[2 replies] Last: If you are really paranoid, you can encrypt the incoming text file and... (by jonnin)
totals not adding up
 
Hi there I apologize if there is a solution to this. I have however browsed the forum and have no...
[1 reply] : Never mind. I should have initialized total =0; I am leaving this he... (by Mischkedb)
error handling for this method?
 
Hi I'm writing a library where one of the methods of a class has the following signature: ...
[2 replies] Last: Is a bad parameter supplied by the user exceptional? https://en.cppr... (by Enoizat)
reading ifstream
 
hey guys for an assignment I have to write the function to numbers from a file. The function was alr...
[3 replies] Last: Hello clayoda, Given your code: int openAndReadNums(string filename... (by Handy Andy)
Need help ASAP with error client.cpp|58|error: passing 'const Fraction' as 'this' argument discards qualifiers [-fpermissive]|"
 
My program runs fine without my shortcut key input, but when I use my shortcut key input I get this ...
[4 replies] Last: It was my functioncapitalization omgggggg (by Depressed)
Getline won't work
 
Did my own code. Didn't work. Copied instructors code and won't work. They don't know why. Case 1...
[12 replies] Last: Some helpful links that also explain this problem: http://www.cplusplu... (by Ganado)
Filling a several vectors from a file with ints and strings
 
I am currently working on another lab and I can't seem to figure out how to fill these vectors with ...
[3 replies] Last: Yes, since it comes in predictably. They likely expect you to see th... (by zapshe)
operator <
 
I am trying to create a program that is an event simulation using the STL priority queue. I created ...
[5 replies] Last: If the STL priority queue is a templated class, does that mean I have... (by keskiverto)
Reading Multiple Integers from Binary File
 
I am really baffled and cannot figure out what the problem here is. I am writing 3 Integers to a fil...
[3 replies] Last: For someone who might come in and have a look what I did to fix this ... (by lvlanson)
How to create an array of pointers to object of a inherit class
 
Consider the following code class Shape { protected: int length, height; public: Shape();...
[1 reply] : Remove lines 15 and 21. Put lines 7 to 22 within a loop that iterates ... (by Ganado)
by rklein
Traversing Singly Linked List
 
Okay, so I am an electrical engineering major in my senior year. I have some experience with embedde...
[3 replies] Last: Please post OrderedList.h and Node.h (by dhayden)
I have a question about dynamic array (c++11)
 
Hi, I'm a sophomore student of CS and preparing for a coding competition, But I meet some problems. ...
[6 replies] Last: Thanks a lot! That solves my question! Awesome explanation! (by hellowarudo)
WM_ERASEBKGND not erasing drawing
 
I want to draw a moving shape, either on WM_MOUSEMOVE or in a Timer. But the old shapes are not eras...
[12 replies] Last: Thanks! In combination with WM_ERASEBKGND and return 1 it does not fli... (by bchinfosieeuw)
by annw3y
classes c++
 
I have class Book, which have name, price and barcode. I need to create method bool isSame(Book *b),...
[1 reply] : bool Book::isSame(book *b) { // add code here to decide if (barcode... (by Repeater)
Store List Assignment Help
 
Hi! I'm working on writing a code that's due in a few hours. The code, when given an input like: ...
[2 replies] Last: Is making a 3d vector the best way to store all of this information? ... (by jlb)
Loops-Drawing a Tree (C++)
 
Hello. I am working on this assignment and it has been giving me serious grief. I was wondering if I...
[2 replies] Last: Thank you! This helps so much! Also thanks for the single loop tip, I ... (by fruhtie)
Stop while loop with virtual key press
 
Hello, i've been working on a program about input and output in a .csv file. It works, but my probl...
[7 replies] Last: mimic of getch is challenging. Every OS has some way to do it, but c+... (by jonnin)
Small issue with output message in object code
 
Write your question here. The program is suppose to take number of passenger from int main(),and th...
[6 replies] Last: Thank you so much all,for your time and help it works finally :) (by hayabusaruler)
by kbw
I need your help please
 
Where are you stuck? How much of it can you do?
[3 replies] Last: i just need the code Here's some code for you: #include <iostream> ... (by deleted account xyzzy)
April 2020 Pages: 1... 1213141516... 20
  Archived months: [mar2020] [may2020]

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