Beginners - March 2015 (Page 28)

SFML Score Set-Up
 
I want to set up a score, at the minute it is like a 10 digit random number the time works fine the code content is all thats needed below, how would I set it t...
[3 replies] Last: good to hear :) please mark this question as answered (scroll to top ... (by Gamer2015)
Array Pointer
 
plis somebody help me, i have this code, but i dont know what the next code to find a word from the array A B C D E... plis help meeee #include <iostream> u...
[no replies]
unary minus operator applied to unsigned type, result still unsigned
 
Hi, i want to create some poker software and first i need hand equity calculation and i found that best could be open source project Pokerstove. So i downloaded...
[10 replies] Last: I included #define _SCL_SECURE_NO_WARNINGS #pragma warning(disable:4... (by etrusks)
Displaying multiple of the same sprite in SFML within a certain area o the
 
Right I have a small problem, I want to spawn 60 enemies which i have an array for, in memory and move them along the X axis like the zombies on the last stand ...
[9 replies] Last: BUMP! (by DriftKing13)
Can't fix my errors.
 
Hi, I have this code where I'm basically just using a struct to take in information. I'm close to being done but i can't figure out my errors. Keeps saying I n...
[14 replies] Last: Ah okay, fair enough (by Jimmyavr)
Help doing something useful
 
So I've been taking C++ and reading books on it while coding a ton of completely useless programs at the side. I can't seem to find anything on actually creatin...
[7 replies] Last: This is actually a far better explanation than any I've ever come acro... (by Chibi310)
by JB5056
Please Please Help
 
I have this lab that's got me stumped. The assignment reads Write programs for the following and test to make sure they work. Please follow the book’s guide...
[9 replies] Last: to use this 'indata' parameter Like any other variable. void StuRead... (by MiiNiPaa)
game of life
 
so i need to write a game of life code i have most of it done but it needs to start with a random pattern, i also need to calculate fill percentage and set it u...
[2 replies] Last: What exactly is your problem ? i have no idea how to start the code ... (by godric18)
Question
 
what do i do with line 57? example: length of array: 4 4 numbers for the array: 3 10 2 8 type the multiplier: 10 Type number of elements of the array to be mult...
[no replies]
Returning static reference
 
Why is the following code not working as expected?. Im having some code in the anaonomouy block of a C++ implmentation file. namespace { bool & hasAccess() ...
[1 reply] : Works fine for me: http://coliru.stacked-crooked.com/a/129cf78636d489d... (by TwilightSpectre)
Display scores in rows
 
I have to write a program that read the DataFile.txt and display scores in rows of three scores. But, I do not know how to display in rows of three. //This...
[3 replies] Last: My pleasure, XyzAbc (by whitenite1)
Need to refresh the display smoothly
 
I'm trying to find some function within the <windows.h> library that refreshes the display smoothly. I have a little robot going around a room and i want it to ...
[4 replies] Last: yeah, but it isn't smooth when it runs in a while loop. The console s... (by skimmer001)
Help with Link List
 
Hello posting here again and I need help. Here are the instructions if curious, what I need help with is reading from a file and assigning to the right place...
[6 replies] Last: while(!Tvfile.eof()) is better than while(Tvfile) #include <iostr... (by anup30)
by tc5667
Replacing all letters in a string with an asterisk
 
Hi all...I am still very new to functions and I am trying to take in a string of one or multiple words, convert all the letters in the string to asterisks, then...
[4 replies] Last: Thank you very much for the responses! Hopefully one day when I unders... (by tc5667)
series
 
What is the prblm with this code?? #include<iostream> #include <cmath> using namespace std; int main(){ int i,n; float fact,sum1,sum2,sum; sum1=0; sum2=0; ...
[no replies]
Help with using two while loops
 
My program won't even run without debugging. What am I doing wrong here? Write a program that uses two while loops. The outer loop asks the user if they want...
[3 replies] Last: Since className, totalGrade, avgGrade and count all need to reset for ... (by dhayden)
Vector subscript out of range (merge sort)
 
Hi all, I am trying to make the merge sort algorithm using vectors. Everything compiles fine but when I run the program, I get the "vector subscript out of r...
[3 replies] Last: In real life counting starts from 1. In computers, it starts from 0. ... (by shadowCODE)
Having trouble writting my program
 
Can you write an if/ else statement inside a switch statement? And if so can you show me how it should be written?
[2 replies] Last: Thanks that really helped. (by Cplacencia)
Can't seem to get this program to work
 
Hi, I'm new to C++. I'm having an issue with an assignment given to me. The purpose of this program is to calculate the sum of numbers from 1 to the users inpu...
[1 reply] : I find your if statement to be extremely confusing I've cleaned it up ... (by Joshhua5)
March 2015 Pages: 1... 2627282930... 51
  Archived months: [feb2015] [apr2015]

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