Beginners - January 2014 (Page 14)

by engr
the member functionproblem
 
I have written this program #include<iostream> #include<string> using namespace std; class person{ string m; public: void getdata(void); ...
[4 replies] Last: int main() { person b; b.getdata(); b.dispaly(); //this... (by JewelCpp)
by engr
Help in factorial
 
Write your question here. // factorial calculator #include <iostream> using namespace std; long factorial (long a) { if (a > 1) return (a * f...
[7 replies] Last: You have ignored Jaybob66 's response, which is correct. You aren't u... (by Duthomhas)
Visual Studio 2013 Question
 
I finally got around to downloading, installing, and playing with Visual Studio 2013, specifically, the Express Edition for Windows Desktop (for C++). Every ...
[4 replies] Last: Ah, yeah, I usually right click in the project tree and add items from... (by LB)
Using a for loop to input and output array values Also calculate the average
 
I have this code that im stuck on what i need to do is Extend the code such that when it starts the user is asked to input values to specify each of the three ...
[5 replies] Last: im not sure what the three ranges are ive just started on learning pro... (by bubblegum1001)
by Loktd
error: use of parameter 'max' outside function body
 
I get an error saying: use of parameter 'max' outside function body. How do I fix this? or change it? #include <iostream> #include <fstream> #include <i...
[8 replies] Last: Still easy, just put it all togeather: #include <fstream> #include ... (by Stewbond)
by pukol
SDL confusion?
 
Yeah.. What is a CODE::BLOCK? is it an IDE? And is SDL library available on Orwell dev-c++ or do i need to download it? A lot of tutorials are showing how...
[1 reply] : Code::Blocks is an IDE. You have to download SDL depending on your COM... (by Stormboy)
by Leon23
What am I doing wrong?
 
Hey guys! I was trying to make this program where the user inputs the width for an hour-glass diagram. Plus he can also input the symbol with which to make the ...
[3 replies] Last: No problem. Don't forget to hit the solve button so those know that th... (by closed account N36fSL3A)
C vs C++ vs C# vs Java? Which One is Better?
 
I'm a bit new to programming but I am good in HTML and Q BASIC programming. I would like to learn a programming language which has good opportunities in future ...
[4 replies] Last: I think it's worth mentioning that Java was written in C/C++, and that... (by IWishIKnew)
simple word guess game
 
I'm a newbie trying to create a word guess game and I'm having trouble with the simplest part. I'm trying to create a for loop that checks the string wordToGues...
[4 replies] Last: if you wan't to know how many times a letter appears in a string then ... (by Yanson)
by engr
Execution failure
 
when i run some program it shows failed to execute. but after a while it works well... why does it show?
[8 replies] Last: my C++ is 5.5.3 It is set 32 bit TDM GCC 32bit Release (by engr)
help on an excersise
 
Hello guys!Nice to meet you! I doing an excersise at c++ and im looking for a little help. i Have this table that is for a pacman game,and i want to add # at ...
[1 reply] : look at this ####### # # # # ####### you put # in the who... (by rich1)
Alternative to Visual C++ for Ubuntu Linux?
 
I just changed my OS from Windows to Ubuntu Linux and I used to program in Visual C++ but it isn't available of Ubuntu. Is there any alternative to Visual C++? ...
[10 replies] Last: > But it doesn't have visual programming like Visual C++. Learn to us... (by JLBorges)
Understanding the difference when passing values by reference in C++ vs in C
 
Hi, I was practicing values by reference in C++, which I now understand but I came across something that is bothering me. I thout that since C++ is a subset ...
[4 replies] Last: Thanks you all for your help! (by fstigre)
vector of objects, deleting
 
Hi there! i am messing around with vector and classes, and with this program i wrote, i don't understand what is wrong. You can make a new object by pressing 1....
[2 replies] Last: Oh right! I understand what went wrong now! Thanks :) (by j0nte33)
Need help with c++ game
 
Hello Okey I need help with how to make it check if y-1 is a solid block, if not it do y--; But I don't know how to do that. For example: y=20; y-1 = not s...
[1 reply] : What do you mean by "solid block"? (by Peter87)
Decades problem
 
Can't figure out how to write to tell someone who is a certain age what their next decade would be in a certain amount of years. ie. say is someone was 23, how ...
[3 replies] Last: "Right now you are in decade X of you life." You might need to th... (by closed account z05DSL3A)
How to take input from users?
 
I am making a circumference finder program by multiplying the diameter of circle with PI. But I want to take the input of diameter from the user. Can you figure...
[3 replies] Last: Oh yes it works. Thanks! Cheers >> (by StarSonic7)
Compile problem
 
Could someone help me, where is a problem in this code? #include<string> #include<iostream> #include<fstream> using namespace std; struct osoba { ...
[2 replies] Last: On my inbuilt ubuntu linux compiler - 1.cpp: In function ‘int main... (by StarSonic7)
reading garbage using ifstream
 
Hi there..I have problem reading data from file...data is written correctly but after reading there is no change in variable where data is saved after reading.....
[2 replies] Last: Got it..thanks alot :) (by nomijigr)
by Jbat04
Uploading a file issue
 
Hey all for some reason the file is always bad. its a plain text file. Any help would be great #include <iostream> #include <fstream> #include <ctime> ...
[14 replies] Last: So you didn't figured out what the problem is. (by modoran)
January 2014 Pages: 1... 1213141516... 44
  Archived months: [dec2013] [feb2014]

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