Beginners - May 2014 (Page 9)

by CDavis
Calculating percent on a dice game
 
I have an assignment were I had to make a dice game. Well I finally go the program and now he wants percentages and more of the dice game played 20000 times. ...
[2 replies] Last: Ive replied to your private message CDavis (by Codermik)
File Read Not Completing, WHY?
 
I am having trouble using a struct to complete the reading of a file. I have used struct before in a similar fashion and had zero issues reading the file. This ...
[8 replies] Last: Ah, thanks for the clarification, I'd missed the number 7 on the first... (by Chervil)
Strange logical error
 
Okay, So I am writing a program that requires lots of coding. After completing a fraction of it, I am stuck for a stupid logical error. While entering the pa...
[2 replies] Last: Thank you so much. (by abeginner23235616)
by ranju
how to make .exe file by using cpp code?
 
hi friends,i dont knw that how to make an .exe file extention by using cpp.my IDE is block::code.........i wish an advac thanks for all frds who helped me to so...
[7 replies] Last: and what do you mean by 'a windows application'? If you can compile an... (by Yay295)
by ranju
why this complication???
 
hey,i am new in c++..i little confused about why we make things complicated....eg: #include<iostream> using name space std; int main() { cout<<"y this str...
[7 replies] Last: @computergeek01................thankx u too awesome bro.. (by ranju)
2-D Array
 
Write your question here. See output below. 1) Why doesn't p_p_rows point to &p_rows? 2) Why are the addresses of p_p_rows and p_p_rows the same? // ...
[2 replies] Last: Cody0023, Thank you very much. In answering 1., you cleared up a mis... (by phztfte1)
Array box not moving to coordination?
 
Created an array box of characters and added coordination from Windows.h. However only the top side of the box moves to the right while the rest just goes down ...
[3 replies] Last: Your welcome :) (by Codermik)
by CDavis
Dice Game Program
 
I have been writing this code for a little while now and have most if it working correctly except for one. I have add the actual assignment below but what i'm ...
[6 replies] Last: Normally Id always recommend using Switch where there's tons of IF st... (by Codermik)
Don't understand this
 
This paragraph is from the tutorial Cplusplus Is real confusing.... Notice how in main, the variable x (without any name qualifier) refers to first::x, wherea...
[2 replies] Last: x and y are defined and initialized in their namespaces, so you can ty... (by GaiusBaltar)
Confuse
 
I'm really confused about the use of namespaces myNamespace and using namespace std. Both of which appear in the tutorial together in one program. Are these bot...
[1 reply] : They are 2 different things see using directive and using declaration.... (by benbalach)
Fortune Tester App
 
I'm new to c++ programming. So I need help with My code it is just a simple concept which gives you 10 $ if you rolled a dice (greater than 4).. so when I compi...
[2 replies] Last: So your main would look something like this. Note I changed the whil... (by Codermik)
Please somebody explain it to me i really want to learn it
 
Write your question here. #include<iostream.h> #include<conio.h> void single(int); void ten2ninety(int); void elev2nine(int); void dig2word(int); void...
[10 replies] Last: oh , Thank you soooo much......... Softrix! (by ak007htp)
rand() gives the same number through out my program
 
I have a Task class which looks like this #include <string> #include <time.h> #include <stdlib.h> using namespace std; class Task { private: str...
[2 replies] Last: Thank you very much, my program now works perfectly. Did a little rese... (by Bubiche)
what am i doing wrong?
 
so I am trying to implement the following code void PressKey(WORD key, int x) { int y = 0; while(y <= x) { SetForegroundWindow(eveWindow); ...
[14 replies] Last: Looks pretty strange. i'd like to see the whole code. (by Sparkling)
by csharp
Maximum function
 
I am trying to write a function its job to input values until non-number reached it returns the largest value, this function has no arguments double get...
[10 replies] Last: double getMaximum() { double number, max = 0,count = 0; cout << ... (by csharp)
by salsa
variables
 
Well, I dont know what variables do. I get "variables" but I dont know what they do for a program help...
[3 replies] Last: For a basic thing on what variables are... A variable stores a bit of... (by TwilightSpectre)
by nvrmnd
candidate template ignored: couldn't infer template argument
 
I am writing a getline()-like function that can take a predicate, but clang throws an error, i have little or no idea why it says so template <typename ...
[1 reply] : http://www.cplusplus.com/reference/cctype/isalpha/ http://www.cplusplu... (by ne555)
Stacks and queues for C++
 
Hello my friends. I coded a doubly linked list here and i have implemented stacks and queues.....or so i think. Im posting my code to see if I really did implem...
[5 replies] Last: Look at my previous post,a stack (see std::stack ) and a queue (s... (by a k n)
Can someone please help
 
Ok I am in programming 1 in school and I am going fine, we are only up to loops. I have a intro to computer systems class that is happening at the same time wit...
[1 reply] : Have you gotten the program to run and do the initial multiplication? ... (by admkrk)
by swikir
no match for 'operator<<' in 'std::cout << (&it)->_ (1,2)
 
what is wrong with my code . it is the part where I use the classes #include <iostream> #include <ostream> #include <string> #include <fstream> #inclu...
[26 replies] Last: Thanks again. You helped me very much. I am so happy to be a member o... (by swikir)
May 2014 Pages: 1... 7891011... 55
  Archived months: [apr2014] [jun2014]

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