Beginners - March 2017 (Page 25)

Need Help With If Statement Program!
 
Hello, I am struggling with getting the correct output from my program, here is the problem followed by my code: Weight of Package (in Kilograms) | Rate per ...
[1 reply] : #include <iostream> #include <iomanip> int main() { const int MA... (by JLBorges)
by GG96
Pointer to Structure of Arrays
 
Hi guys, I need help with this programming assignment. I am supposed to modify a previous program where we use two array of structs to hold various employee dat...
[5 replies] Last: I tried using the dot operator, but when I ran the program it gave me ... (by GG96)
Separate files questions
 
Code::Blocks 16.01 After trying to learn how to separate my program into files (after watching some videos) and some testing I have some questions: File P...
[2 replies] Last: Thanks for the reply. I didn't have any issues or errors (except if I... (by volTron)
by Bizzy
Classes Problem
 
Hi! So maybe you can help me spot my error. We just started learning about classes and constructors and I'm working on an assignment that asks the following: ...
[3 replies] Last: Okay, thanks! (by Bizzy)
i need help with this error in the code
 
it says 10:1: error: expected unqualified-id before 'do' this idk what to do // Example program #include <iostream> #include <string> #include <cstdl...
[1 reply] : The problem is the ; after main in line 9. Put a { there and should co... (by lazpeng)
Tic Tac Toe
 
In this program I need help shortening the code don't change the include functions because i use chrome os which is very limited #include <cstdlib> #inc...
[1 reply] : Use an array for s: char s = {'-', '-', '-', '-', '-', '-', '-', '-'... (by dhayden)
Question about Pointers
 
Hi guys, hope everyone is doing well. I'm trying to practice with pointers a bit and tried to define what I thought was the same pointer in three different ways...
[2 replies] Last: Thanks very much. (by nikos149)
by cw8jwh
How to create a c++ library.
 
Thank you for taking the time to help me. I am getting back into programming, specifically the Arduino platform. I used to be into Visual BASIC, then star...
[4 replies] Last: @cw8jwh You should make sure you understand -- Difference between de... (by mbozzi)
by kmce
Class version
 
What is meant by a class version. I know what a class is, but ive never heard anything referred to a version
[1 reply] : That's not a regular phrase in c++, and it's kind of too general. Ther... (by newbieg)
Rock, Paper, Scissors
 
Hello :) I'm trying to write a code for Rock Paper Scissors using a random generator. However I need to have the choices for the user be the letters p, r,...
[4 replies] Last: In my given example make else statement which will set pChoice to, for... (by bokisof)
Base and derived classes.
 
Hi, So I figured out my problem earlier, but now my code does not seem to print anything to console when I run it. This is my main.cpp: int main() { Ch...
[no replies]
by wasey
Stuck in an Infinite Loop
 
Does anyone mind giving this a look and help me spot my logic error? I am able to compile and play a tic tac toe game, however the winning condition isn't check...
[6 replies] Last: I've rewritten my code because I was trying to make too many changes t... (by wasey)
Guidance with repitition statements
 
Hi everyone, I completed this assignment and was graded for it, so hopefully it's okay to post. The task was to alter a previous program to repeat if the user c...
[2 replies] Last: First, we know that win/lose and total can't be for example 1.5. So yo... (by bokisof)
by raminM
fibonacci
 
Why is my code ONLY printing the first two integers of the sequence?? #include <iostream> using namespace std; int fibonacci( int n ) ...
[6 replies] Last: the concept is that variables that exist in a function are destroyed w... (by jonnin)
which compiler
 
Hi, I am learning C++ nowadays. I think it is time to start writing code. (i was learning on a phone app by reading only, not my pc) What should I do to wri...
[4 replies] Last: Windows 10, go for Visual Studio 2017 Community Edition. https://www.v... (by JLBorges)
by haoz
Assistance with structuring addition of HDF5 writer
 
I am working on the codebase of a simulation program. At the moment output of simulation timeseries data is in text form. This is unwieldy, and I would like to ...
[4 replies] Last: Is there a public accessible description of those C APIs? For HDF5?... (by haoz)
Structure Pointer Become Null at every call of the function
 
Write your question here. #include<iostream> using namespace std; struct node { node* next; int data; }; void insert(int item,node* head,no...
[3 replies] Last: Yes, you can. A pointer is just a variable, like any other type of va... (by MikeyBoy)
survivor s34e1 online premiere video full links
 
cout << "Fuck off";
[2 replies] Last: Indeed. By replying to the spam, test1234, you've ensured this thread... (by MikeyBoy)
std::cin to a text file
 
I am trying to put some data into a text file, and the std::cin.failbit() is always triggered after the sting input? Can anyone help please!! #include...
[7 replies] Last: Ive had a bit of a re-hash and it seems to be doing what I want now...... (by jamesfarrow)
by jakmms
Don't understand this Stack assignment
 
Here is what my instructor gave me : 3) Write a full, templated Stack class with a Pointer Based Implementation. Write tests to fully ensure that the St...
[3 replies] Last: JLBorges posted this about 3 weeks back - you might have to tinker wit... (by gunnerfunner)
March 2017 Pages: 1... 2324252627... 36
  Archived months: [feb2017] [apr2017]

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