Beginners - August 2012 (Page 22)

by fbvdh
getting error on compiling the following code
 
Q1: (a)I am using the following code and try to compile using devC++ but can't succeeded. what should i do. Code no:1 #include <conio.h> #include <iostream> u...
[8 replies] Last: thank you ^^ (by ThangDo)
Text Game
 
Made a simple text game but I cannot or dont even know where to begin on adding walls. Do I have to point out each location where the wall is going to be?? T...
[3 replies] Last: I think you have your x and y mixed up (i.e. grid ), but really it's ... (by dem7w2)
call a function without the required arguments? is it possible?
 
Hi, I came across an example in a project that I am working on like this this is the definition of the function //----------------------------------...
[7 replies] Last: int(__closure *Process )(char *, char *, int ) is a declaration of a ... (by vlad from moscow)
Simple Stringstream
 
Quick question: // example about structures #include <iostream> #include <string> #include <sstream> using namespace std; struct movies_t { string...
[3 replies] Last: Okay got it. Thanks. ~Solved~ (by Zincott)
by nand
how to copy function contents to another
 
Hello, I'm wondering if it's possible to use one function's contents to another. This would be handy when overwriting a function in a derived class and only ...
[4 replies] Last: Thanks guestgulkan, I think your example is the best way to do it. (mo... (by nand)
Really need help with this .. please help!
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { ifstream inputFile; inputFile.open ("proud_mary.tx...
[5 replies] Last: This would also allow you to check if the strings in fact matched. It... (by Veltas)
Shouldn't this calculate all prime numbers to 100?
 
I've been learning c++ for about a month and I'm still stuck on the basics. I know I could just search up how to calculate prime numbers on google or on this fo...
[14 replies] Last: I'd say the use of APIs and libraries is something reasonably basic. ... (by Veltas)
Converting Binary using strings
 
I've written a program that asks the user to input a number using strings, the program then will convert that number to decimal, however Im having a problem wit...
[4 replies] Last: oh yeah sorry.I didn't looked up if condition (by Akshit)
can someome please guide me thanks
 
ok here is the program i need to write...Write a program that takes in 50 values and prints out the highest, the lowest, the average and then all 50 input valu...
[2 replies] Last: okay first of all u need to add total with your array's value inside t... (by Sendy Hipo)
by ToniAz
int * function(int)
 
Hello everyone! I've working with vectors for ever but lately I've gone back to working with dynamic arrays. I remember I used to do some tricks (which obvious...
[4 replies] Last: Ahh, I was just about to ask how do I go about freeing it, one problem... (by ToniAz)
A note about headers c vs c++
 
I know a lot of beginners can become overwhelmed with the vast amount of information out there about how to code C++. One thing that always gets me burning is ...
[2 replies] Last: When you have to use <windows.h>, you have to use <windows.h>. (by georgep)
Need Help!!!! to solve Tic Tac Toe Problem
 
Hi,guys I tried to make Tic Tac Toe in a much simpler way that could easily be understand but I got failed and I need your help. #include<iostream.h> #in...
[3 replies] Last: well thanks guys! Thanks for telling me my mistakes I will work on the... (by deep707)
Recalling the program
 
I am trying to make it so after the program is finished with the process that the user did. For the computer to reset and go back to the beginning of the progra...
[2 replies] Last: Thanks man! It worked. (by Master Blue Ninja)
Anyway to increase the size of the program
 
I know there are ways to manipulate the size of the running program. i know there are very complicated way. But what I wish to do is making the program extend f...
[7 replies] Last: If all you want to do is maximize the window, a simple way is: ShowW... (by Alrededor)
Splitting input to substrings.
 
I have been having a problem my code recently. i wish to be able to take an input from the user as a string then split it into substrings deliminated by whitesp...
[2 replies] Last: THANK YOU SO MUCH! You have no idea how long this has taken me to figu... (by geekman7473)
problrm
 
#include <iostream> using namespace std; struct list { int data; list *next; }; list *node, *tail = NULL, *head = NULL; void add2list(); void extrem(...
[6 replies] Last: void add2list() { int input; cout << "Adding values to list :... (by Bassam300)
Rock Paper Scissors
 
#include <iostream> #include <string> using namespace std; enum weapon {rock = 0, paper = 1,scissor = 2}; class Player { public: void Set(int ...
[9 replies] Last: I have successfully completed this game. I would like to thank you for... (by Amil Patel)
Decimal to Binary using strings
 
Hi, im trying to get my program to convert from decimal to binary (in the second part) but when I compile it I keep getting 0, I know I have to divide it by 2 u...
[2 replies] Last: well r and q are gonna be the remainder and quoteint from dividing the... (by ma21212)
member functions in class
 
#include<iostream.h> #include<conio.h> #include<math.h> class triangle { private: float b,h,area,perimeter; pub...
[4 replies] Last: I didn't know dat (by Aceix)
by Aceix
Explanation needed
 
Can anyone please explain this code to me? Especially the underlined part. #include <iostream> using namespace std; int billy = {16, 2, 77, 40, 12071};...
[1 reply] : http://www.cplusplus.com/doc/tutorial/control/ you will find what u w... (by Bassam300)
August 2012 Pages: 1... 2021222324... 45
  Archived months: [jul2012] [sep2012]

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