General C++ Programming - February 2015 (Page 4)

Random Number Generator with array (1,2)
 
Hi I do not understand the question stated below. Does anyone know what does it mean so I can kick start with it? The program has two array of character. One...
[27 replies] Last: Like this? #include<iostream> #include<ctime> using namespace std; ... (by ahnrusty)
Loops
 
Hey guys, I'm learning to code myself from an old C++ text book. I came across this in the book where it asks to solve it. I have literally tried to code this b...
[1 reply] : well it's basically asking asking you to use all 3 kinds of loops(for,... (by koopey)
GLUT- loop to draw
 
Hi, I'm not so well equipped in english but i have a problem with the (good) old GLUT. I'm trying to make a small Lightcycle Clone to practice in c++ and Op...
[no replies]
Member function undefined in separate file
 
I have three files. //headerfile NumArrSpecs.h #ifndef NUMARR_H #define NUMARR_H class NumArr { private: double *arrptr; public: NumArr(int ...
[2 replies] Last: Actually I realized I forget to include the calling object so it shoul... (by MarkyMark)
by WAKS
Need help with making a tile map (SDL)
 
Hello! I'm making a 2D rpg game. Right now am I using one large background image that I move around the screen to make the scrolling effect. Since it's one l...
[3 replies] Last: Well, regarding the first question a look at the fstream library ifstr... (by Gamer2015)
Help with array program
 
I need to write a program that prompts the user for 10 grades and then find the average. I have that part but I need to average to not include -1. How can I tel...
[1 reply] : for (count = 1; count <= 10; count++) total = total + grade ; This ... (by TarikNeaj)
by Argus
Sorting Algorithms (Insertion sort and bubble sort)
 
I'm having a hard time figuring out these two algorithms, or at least parts of them. My main issue is that I'm unsure of how the inner loop in both algorithms w...
[2 replies] Last: Sorry for not answering sooner, but I was busy with something. Anyway,... (by Argus)
Array Implemetation
 
can you help me to write this code? I OutputOverlayEdges: a set of overlay edges, initially 0. I Nodes: a 2-dimensional array over V × T whose elements are ...
[no replies]
cplusplus cpp shell
 
Hello, I'm new to this website, just trying to use the online CPP Shell. It was working a few days ago. Now it just displays a blank page. Is there any setup...
[3 replies] Last: Heh well. Apple products am I right? (Just joking there is probably so... (by TarikNeaj)
write in a file
 
why isn't my computer showing anything in my file father?? #include "stdafx.h" #include "iostream" #include "fstream" #include "string" using namespace s...
[2 replies] Last: Bucky has excellent basic tutorials on most things. Video 64-68 is abo... (by TarikNeaj)
distance formula
 
I am trying to write a function that calculates the Euclidian distance between two points described by 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒 = √(𝑥1 − 𝑥2)2...
[2 replies] Last: sqrt((pow((x1-x2),2) + pow((y1-y2),2))) Little cleaner (by Nebaris)
Matrix multiplication function? Almost complete
 
Hi, so this is the assignment: Write a function that multiplies to matrices together and then displays the result. You can assume that both matrices are 5 x 5...
[1 reply] : You are on the right track, actually. :O) There are just a few things ... (by Duthomhas)
Help me understanding MSDN Functions please
 
hello , im c++ programmer but , im in troubles , whenever i open MSDN for help there is everything but , i have troubles how to work with the stuff i found ther...
[3 replies] Last: That page tells you that lpBuffer is a buffer that you supply, into ... (by MikeyBoy)
Time, random replacement?
 
Hi I would like to create a better version of a randomizer for a c++ program. Any recommendations? Basically I would like to have a function that can use time...
[2 replies] Last: I know the library is solid. I just need it to work this way for a pro... (by vivienneanthony)
Yes i know .. But How Can I start?
 
Hello .. i'm studying CS now i get very good marks in my college. i know everything about C++ why is that and when you use that ...etc but my problem is i ca...
[4 replies] Last: Really thank you guys <3 (by almoshaks)
Pointers and Functions
 
All of us started from being a rookie, and I'm one of those rookies who are new in this course. Maybe its time for you to share your expertise unto the newbies...
[1 reply] : Firstly, please could you put your code in code tags, to make it easie... (by MikeyBoy)
class(h) won't work
 
hers what I did so far #include <iostream> using namespace std; class Adress { protected: string name; int age; public: void setAge (int a) { ...
[6 replies] Last: Hi, the reason why I'm using inheritance in this class is because I'... (by TheIdeasMan)
Trouble with reading a series of strings into an array, then outputting them
 
Here is what i have so far, any help is greatly appreciated. it is giving me some weird output an was hoping someone could help. the requirement was to set the ...
[2 replies] Last: Sorry TarikNeaj should look better now. (by Conno0622)
Is operator overloading necessary to learn?
 
Will I really use it in my programming career? I've read in a lot of places that it is not necessary as it usually causes ambiguity. So why do professors teach ...
[2 replies] Last: Thanks for your input on this Disch, I understand more now. (by cppnoob25)
Passing a function value into a switch statement
 
Having an issue getting this to work properly. I had it working with the switch statement within the function, but later instructions said that it must be insid...
[2 replies] Last: Much appreciated. I had it set up with booleans before, but when I rea... (by Nebaris)
February 2015 Pages: 123456... 26
  Archived months: [jan2015] [mar2015]

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