Beginners - June 2019 (Page 7)

Organizing a Medium/Large C++ Project & When to Use Try/Catch?
 
Broad Project Goal / Idea Behind It : The user plays a game where they have a market which buys and sells different items for different prices and amounts. For...
[19 replies] Last: [quote=coder777]I do not suggest using the INFO parser for your partic... (by PiggiesGoSqueal)
#include <filesystem> alternative using Boost & Portability
 
I want to open each file in a directory, read the file, store the data into my program, and close the file. Then repeat until all files have done this process. ...
[19 replies] Last: [quote=mbozzi]Whoops, I didn't notice your prior reply, so this is abo... (by PiggiesGoSqueal)
by sparki
Failed rendering information test
 
Hi, why did the RenderingInformation test from the main() failed? Is my class RenderedPoint member function: virtual Factory& getFactory() correct in the first ...
[3 replies] Last: As far as I see (I did ask for clarification in the other thread but y... (by keskiverto)
by kmce
Are variable names also operands?
 
Is a variable name also classified as an operand, ie double df = 8/4; is df classified as a operand, or are just 8 and 4 the operands?
[12 replies] Last: Ok. I see, thanks. I know you can't assign to const, I should have c... (by jonnin)
Accessing to data members of a class issues!
 
In cin statements, I am not putting in like objectpass.name, objectpass.n, objectpass.ch So there is noting displaying. If I put in properly in cin like obje...
[2 replies] Last: In your disp() method, you're passing the ObPass arguement in by v... (by MikeyBoy)
LNK2019 error
 
I cannot find the mistake. #ifndef GROUP38_TASK4_CAESAR_H #define GROUP38_TASK4_CAESAR_H #include<iostream> #include<string> #include<cctype> #includ...
[5 replies] Last: ok thanks it works now (by parth1919)
Singly Linked List, Deleting, and Destructors
 
Led Reasons Why You Are Home And Business Use You possess a beautiful home and is probably the best standing a long time. You have enjoyed the comforts of i...
[1 reply] : You didn't link to any website that has your code. (by zapshe)
Allowing user to place objects on a array
 
I want to make the code so a user can manually input 5 different types of "ships" e.g Aircraft Carrier 5 long Patrol Boat 4 long etc all different lengths ...
[2 replies] Last: Any input/help is greatly appreciated Certainly wasn't last time. "A... (by dutch)
Get int from edit box
 
I want the int beatsperminute, which can be changed in an edit box, to be updated on button click. Any help? case WM_CREATE: { mySzInput = "30"; ...
[3 replies] Last: This works for me: char str ; GetWindowTextA(GetDlgItem(hwnd, 100), ... (by bchinfosieeuw)
by sparki
C++ Incorrect output
 
Is anyone able to tell me what is wrong with my "virtual Factory& getFactory() const" function in class RenderedPoint? I am just not getting the correct output....
[3 replies] Last: What "rendering test"? (by keskiverto)
defining function within class
 
Hi, I am not sure about why defining a function within a class doesn't take any parameters in the code below. (Please ignore any physical meaning of the area an...
[1 reply] : Which of these is syntactically correct declaration of a function: ... (by keskiverto)
C-string pointer
 
Hello, in the block of code below, ptr is a pointer to a C-string. It should store the memory address of the first element, if I understand correctly. Why does ...
[2 replies] Last: The behaviour that you do expect would be by: ostream& ostream::opera... (by keskiverto)
Guys if you dont mind i might need assistance with making a password lock program
 
I am trying to make a password lock program in DEV C++ my compiler does not agree with this program. pls i am not able to solve this one #include<iostre...
[6 replies] Last: You could use <thread> to make use a thing similar to Sleep() : ... (by highwayman)
Need help with char
 
So i'm tasked with making a code that use char to identify your grade such as A,B,C,D and F. Basically, when the persons inputs a letter grade, the output will ...
[4 replies] Last: or a lookup table. string tbl = {"awesome", "good", "average", "terr... (by jonnin)
by sparki
C++ compilation error(Underfined ref)
 
Hi, I am trying to get my member function "virtual Factory& getFactory() const" in class RenderedPoint to work but it doesn't. I am receiving an undefined refer...
[4 replies] Last: Experience shows that no one ever bothers to check that list. Your e... (by MikeyBoy)
Stucked with a problem
 
Hi, I'm trespassing a working project from VisualStudio (Windows) to g++ (Xubuntu). In visual studio it compile and worked well but in linux it throws an er...
[8 replies] Last: You're welcome! (by MikeyBoy)
Help : Simple Program Not Working
 
Hello. I have this program from a list which the teacher gave us. Why this program doesnt show anything when is runned ? What it supposed to be the output ? ...
[4 replies] Last: THANK YOU ALL !!!!!!!!!! Is a list from a test , i think i heard the t... (by WalterCC)
Short Simple Exercise Please Explain Me
 
Hello. I dont understand this program. Even if I make changes in him , I still dont understand . Can u please explain it to me ...please. #include<iostr...
[3 replies] Last: Thank you soo much !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! BE BLESS (by WalterCC)
CreateStatusWindow
 
#include "framework.h" #include <commctrl.h> /code */ HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, x_pos,y_pos,wWidth,wHeight...
[15 replies] Last: I do not know nothing on c++ ... What do you mean with this ? See thi... (by coder777)
Homework help
 
Hi all- My professor gave me an assignment and I am totally lost. It was due yesterday and she still is not answering any of my emails. If any one can help i...
[2 replies] Last: The shop owner needs a program to read in the shops inventory, displa... (by zapshe)
June 2019 Pages: 1... 56789... 13
  Archived months: [may2019] [jul2019]

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