Beginners - November 2011 (Page 21)

Creating a grid layout for battleship game and able to mark the spot that is missed or hit.
 
Say, I have to create a layout in "grids" like: A B C D E 1 2 3 4 5 How am i able to achieve this. And next how is it possible to do something ...
[7 replies] Last: I've sent u an email whitenite1.. cheers (by Tampopo)
problem with for loop
 
int main(void) { int x=0; for(;x;) { printf("hello"); } while(!kbhit()); return 0; } output nothing int main(void) { ...
[14 replies] Last: I'm not entirely sure I understand what you are asking, however: It i... (by closed account 1vRz3TCk)
Function not returning to main
 
I have a function which takes input either through STDIN or from input file.It works well for the former case but in the latter case it is not returning to the ...
[3 replies] Last: When you say it's not returning you mean return a value (as the above ... (by eypros)
Class Object Help
 
I'm trying to write this program and I'm having a hard time calling the add points function and do what the comments tell me I need to do. All the code in main ...
[1 reply] : The comments are not your I presume? class point { public: // data m... (by eypros)
"Function" Problem..
 
Can somebody solve/write this code for me??? I will need the answer to this for a reference for the other 9 problems... (a) Write a function named time () th...
[2 replies] Last: #include <iostream> using namespace std; void time(int, int*, in... (by abiyek)
Help with homework (arrays + structures)
 
I am being asked to make a program that takes student profiles from a user, calculate the GPAs of the students, sort their names by their last names... Anyways...
[4 replies] Last: Wow, it looks like you are doing alot of work when you might not have ... (by IceThatJaw)
Prime Numbers
 
Hi guys, I developed a program that tells you if the number you introduced by keyboard is prime. The code runs nice but the devil (my teacher) told me that was ...
[6 replies] Last: Your teachers comment about efficiency is, as others have said, is ver... (by andywestken)
Making a website similar to ModelMayhem
 
What do I need to build a website similar to ModelMayhem.com? Will I need to wait 2-3 years till I'm done with my degree before I'll have the necessary skills r...
[2 replies] Last: Reason I'm posting here is because they teach C++ in my Comp Sci progr... (by Jamaman)
Decimal Points/Char/Double
 
Hi Guys. I am taking a C++ class and am having trouble with a couple aspects of the current program. This program take 10 grades and averages them together a...
[2 replies] Last: There is more above that is putting numbers into an array and adding t... (by dannell)
by Sathed
Why am I getting zeros back from a class using inheritance
 
Here's my code: Header File #include <iostream> #include <string> using namespace std; class Dimensions { private: int height; int width; public...
[2 replies] Last: That makes perfect sense! Thanks for your help! (by Sathed)
by jfk010
error: no matching function for call to
 
Noob here..trying to learn concepts of CPP... Could you please help me to figure this out. here's the code #include <iostream> #include <iomanip> using...
[2 replies] Last: thank you soo much. I figured it out.. anyways, do u know how to use "... (by jfk010)
by RapidX
Bitwise operator understanding
 
Hello everyone, In this C++ book I'm looking at, I'm currently at the section that deals with bitwise operators. The book has me a little confused with the f...
[1 reply] : To understand ch & 223 , first convert 223 into 8-bit (since char i... (by aruawons)
by Skynet
Secant Method
 
I'm trying to make a program that uses the secant method but I'm not sure how to start it off. I'm not asking for you guys to completely do it for me, please do...
[3 replies] Last: Yes it can be any equation that the user inputs but to keep it easy, s... (by Skynet)
by Vladox
Include several files
 
I have a lot of classes for a really big program, but so far i've put then into a single header and implementation. I've tried splitting it up so each class ha...
[1 reply] : I wrote an article on this very subject: http://www.cplusplus.com/f... (by Disch)
by velcro
Simple Parallel String Arrays?
 
Below is my homework program. We’re supposed to output a list of books and authors, using two parallel string arrays. I’m completely confused about usin...
[6 replies] Last: Thanks for pointing me in the right direction. I got everything fixed ... (by velcro)
I need help or clues on how to build an array in C++?
 
This program was design to simulate an ATM machine and so far it works. I realize i need other aspects in this program to be more life like for EX. I need to ...
[no replies]
Need help with C++
 
Made this C++ program and it says this when i try to build it - "fatal error LNK1120: 1 unresolved externals", i'm trying to find the problem but can't seem to ...
[7 replies] Last: also, the code for the £ sign is wrong. Do you know what it is? (by jjagger5)
by El Yas
Need help in C++ 2D Arrays
 
Hello its my first time using arrays and im stuck in this How can i change the values inside a 2D array and print it out for example i want to replace the 1s wi...
[1 reply] : You have an array of integers. There is no integer with the value " " ... (by Moschops)
by Nuc
Error after adding while do loop and isalpha
 
Here's the program: string heroname; std::cout << "Type in the name of the Hero = "; getline(cin, heroname); string monster; if (randn == 0) {...
[10 replies] Last: I know what isalpha does, I just forgot to change int to char, thanks. (by Nuc)
Function and Parameter Declarations
 
I am wondering if there is a good website to reference for C++ for beginners..I am completely new to this and have been having a veryy difficult time understand...
[1 reply] : http://cplusplus.com/doc/tutorial/ (by moorecm)
November 2011 Pages: 1... 1920212223... 65
  Archived months: [oct2011] [dec2011]

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