Beginners - November 2011 (Page 44)

by nebula
Little question about functions.
 
Hello people. I would like to know if it is bad that a function prints something on screen and returns some value. I mean something like this: int funct...
[5 replies] Last: No. I don't mean that at all. I'm not talking about that at all. I'm ... (by Moschops)
how to take input within a time limit.
 
i want to take input in an intergr with in a time if user does not give input within time then program should skip input process and programe set input in vari...
[2 replies] Last: @Jan - the post you sent the link to -- "How can I measure how many mi... (by andywestken)
by deapee
eclipse? Also two questions at bottom
 
I downloaded eclipse and I can edit fine and all that, but it keeps saying that it cannot find "MAKE in PATH" before I even try to compile. I can compile fin...
[1 reply] : Hi deapee, actually I do not know if installing MSys automatically so... (by dean)
Errors during initializing char to " "
 
//aren't allowed to use string in this program. //error : incompatible types in assignment of `const char ' to `char #include <iostream> using namespace s...
[6 replies] Last: line 32 cin>>y; does not remove the end of line character from the... (by Alrededor)
by dean
error: 'IGraphParser' has not been declared
 
Hi, this is an error I am not able to understand. I am defining as a parameter of a method a pointer to an object of class 'IGraphParser' but the compiler thro...
[2 replies] Last: thanks shacktar! (by dean)
Runtime errors- missing something obvious?
 
fd
[7 replies] Last: OP seems to have been accidentally deleted. Never mind, I've got a co... (by Moschops)
Need Help w/ Type Specifier
 
Here is what my code looks like; #include <iostream> using namespace std; int main () int a, b; int result; result = a - b; ERROR = C++ requires type...
[3 replies] Last: Hmm, this is weird, this compiles and runs just fine for me. If you're... (by fafner)
Array Troubles
 
Hi people, i' m new here and new with C++ and programming in general. I have a file which structure is STRING double double double for many many lines, s...
[1 reply] : Line 38 does not make sense. What are you trying to do? Read here htt... (by coder777)
Prime Numbers help
 
Hello, I am having a little problem with this program I wrote. It accepts an integer in an argument, and it will tell the user if that number is a prime number ...
[19 replies] Last: I stumbled upon this thread while looking for a simple method to check... (by flamewave000)
Help calling function from library.
 
hmm, I'm having a bit of trouble calling my function in main to test it out.. OgreWeaponStrikes::OgreSwordStrikes::OgreRanSwordStrikesBtl(1,50,22,std::strin...
[1 reply] : I think you mean OgreWeaponStrikes::OgreSwordStrikes::OgreRanSwordSt... (by andywestken)
Advanced Function Question
 
I'm just wondering. Is there a way to have a function take user defined variables for certain arguments. I have a function in a class in a namespace. It's a too...
[4 replies] Last: unless of course your in the flying donkey monkey juice selling busine... (by InterFiction)
Class String has no member named 'remove'?!?!!
 
Here's the error (it is the only error that Dev C++ finds): Line 95 'struct std::string' has no member named 'remove' I know it isn't pretty. I know it's no...
[1 reply] : remove() is in <algorithm> : http://cplusplus.com/reference/algori... (by Alrededor)
array calculating output
 
I was wondering if someone could explain to me how to solve an array to see what it is going to output. This is an exercise question I have that I do not know h...
[no replies]
how to make c++ email me?
 
if i have a .txt file can i make a program email me that file? if so how? what code must i use?
[3 replies] Last: An internet socket is, as simply as I can put it, is a point through w... (by Albatross)
by nebula
Equal variables within different functions
 
Hello people. I would like to know if the following is correct: int function_1 (*Parameters*) { int i; *** CODE *** } int function_2 (*Parame...
[3 replies] Last: Yes, this is called the scope of the variable and is limited by the ... (by jim80y)
by hbjgd
Wierd Error
 
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; struct domList { string domName; string ipAddress; int coun...
[5 replies] Last: Yay for more errors. Lines 73, 85, and 89 all say that length is undec... (by hbjgd)
Hello
 
Help with namespaces, and classes. I'm trying to grasp the basics of namespaces, and classes within the namespaces. I was wondering if someone could take a l...
[9 replies] Last: Thank you! now I have my first workin namespace, and class. I appreci... (by InterFiction)
Trouble with makefile
 
Hey guys. This is my first time posting on here, so please bear with me. I'm having a bit of a problem with a simple makefile. I've got two .c files, one of whi...
[3 replies] Last: Yeah, I did that with both, and I also forgot to include src/jmalloc.o... (by fulluphigh)
by denZer
Hangman Game - Storing variables and such
 
I will have to eventually use an array called "guessed_letters" (which a character is added with each guess) but in the mean time, I am using char user_guesses ...
[no replies]
Pi
 
I have managed to calculate pi to numerous places in visual basic, but im fairly new to c++ and cant seem to get pi right beyond about 100 places. If anyone kno...
[1 reply] : Really? That's surprising, because no floating point type is capable o... (by helios)
November 2011 Pages: 1... 4243444546... 65
  Archived months: [oct2011] [dec2011]

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