Beginners - January 2011 (Page 4)

error on a simple program
 
The problem is when i entered letters the program keep saying "Invaild number entered--Try again: ""Enter a double number: " it just wont let me cin the numb...
[6 replies] Last: Ty guys Long time didn't touch to c++, always working on java and al... (by shazlin)
by iCPP
Anyone can solve this problem? (1,2)
 
This is a problem that I got from class Requirements Ask the user to enter six numbers. Three of the numbers will be odd and three of the numbers will be ev...
[29 replies] Last: The modification to accept negatives is trivial: #include "stdio.h" ... (by rocketboy9000)
Unresolved Externals problem
 
Here's the errors: Error 3 error LNK2019: unresolved external symbol "public: class Core * __thiscall Handle<class Core>::operator->(void)const " (??C?$Handl...
[2 replies] Last: explicit template instantiation http://www.cplusplus.com/forum/article... (by ne555)
by sloper
input validation
 
Hello knowledgeable peoples, char name cout<<"Enter Bob or Ted"; cin>>name; How do I verify that input was Bob or Ted and not fred or 69&? Is it possi...
[1 reply] : Avoid char arrays for stream input at all costs. Use only std::string... (by PanGalactic)
Starting graphic games (1,2)
 
Hello, It's a long time that I wanted to start off a graphic game in c++ and I would like to know the basics of graphic games. I want to make a simple game wher...
[21 replies] Last: Alex cpp said: ...while you guys are kinda arguing I've read... (by ultifinitus)
Veribals in class wont output the value it is suposed too.
 
Hey got this code and trying to make a "Dungion and Dragons" type of game in the console window. And i cant get the start values to output correct. Can anyone ...
[4 replies] Last: I thot i did understand scope. if i got int main(){ And make Verib... (by WetCode)
Not sure why this won't work
 
It goes into the loop, so I think that the problem is my conditional operator. Can I not use function calls in it? Here is the code: #include <iostream> #in...
[2 replies] Last: oh. Yeah, that might make a difference. thanks. *walks away feeling o... (by Kieth89)
Quest
 
Hey guys am having an exam on Monday in c++ so i was wondering if i can get some help , because the questions are multiple choices about the output of programs ...
[17 replies] Last: Thanks guys... one last question , it's about the static functions ...... (by billyb29)
How to make a map in c++ through link list?
 
(i am making a game which has a map made of linked list in which a bot will move)and i don't have any idea on creating a map through a linked list.
[1 reply] : I don't know if anyone can answer this question, I personally say it's... (by hanst99)
Time Zones
 
I have having a problem figuring out the last part of my code. Everything seems to be working great, but then at the end when I ask the user to enter a time zon...
[3 replies] Last: Thanks a lot for both your help. I made those changes and a few other ... (by soCoPth)
Reading text file (having integers) into an array in C++
 
Hi Guys, I am new to C++. I would really appreciate if you could help me with this problem... Here is a sample text file. The first line contains two numbers...
[no replies]
Compare lines in the same text file
 
Hi, guys! I would like to read a .txt file (of maaany lines) and compare each line with all the rest, in order to check if some of them are repeated. Any idea...
[5 replies] Last: Great!!! Thanks!!! (by Sophie1982)
Why doesn't this execute?
 
Another little problem while using my bigint class... int main() { for(int i = 3; lastPrime < 100; i+=2) { if(isPrime(i) && i < 100){ ...
[1 reply] : Question: Why do you do this: for(int i = 3; lastPrime < 100; i+=... (by hanst99)
where to find functions for int/double etc
 
Hey, I used the string library and noticed the ease of functions like std::string::size . is there any ones that are like that for type int, double, etc?? ...
[4 replies] Last: Disch, is int arrays practically the same as regular ints? (by kash kow ken)
int86();
 
hello, i want to write a c programm for determining the memory size of my computer using using ROM BIOS function "int86()" and i m kind of lost.I read the prot...
[2 replies] Last: Thanks . That was useful information. Kind Regards, Parminder (by parmidner)
calculate population growth
 
Hi there, I wrote a little program for calculation of population after n years... #include <iostream> using namespace std; int main(int argc, char...
[no replies]
Multiple Namespaces.
 
I've got 2 namespaces with the same name. They both have one variable which is named differently, for example: namespace NamespaceOne { int One( 0 ); ...
[3 replies] Last: Thanks coder777. (by closed account zb0S216C)
by gilit2
GUI and forms
 
Hello ! I need gui for may software. I work in C++ visual Studio 2010. I need to enable the user insert a lot of input information. It should also support the t...
[1 reply] : I'd recommend wxwidgets.: http://www.wxwidgets.org/ It's free even f... (by coder777)
Best C++ book
 
Hey which is the best book or site to learn c++ from, because sometime i learn from 'c++ for dummies',sometimes 'the ansi c programming' and sometimes from diff...
[5 replies] Last: The book: C++ Coding Standards: 101 Rules, Guidelines, and Best Prac... (by andrezc)
Has std::vector been changed...
 
Or is it just me who's really gone senile? This isn't working for me: std::vector<int> someNumbers = { 1, 3, 5, 7, 9 }; std::vector<int> someNumbers = ...
[2 replies] Last: That syntax won't work in ISO C++ 2003 but it will work on C++0x ( whi... (by Bazzy)
January 2011 Pages: 123456... 42
  Archived months: [dec2010] [feb2011]

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