Beginners - May 2013 (Page 36)

Static variables inside classes?
 
I have some code where in my main function I create an array of objects using a for loop. I would like to be able to access those objects outside of the loop. ...
[3 replies] Last: If your program was written in C++ then this declaration of the array ... (by vlad from moscow)
c++ iterator skype chat!
 
Hello,can anyone explain me about iterator? I know a little bit about it, but wouldn't be able to create something serious ! :] Also skype chat : Be...
[3 replies] Last: An iterator is a concept which is designed to transverse, and possibly... (by closed account zb0S216C)
error statement cannot resolve address of overloaded function
 
i have written this code for finding the day of week on any date but it is showing error statement cannot resolve address of overloaded function on lines 40 to ...
[3 replies] Last: thanks JockX and vlad from moscow , the code finally worked however it... (by harshalp)
c++ project for school
 
I need to develop a code for a project that has six separate programs that enhance off of it. using Dev c++ The first assignment is as follows. 1.Your first...
[11 replies] Last: we're not here to do your homework for you. If you want help code some... (by giblit)
Confusion Accessing Singleton Class Members
 
Hi, LeafyCircuits here! Comp specs: OS: Windows 7 Home Premium 64-bit Compiler: GNU gcc with ISO and STL IDE: Dev C++ ver 4.9.9.2 using C++11 I was pla...
[2 replies] Last: keskiverto said: Line 17. Why don't you want to return the insta... (by LeafyCircuits)
help with using a set()!!
 
I have an additional txt file that i need to read into my cpp file by using a set. Im not understanding how to incorporate this into my code. any help would be ...
[4 replies] Last: @Bourgond, agreed. I was just not sure if the OP was using a C++11 com... (by closed account N85iE3v7)
Random number issues.
 
I am learning c++ ahead of some classes on it. I have written a few text based rpgs and now I am trying to integrate random numbers to be used in fight mechani...
[5 replies] Last: Thanks. That fixed it. It makes complete sense too. Also thank yo... (by TeaReks)
IPv4
 
Hi guys i just go through the one of the code which was written in functions. i tried to do in class object form but i failed to pass octets in binery function ...
[2 replies] Last: What exactly is your error and question? And please edit your post, an... (by ResidentBiscuit)
Help with Salary Program
 
Hello, so I've been having some difficulties with a C++ programming assignment. We have to create a program that calculates the Gross Pay based on factors such...
[1 reply] : Hey If it is compiling you can debug it! First try to calculate... (by closed account N85iE3v7)
Problem with classes
 
I was trying to access the classes from different files. So , like a normal procedure, I made a new class, added the required codes and added the necessary prep...
[2 replies] Last: Did you make sure you added the files to your project file? This is di... (by Daleth)
Static variables
 
In the below example, why is statloc not reinitialised and is it incremented in the last call to void proc()? #include <iostream> using namespace std...
[4 replies] Last: So it is incremented and static variables can only be initialised once... (by Ramzi89)
Appending a file ios::app
 
Hi, This is my first post. Hope someone can help. I am trying to append a txt file I created in wordpad using ios::app. However the file is not appending? ...
[4 replies] Last: Probably your program was being run with a different working directory... (by LB)
Quick tutorial question (uppercaseifying letters).
 
In the below code (from the templates section of the tutorial) this template specialization is supposed to make a character uppercase - how does it do that? ...
[3 replies] Last: keksiverto I have no idea what you mean and an alternate method wasn't... (by agnophilo)
EXCEPTION HANDLING QUESTION
 
in this code although i have a general catch block but when i try to enter a double value instead of integer one the program runs infinitely what to do??? ...
[7 replies] Last: got it THANKS (by Abdullah PAKISTANI)
Know from beginning
 
I want to study from begginning.please give me a.simple programme for study
[2 replies] Last: http://www.cprogramming.com/tutorial/c-tutorial.html (by Donnie)
Out of ideas
 
I need to create a win condition in connect four, but I have no knowledge of how to. #include <iostream> #include <cstdlib> #include <ctime> using namesp...
[no replies]
by Hnodes
I want to be a programmer! (1,2)
 
Hello! I am a 17 year old boy and I want to become a programmer. I've decided that I want to learn C++ since I believe there is more of a market for that. ...
[27 replies] Last: Foxefde, Thanks for the invitation, but I'm not on skype yet! :( Don (by Donnie)
Reading and writing arrays from file
 
Can someone please help me with a short programme to read and then write a file. Basically I wish to open a file say "numbers.text" numbers.txt contains t...
[4 replies] Last: Thanks I'll adapt that into what I have so far. :) (by tedski69)
by oxxo
New in C++ asking for suggestions
 
Hello everyone, I just started learning this C++ language. (I dont have any previous programming experience) Most forums the I've search says this language i...
[6 replies] Last: @Bourgond, completely agree about using try / catch statements, they a... (by closed account N85iE3v7)
books
 
I want to clear these topics in my holidays.Please suggest me a book for each of these topic is possible : 1. Windows Programming in C++ 2. Networking in C++ ...
[1 reply] : Windows Programming; Windows System Programming 4th edition by J.M ... (by closed account N85iE3v7)
May 2013 Pages: 1... 3435363738... 66
  Archived months: [apr2013] [jun2013]

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