Beginners (Page 4)

Paper, rock, scissor game
 
I just wrote a program for Paper, rock, scissor game. Is this correct? #include <iostream> us...
[8 replies] Last: To make the logic easier, convert the user's input to lower (or upper)... (by dhayden)
How do I initialize a string name for the description of an array?
 
It says that Infantry and Bazooka and everything is not declared in the scope, I made it global vari...
[1 reply] : Use quotes for literal text. "Infantry" etc. (also global variables... (by Chervil)
evaluating an expression of signed and unsigned types
 
hello everybody....could you explain me what happens exactly in this expression ? unsigned in...
[2 replies] Last: #include <iostream> #include <iomanip> int main() { unsigned int... (by JLBorges)
by Sh0Ti
Problem with deleting codes
 
So, I got this annoying problem - some sort of automatic deletion which for the more experienced peo...
[2 replies] Last: That solved my problem. Thank you, very much! (by Sh0Ti)
rand() - From A to B
 
Hello I'm already familiar with the Rand() function, rand () % 50; But how exactly would I ...
[4 replies] Last: @Lorence: That would cause a non-uniform distribution. 7 or 9 would be... (by NT3)
Super nooby question
 
I'm needing for it to read as "blank" "blank" "blank" by Blank" but it will only let me compile t...
[3 replies] Last: thanks, that's all I needed (by evanpowers)
array
 
which is more readable? int anArray ={1,2}; or int anArray ={1,2};
[5 replies] Last: okay thank you (by Lorence30)
Unsolvable error
 
hey everyone. so i've been struggling with this out of space error for the last 6 hours can any one...
[6 replies] Last: how do you issue the command to compiler I prefer GNU make (or bette... (by keskiverto)
What is this function called?
 
I'm doing a practice problem that asks what foo(dat, 7) returns, and it also asks what this function...
[3 replies] Last: Small correction to line 8: std::cout<<foo(dat,7); (by ShodanHo)
help with static members of a class
 
Hi, I am trying to make a simple program with a "House" class to learn how to use static members of ...
[3 replies] Last: Well initializing a variable outside of a class doesn't necessarily me... (by giblit)
by Gyzmo
Removing a carrage return from a string of data
 
I have a string of data that ends in a line feed (0x0A), I need to send it out on a serial port with...
[1 reply] : What's a "command option"? The preferred answer depends heavily on whe... (by Computergeek01)
new question about sort
 
Define a function void order(int & a, int & b, int & c, bool ascending) that places the value...
[4 replies] Last: i know, it is the sign... damn it (by hanfengbin)
issue with "this" pointer
 
Hello, I have created the following program to find the area of a circle using the this pointer for ...
[5 replies] Last: Oh... I see now. Sorry, I think I programmed a setArea function instea... (by heyyouyesyouiloveyou)
Display English words (CurlPP)
 
Hello I first asked this question here: http://www.cplusplus.com/forum/beginner/141021/ But thought...
[12 replies] Last: I've been as precise as I can without figuring out how to do it myself... (by Lowest0ne)
by h4ever
Undefined reference
 
main.c #include "types.h" #include "gaussian.h" #include "args.h" #include <stdbool.h> i...
[14 replies] Last: > ┬┐why would it add an underscore? Don't ask me; ask the people who ... (by JLBorges)
by moufou
problem with "while" and cin.get
 
Hi i'm currently doing a homework(I know that you will not give me the answer nor do i want it). Wha...
[2 replies] Last: thanks for the reply! yes exacly i was trying to compare what i enter ... (by moufou)
Losing elements when pushing to stack
 
The issue I am having is not all elements are pushing to my final list from my stacks. Hopefully th...
[6 replies] Last: Alright I'll check into the link, but I am little confused of how to i... (by kamikaze pgmr88)
question
 
Write a complete program that reads an integer k > 1 from the console and finds the first positive...
[15 replies] Last: You already have n and k as parameters, so they should not be masked. ... (by keskiverto)
Help with average function.
 
Im trying to write a code that computes the average of all positive numbers and returns that averag...
[2 replies] Last: Thank you so much! This really helped and I learned what I was doing w... (by painith)
by h4ever
Lambda - boost on Windows
 
Does anybody know why this code does not work on Windows? I see just black window and nothing is pri...
[1 reply] : The program is waiting for user input. If input you 4 then hit enter, ... (by helios)
Pages: 123456... 44
  Archived months: [jul2014]

Cannot post in this page. To post a new message, go to the first page.