Beginners - November 2015 (Page 8)

array help
 
#include <iostream> using namespace std; int main (){ double scores = {10, 22, 13, 99, 4, 5}; double total; for (int i = 0; i < 6; i++){ co...
[2 replies] Last: Thanks man! :D (by espionage1)
Could someone help/explain me this.
 
Write a program to record 3 grades of 5 students with the following information : Roll No, Name, Exam1,Exam2,Exam3,Average,Approved(YES/NO). The progra...
[no replies]
help with shuffling a deck
 
Hi, im new to code and have a hard time learning it. im trying to shuffle a deck a cards, but when it shuffles it, i get a negative number , one of functions is...
[2 replies] Last: oh yeah i forgot about that. thanks a lot (by Juan123)
can anybody help me to find the problem
 
plss help mee #include<iostream.h> #include<conio.h> int main() {int numri; numri=1; cout<<”ky program afishon \n”; while (numri<=12) { cout<<nu...
[3 replies] Last: You're welcomeeeeeeeessssssssssssssssssssssss edit: my preciousssssss... (by mutexe)
by cspace
reinterpret_cast from hex literal to pointer
 
I have a hex literal to use as lpBaseAddress for the function below: bool WINAPI WriteProcessMemory( HANDLE hProcess, ...
[2 replies] Last: Happy Thanksgiving :) Thank you for clarifying the round-trip issue ... (by cspace)
Opening Files
 
Hey guys, Im not sure why this isnt working. Hoping someone can tell me what is wrong. Any time I try and run this it crashes. string onerecord ; string...
[1 reply] : I don't think there's enough information to say what's wrong. That cod... (by Chervil)
by Flyx
Functionception
 
Hey guys, I'm currently making a Hangman program. And its going fairly well however... #include <iostream> #include <cstdlib> #include <ctime> #inclu...
[7 replies] Last: However, it looks like I can just move line 34 to my globals section ... (by MikeyBoy)
connecting array to match the number even if it is sorted
 
How do we connect the Id array with the number so that when you sort it the id is with the number Ex: 1. 5 2. 4 3. 6 sorted = 2. 4 ...
[12 replies] Last: There was no insult there. I didn't call you anything unpleasant or n... (by MikeyBoy)
Need help with generating random number of people
 
I need help with generating a random number of pirates that will be voting on 10 laws. I have used rand and srand to generate random numbers that each pirate wi...
[no replies]
Help with using Array
 
can anyone help explain or show me how to use an array properly in Microsoft visual as i have no idea where i am going with it at the moment or how to properly ...
[1 reply] : As any tutorial or textbook will tell you, array indices in C++ start ... (by MikeyBoy)
Can someone read me this code? Thanks
 
This is a Program identifying an Armstrong number. I've search this from google, And have it right. But my problem is, *I can't understand why the initializa...
[4 replies] Last: power is a maths function. 2 to the power of 3 is 2*2*2. so power(2,3... (by Jaybob66)
Create a turn-based strategy
 
A “round” consists of the player striking the monster and the monster striking the player. During the player’s turn, the user can choose one of five acti...
[1 reply] : Imagine the game is to be enacted by you and a friend, what would the ... (by Jaybob66)
Linker error
 
I have written a program that is separated as three different files. One file is the main, one with the class definition and one with all of the functions. The ...
[2 replies] Last: http://www.cplusplus.com/forum/general/113904/ http://www.cplusplus.c... (by ne555)
by rayvie
I need to align the Item# Itemname Price and Etc.
 
So I first tried it with \t and it align very well, but when I typed a much longer itemname it all got jumbled up. Can someone tell me what to do? cout<<"\...
[1 reply] : Since you failed to use meaningful variable names or even show us samp... (by jlb)
Random woes.
 
Hey guys! Its my first post (yay!). So I'm trying to create a simple text based game. In this game, you have a squad of policemen and you battle the mafia (meh)...
[5 replies] Last: So now please tell me that is srand (time (0)) and srand (time (NULL)... (by Peter87)
Implementing a Shell
 
Project 1: Implementing a Shell 1 Overview In this individual project you will have to design and implement a simple shell command interpret...
[1 reply] : This may help.http://www.cplusplus.com/forum/beginner/1/ (by chicofeo)
Class exercise
 
Hi everyone, please bear in mind that I am new to this... I have the following files and they will not compile, can anyone help? Its an attempt to create a si...
[7 replies] Last: Thanks for all of your help guys I finally got there in the end!! I am... (by jamesfarrow)
Need help creating a grid
 
Hi. I am barely new to C++. Right now I am trying to make a 9X9 grid that fills @ # $ % randomly. I wrote down some codes, but I am constantly getting err...
[3 replies] Last: This line: grid = ((rand() % 4) == 0) ? '@': '#'; '$'; '%'; ..... (by Chervil)
Mine Sweeper Assignment - saving random grid
 
Here is the assignment: http://acc6.its.brooklyn.cuny.edu/~cisc3110my2/project/minesweeper.html I've made the code so that a random grid (made from 2D vector) ...
[5 replies] Last: I think I'll be coming back to this thread for more questions. But tha... (by Arslan7041)
need help
 
requires pseudo code for a program to find product of first 15 odd numbers
[4 replies] Last: nothing So what do you expect from us? (by closed account 48T7M4Gy)
November 2015 Pages: 1... 678910... 53
  Archived months: [oct2015] [dec2015]

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