Beginners - March 2013 (Page 83)

if else / goto substitution
Hello, I am attempting at writing a leisurely program to help me with if / else what i am doing is prompting the user to type " Continue "/ or "continue" to ...
Mar 2, 2013 at 8:37pm
[no replies]
ending a while loop
For class I need to make a program with a while loop that terminates when the user pushes ctrl d and then displays the data entered. My problem is that when I...
Mar 2, 2013 at 7:47pm
[1 reply] : A couple issues. using namespace std; int main() { int maximu... (by Deftwun)
If Statements
Hi I have worked on a question where you input 3 positive number and the program gives you the middle of those so if i put in 1,2,3 it will give me 2. Here is t...
Mar 2, 2013 at 7:38pm
[3 replies] Last: great stuff! Thank you so much Stewbond! (by sakonpure6)
Dynamically create array named after for loop iterator
Hey so I want to create n arrays (based off user input) of size x (also off user input). The way I was thinking of doing it was having a for loop perform n iter...
Mar 2, 2013 at 7:23pm
[2 replies] Last: Wow that is very useful, thanks so much. (by Henry Lewis)
Please help me! I need to create a program with 2dimensional array
I need to write a program that will simulate moving player 'N' on the map. It must occupy the position on 2-dimensional vector from ' ' elements. If I press...
Mar 2, 2013 at 6:13pm
[1 reply] : With respect to you, I don't think that way of asking questions be goo... (by Kubani)
Dice Rolling Game with 3 Dices - Assingment
Hi, I know this is a C++ forum and I'm writing code in C, however since C and C++ have similarities I would like to know your insights on my program and how cou...
Mar 2, 2013 at 6:00pm
[no replies]
char *str, *str = 'X' error,
char* str = new char ; str = "Hello"; //*(str + 1) = 'a'; // crush if uncomment this line cout << *(str + 1) << e...
Mar 2, 2013 at 5:58pm
[2 replies] Last: That's a good explanation of the problem. Now the solution: 1. ch... (by Stewbond)
"&" what it means
I,m a beginner and i saw this on a youtube tutorial. I saw the tutorial to learn more about the void. But i ended the tutorial questioning myself why there is a...
Mar 2, 2013 at 5:26pm
[5 replies] Last: Thank you so much :D Now I have a better vision of references :) Here ... (by SkyDriver2500)
Want to Outsource programming projects through Programmersbyhour - any experiences?
I have been reading about outsourcing programming projects through Programmersbyhour or someone else. It seems like a good idea if you could get someone you tru...
Mar 2, 2013 at 5:26pm
[1 reply] : What do you mean by "outsourcing"? (by TheBeardedQuack)
How To Declare A Two Dimensional Array In A Function Prototype.
This is the start of my code for my two dimensional array program. We have to use a two dimensional array to make a gradebook. #include <iostream> #include ...
Mar 2, 2013 at 5:18pm
[2 replies] Last: Oh OK! Thank you! Sorry about the bad code format! (by Baumer8993)
Thread safe, cross platform std::localtime()
Hi everyone, I'm in need of a thread safe and cross platform solution for std::localtime() (a way to convert std::time_t into std::tm). The reason is that I'm ...
Mar 2, 2013 at 5:14pm
[5 replies] Last: Awesome JLBorges, I'll need to read up on those compiler specific prep... (by closed account o3hC5Di1)
Arrays
Actually i faced a problem in my assignment .. I don't understand the idea of it .. The Question :: ---> write a c++ programe to take a decimal number integ...
Mar 2, 2013 at 4:59pm
[6 replies] Last: Well a character only holds 8bit, and a string holds an array of chara... (by TheBeardedQuack)
by IBCFQ
Return statements (Help)
Hello, Before starting explaining what's my problem, thanks to the website's owner and thanks for his awesome book (Jumping into C++). So this is my problem: ...
Mar 2, 2013 at 4:29pm
[1 reply] : I can hardly understand the return statements, return 0; I can unders... (by Disch)
create file, edit file.
Hello! Just want to let you know that this is my first topic on this forum. I also want to apologize for my bad English. well, well. To my issue. Im a ...
Mar 2, 2013 at 4:03pm
[6 replies] Last: Ye now it works! :) Ty! Yeah some misstakes there (||) . But, if i d... (by shameless)
What's wrong with the following class?
class BadClass { private: int len; char* p; public: CBadClass(const char* str) : p(str), len(strlen(p)) {} // bad constructor CBadClass() {} } ...
Mar 2, 2013 at 3:59pm
[5 replies] Last: Hi there, In the case of text-strings, use std::string instead of cha... (by closed account o3hC5Di1)
Plzz Help
i was trying to write a program that prints out on screen the name of the first student with his average. Data are stored in (data.txt) file as below Bill 87...
Mar 2, 2013 at 1:46pm
[9 replies] Last: Thanks alot dude (by Tariqsal)
by dinho
Please Help!
Im having this problem with a simple username system: #include <iostream> #include <cstring> using namespace std; int main() { char name ; char usern...
Mar 2, 2013 at 1:42pm
[3 replies] Last: Thank you :) (by dinho)
How is this?
I've made a really simple, and I mean so painfully simple game, but it's what I can do right now, after some genius thinking I figured out how to do it. Enjoy! ...
Mar 2, 2013 at 12:37pm
[3 replies] Last: My only comment is that there are lots of variables, x, y, a and b. Ho... (by Chervil)
by skace
pow function problems
Hello, I am trying to code a program that uses Pythagoras's Theorem to calculate a missing side on a right angled triangle. When I try to use the pow() function...
Mar 2, 2013 at 12:25pm
[3 replies] Last: Thanks, it works :) MiiNiPaa thank you for explaining the functions :D (by skace)
by Majidh
C++, Vector
need to create a program that accepts an unknown number of integer values which then gets stored in a vector. When the user inputs “enough” then the program...
Mar 2, 2013 at 8:15am
[2 replies] Last: has few errors. when the user inputs "enough" the program has to outpu... (by Majidh)
March 2013 Pages: 1... 8182838485... 87
  Archived months: [feb2013] [apr2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.