Beginners - August 2016 (Page 18)

by Kbott
error question
 
I can not find any relevant information on the error I am getting. Library.cpp:25:33: error: conversion from ‘Book*’ to non-scalar type ‘Book’ requ...
[8 replies] Last: aaaa ok cool thank you both. (by Kbott)
SDL/SFML
 
I have finished basics in c++ and now I would like to advance to graphics designing whats better to use ? 1.SFML 2.SDL
[4 replies] Last: There is basically one difference from my experience between the two. ... (by Z e r e o)
How to debug menu options
 
Hello, I created a test program in Visual Studio 2010 C++ MFC Application solution using the wizard and selected the Context-sensitive Help (HTML) option on ...
[19 replies] Last: Don't be sorry, I learned something I didn't know previously. :) Thi... (by closed account E0p9LyTq)
SDL smooth velocity decreasing
 
Hello. I am making tiny game for just my own pleasure. I have one tiny problem with movement. When I stop holding keys for movement my character stops immediate...
[1 reply] : It might help to create a pair of "target velocity" variables that you... (by Albatross)
Binary Search
 
Question: Given an array (ArrayInts) compute the sum of all the even integers, the odd integers, and search the array for the target value of the sum of all odd...
[10 replies] Last: However, when I try this I get an error: 30 19 C:\Users\4.cpp inval... (by AbstractionAnon)
Could not deduce template argument error
 
Hello, This function works fine : template<class T> mValArray<T> abs (const mValArray<T>& x) { mValArray<T> x2(x); for(mValArray<T>::iterato...
[6 replies] Last: Problem solved!!! I forgot to include this header : #include <cmath... (by Naughty Albatross)
Finding the prime number
 
\*Write a program that computes for the sum of all prime numbers less than a given n. Assume the input will always be greater than 1.*\ Hi, so I am really new ...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
by Kbott
how to use another class member variable.
 
I have been looking around for a good example of how to access another class member variable in another class. say I have this file with the class Code ...
[5 replies] Last: @andy1cplusplus That's terrible advice. Inheritance is something that... (by MikeyBoy)
Pass object to constructor of another class
 
For learning purpose i try following (text rpg context): I'm creating a Player object. Next i want to create a Monster object with passing the player object to ...
[6 replies] Last: One more thing: -std=c++14 -ansi is a conflict, -ansi means c++... (by TheIdeasMan)
menu option
 
Write your question here.This is my sample program using structure for students records,it runs okay.now my teacher ask us to put menu option in the structure b...
[3 replies] Last: system ("cls"); int choice; cout << "1]ADD\n" "2]DELETE\n" "3]EDIT\n"... (by Naughty Albatross)
Tic Tac Toe help
 
Hello! I am new to programming. A couple of days ago i came across some videos of thenewboston and i found them really interesting, so i really got into program...
[no replies]
by Kbott
how to removing an item in a vector when you dont know where it is.
 
So I want to remove an item in a vector. I dont know where in the vector it is I just want to remove it. I have looked around and vectors have a lot of nice fu...
[2 replies] Last: Erase-remove idiom https://en.wikipedia.org/wiki/Erase-remove_idiom ... (by JLBorges)
by nappa
game help.
 
So I made a game and everything works just like I want it, but when the game finishes it just stops at the ending credits.It doesnt even close the program. I wa...
[4 replies] Last: That is nicer thank you. I think I solved it. I rewrote some code and ... (by nappa)
by as3263
using nested loop that gives this outputs ?
 
Q5: : Build a program in C++ using nested loop that gives this outputs (I) * ** *** **** ***** (II) ***** **** *** ** *
[9 replies] Last: I said I will not do his homework in Urdu. I got reported. My life is... (by closed account 48T7M4Gy)
Open file with fopen function
 
Hi, i really want to know how i can open file using fopen function while i am not sure where the txt file located. I mean, if i make a simple program and then i...
[6 replies] Last: Thanks Duoas, that is really helpfull. (by EricKantana)
Basic calculator problem
 
I was wondering how to make my calculator say "The sum of a plus b is c" (a replaced with the first number added b replaced with the second number added, and c...
[2 replies] Last: Thank you! (by BigYork)
Launch external application
 
I'm looking for a way to launch an external application on linux. (other than system)/ I've been looking for some time but haven't been able to find what I'm lo...
[1 reply] : Look at fork and exec or threads. (by koothkeeper)
Question about array with char
 
Hey guys, just a simple question. char a = b; // Why does this not work?
[2 replies] Last: Thanks (by closed account ozTkSL3A)
what exactly is an interface?
 
I hear many people use the word interface especially in the book I'm reading but what is meant by an interface,an interface for a class etc could anybody try ex...
[1 reply] : http://lmgtfy.com/?q=http%3A%2F%2Fwww.tutorialspoint.com%2Fcplusplus%2... (by AbstractionAnon)
by as3263
program in C++ using nested loop that gives this output (star diamond)
 
Hi there This need to solve this question Build a program in C++ using nested loop that gives this output (star diamond) * * * * * * * * * ...
[7 replies] Last: http://lmgtfy.com/?q=nested+loops+c%2B%2B (by Mithix)
August 2016 Pages: 1... 1617181920... 22
  Archived months: [jul2016] [sep2016]

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