Beginners - August 2015 (Page 25)

Functions to help beginners.
Here is some code to help beginners with functions. Post your questions on what you don't understand. Enjoy! #include <iostream> #include <string> #in...
Aug 5, 2015 at 7:11am
[2 replies] Last: Good Point, just thought I would help. Some people learn from not only... (by closed account N7960pDG)
Question about Pointers
Quick question: #include <iostream> using namespace std; int main () { int firstvalue = 5, secondvalue = 15; int * p1, * p2; p1 = &firstvalue; // ...
Aug 5, 2015 at 4:10am
[1 reply] : #include <iostream> int main () { int firstvalue = 25 ; int ... (by JLBorges)
Bool statement not working, PLEASE HELP!! PROJECT DUE 8/5/15
Hey guys i need help on my project. So everything runs smoothly until the user inputs a different answer other than the ones asked for (the choices are a-i). S...
Aug 5, 2015 at 4:05am
[10 replies] Last: Yeah the space bar was the problem.. THANKS SOO MUCH!!! (by kromansa)
Some simple database questions
Okay so let me start by saying I have a pretty decent c++ base and very advanced logic skills. So whatever help you will have to provide will probably be minima...
Aug 5, 2015 at 4:03am
[1 reply] : If I was going to put something like that online I'd probably use acce... (by SamuelAdams)
Bool statement not working, PLEASE HELP!! PROJECT DUE 8/5/15
Hey guys i need help on my project. So everything runs smoothly until the user inputs a different answer other than the ones asked for (the choices are a-i). S...
Aug 5, 2015 at 4:00am
[1 reply] : http://www.cplusplus.com/forum/beginner/170890/ Please don't double p... (by Hippogriff)
Using Modulus operator?
I feel like I am making this problem way more complicated than it should be. All I'm trying to do is print out the numbers that are below 1000 that are divisibl...
Aug 5, 2015 at 3:48am
[1 reply] : where do you check to see if it's divisible by 3 or 5 ? you also have... (by SamuelAdams)
STL sort() function and accumulate() function
Try to sort the student' scores data by student's name, after that, try to use accumulate() to find the average of the score I read the data from a csv file ...
Aug 5, 2015 at 1:04am
[6 replies] Last: Thanks for your advises. I am totally a newer for C++ :) (by douglasmchen)
by DannyL
Arghh char help!
I am offering the player a yes or no decision and have coded it like this Char Decision; Char Positive ; Char Negative Char Both; Char Neither; Positive ...
Aug 5, 2015 at 12:44am
[2 replies] Last: #include <iostream> using namespace std; int main() { char deci... (by CodeWriter)
Decimal to binary conversion
I've recently started with c++ and wrote a program to convert decimal number into binary number. #include<iostream.h> #include<conio.h> temp==bin; void main(...
Aug 4, 2015 at 11:03pm
[2 replies] Last: You must be careful to separate the printout or string input of a numb... (by CodeWriter)
by sondsk
set<> with pointers
Hello. I have made my own class, called Person. It looks like this: class Person{ private: string name; set<Person *> friends; vector<string...
Aug 4, 2015 at 8:54pm
[3 replies] Last: Using pointers is necessary if you want a two-way relationship. perso... (by Peter87)
file input-output and virtual functions
Please, help with file output and input of objects. I have base class "firstbase", and its derivative "second". I try to output to file jbject of derivative cla...
Aug 4, 2015 at 8:48pm
[1 reply] : What is the expected output and what are you actually getting? You ha... (by closed account E0p9LyTq)
It's not outputting what I want.
I'm working on a program called Grading Program that I found in the Article section on this forum. So I need to create a program that allows the user to enter t...
Aug 4, 2015 at 8:17pm
[11 replies] Last: Thanks again JLBorges it make sense now. I guess I need to review co... (by closed account yR9wb7Xj)
How to write objects to file...
Please, help me. I'm in serious trouble. I have the following class- class student { string name; int roll; double average; double grade; ...
Aug 4, 2015 at 7:30pm
[7 replies] Last: Thanks to all... It was helpful. Now I understand something. (by PSYCHAMERON)
by am71
Need Help Quick! Full Project
I'm pretty new to programming and I was given a task by a university prof. that I have no hope in completing by the deadline I was given (tomorrow at noon). My ...
Aug 4, 2015 at 7:07pm
[2 replies] Last: I'll give you a couple of pointers to know where to start: 1. Process... (by closed account E0p9LyTq)
Program with vectors fails
The program just fails when I run the program could someone point me in the right direction please? I'm a beginner and self teaching myself from a book so I rea...
Aug 4, 2015 at 6:19pm
[3 replies] Last: > would bleep method work better? bleep = "bitch" ; won't work at... (by JLBorges)
Program using linked list crashes at runtime, no compile errors or warnings.
I need help with debugging a class I wrote to store a polynomial into a linked list. I can compile my code with no errors or warnings, but during runtime, my pr...
Aug 4, 2015 at 5:32pm
[5 replies] Last: Copy constructor line 19 in your copy contructor code doesn't look ... (by andywestken)
Prime number checker 0.1
I have only recently started programming in c++,so I got this idea for prime number checker. I don't know is it any good but it works(at least i think i works)...
Aug 4, 2015 at 5:08pm
[2 replies] Last: It is a very good start. Checking primes is actually a pretty involve... (by Duthomhas)
by Kairo
Novice Game Dev. Looking for excercises to write better code!
Hello, I'm an aspiring (and novice) game developer. Currently working on some basic games in Unity, with C#. But to be honest, C++ is what i want and will ha...
Aug 4, 2015 at 5:05pm
[no replies]
MinGW W64 NOT RECOGNIZING std::thread!
Hello. I recently updated my compiler to MinGW W64 version 5.1.0. I added -std=c++1y to the compiler configurations (I am using Code::Blocks). It seem...
Aug 4, 2015 at 4:55pm
[19 replies] Last: As already given you by JLBorges , you'll need TDM-GCC-w64. It is spe... (by Duthomhas)
socket status
How do I display the status(bound or unbound) of a socket in an array if sockets?
Aug 4, 2015 at 4:19pm
[3 replies] Last: You could try select() but again, the implementation on Windows (which... (by Computergeek01)
August 2015 Pages: 1... 232425262728
  Archived months: [jul2015] [sep2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.