Beginners - August 2013 (Page 24)

stuck on arrays...
 
I have written a program for entering 2 numbers, the program (tabs may not be lined up properly due to copy over ) will time the calculation and printout the r...
[10 replies] Last: I need to change the do while loops to if/ else statements , because i... (by afleury1)
pointers and addresses??
 
I am writing a program to set a pointer double *d, to point to 3 variables (double d1,d2 d3). The values of the 3 variables are d1 = 7.8, d2 = 10.0 and d3 = .0...
[12 replies] Last: @Grey Wolf.. yeah. sorry that was a misconception i had. Thanks!! :D... (by Andy Richard)
MayDay-Man Overboard
 
Alrite, thanks for coming to my rescue. My problem, A const integer is declared and initialised to 250.So when the user enters 200,if the value the user entere...
[3 replies] Last: const int total_cost = 450; std::cout << "Enter money: "; int amoun... (by vlad from moscow)
alloc.h
 
Has anyone used CodeBlocks (MingW plugins) here? I can't seem to use the alloc.h library. When I try to compile my code, the compiler can't seem to find the all...
[4 replies] Last: That looks like C, in which case it's ok. You just need to use a C co... (by kbw)
SOS-Arrays and Input
 
alrite, so I have to ask the user for a choice, once the choice is selected, say 1 which corresponds to cheese,I have to use the arrays to cross check the cost ...
[11 replies] Last: THANK YOU SO MUCH MAY YOU LIFE BE BLESSED ABUNDANTLY.......Modu Out..... (by willynilly)
C++ BEGINNER EXERCISE HELP (pancakes)
 
OK so here is my attempted code as you can see i am trying to somehow implement a way that i can join up the person who ate the most pancakes to their value of ...
[2 replies] Last: thanks fella, (by cookie 86)
save file from resource to disk
 
I've been trying to do this program for like 2 hours already, googling and stuff, however I can't finish it because Im having troubles with saving file from res...
[3 replies] Last: The first 14 bytes? If so, you were adding back the BITMAPFILEHEADER (... (by andywestken)
STL iterators
 
Hi guys, #include <iostream> #include <list> #include <algorithm> using namespace std; //Assuming there is a class named Something which was ...
[4 replies] Last: @IrarI Thanks, but it doesn't work this way: if(!iter) //..... (by vlad from moscow)
Palindrome's Number
 
Hi, I was wondering what's wrong with my code, it seems logically correct if you follow through them.. My code is supposed to find palindromic numbers which are...
[15 replies] Last: Your function will always return false if a number does not end with 0... (by vlad from moscow)
what calling this function
 
i have hard time to understand how this particular function work. in the int main function we assign y and x with two objects. but how the function know which o...
[3 replies] Last: Expression a + b; is substituted by the compiler for a.operator +( ... (by vlad from moscow)
How do i put programming partheses?
 
How do i put programming partheses? I mean i am writing a programe that wrirtes PHP code in a file using fstream.However im having a hard time doing that.Like ...
[5 replies] Last: Thanks Daleth that summary really helped.Also the link that JLBorges g... (by Nitrosolid)
Completely new to C++...
 
So I have no knowledge of C or C++ at all, can you recommend any good books for complete beginners like me to understand (the basics of) C++? Thanks in advan...
[3 replies] Last: Alright, thank you both, I'll take a look. (by Woodchopper)
help with computing average with arrays and functions
 
I'm having trouble writing code. The purpose of the lab is to gain experience with passing arrays in the parameter list. The user is asked to enter the n scores...
[3 replies] Last: please any help would be appreciated..... (by rwswfan)
Looping help
 
Hi i am writing a program for an assignment and i cant get the looping to work. i dont want to post the code in case some tries to copy it. but i am willing to ...
[3 replies] Last: i already figured it out. i didnt need the second loop :) thanks for ... (by eizan1892)
How would I read a file into an multidimensional array or three seperate arrays based on a sequence of delimiters?
 
New to c++ and programming, and I am having trouble figuring this out. Pseudo idea; Assuming I can define the delimiters ',' ',' '\n' then read...
[1 reply] : Without redefining delimiters, you would have to use getline() to read... (by Cubbi)
Need Help with Text Based Game
 
Write your question here. // game test number 1 #include <iostream> #include <ctime> #include <cstdlib> #include <stdio.h> #include <string.h> usi...
[2 replies] Last: So what else you expected it to do , if you fight you either win or lo... (by a k n)
by Codeez
Can't inline a 1 line void function!
 
I have this simple function in a file: generic.cpp #include <iostream> #include <string> inline void clearScreen() { std::cout << std::string( 30, '\n'...
[2 replies] Last: Ok, thanks for clearing that up, that worked. Cheers! (by Codeez)
Variable initialization
 
I am reading a beginners C++ book where they show that under C++11, a variable my be defined and initialized as follows: int age{54}; When I try this in a...
[2 replies] Last: Computerquip: Thanks for responding. The book is C++ Primer Plus 6th... (by Truebluefliplover)
bool goOn=true ?
 
Hello, I've written a program where I ask for a name which I've given a list of name for and then I return their birthdate. I then ask the user if they would li...
[1 reply] : #include <iostream> #include <string> using namespace std; int mai... (by MarketAnarchist)
Hi could someone go through my code, its not working
 
Hi there im basically trying to create a 3 x 3 grid guessing game where the user has to guess what the number is behind the '?' between 1-9. They have got a max...
[no replies]
August 2013 Pages: 1... 2223242526... 51
  Archived months: [jul2013] [sep2013]

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