General C++ Programming - December 2013 (Page 11)

Please explain this behaviour...
 
Well, my problem is that I have my code written in C# and it works perfectly, no bugs at all. If I write the same code in C++ with C++ standards, the code work...
[4 replies] Last: I switched from codeblocks+Mingw to visual c++2010. The error still re... (by ravel1989)
Filehandling...coutning words
 
Hi All, I have written below program to count number of words and lines and print the all the words. #include <iostream> using namespace std; #include...
[3 replies] Last: @tipaye Thanks for your reply. I wrote that in haste,didnt mind much... (by venkatacplpl)
Outputting X Number of Files
 
Here's the gist of what I'm doing. Reading in values from an Excel spreadsheet (I have this part down), and then outputting them into a number of Word Document...
[1 reply] : How do you read the Excel spreadsheet and how do you write the Word Do... (by coder777)
by kemkoi
Randoming out pictures
 
Allright, so I'm trying to create a memory game and this is what I've written in the code so far. I'm using Visual Studio Forms Application btw so it's .net lan...
[no replies]
Member function pointer
 
what is the difference between double Box::*i and Box * I
[7 replies] Last: Thank you for everyone to reply for my doubt (by gopal2773)
Back to bezier curves
 
Related to an old topic I made ages ago but I decided not to dig that up http://www.cplusplus.com/forum/general/104087/ I understand a lot more about bezier...
[5 replies] Last: Yeah it looks like nurbs would be the best option here. I guess it co... (by Hippogriff)
how memory is allocated on Stack
 
Suppose if i code like this, while( true ) { int x; // do some thing; // break on some condition match; } whether memory is allocated f...
[6 replies] Last: Yes you're right. That is certainly possible. But, really, the key p... (by Disch)
Error while making DLL (1,2)
 
so I tried to find some youtube videos on how to make a DLL, I found one, I also found several topics (like on msdn and stuff), but I have this code header #i...
[25 replies] Last: Line 3/4/12/13/32: You've forgot to add the namespace on front, althou... (by TheBeardedQuack)
Increase and decrease integer at the same time
 
I had this question for a while - is it possbile (not intended, but if this "error" can occur) to actually increase AND decrease integer with ANY operation at t...
[3 replies] Last: ...the answers given mean that you can try , but the results are "und... (by Duthomhas)
by Garion
Boost Library
 
I'm not sure if this belongs in the beginners section or not but here goes. I recently downloaded the Boost Library and discovered that I need to compile it be...
[6 replies] Last: Thank you, I got all the linker settings working and I can compile reg... (by Garion)
A simple one yet complex 4 me
 
#include<stdio.h> void main() { printf("Value : %d",10^9); } Result : 3 Can anybody please help me with this..i don't get how the result can be 3...
[2 replies] Last: Hey thanks..got it now..a very simple one! (by ammusctce)
by Cpp58
Enumerated constants
 
I am trying to work my way through a "Teach yourself C++" book. In a section about variables there was code to illustrate the use of enumerated constants. Acc...
[8 replies] Last: C has traditionally been very slack about it. C++ tries to be more ped... (by Duthomhas)
ATM Machine program not running still! (1,2)
 
//Jesse Livecchi //ATM Final //header #include <string> using namespace std; class bankAccount { public: bankAccount(string); string getBankName...
[28 replies] Last: .01 and - .01 would be the output? What???? I thought under "your... (by ajh32)
Stock Counting
 
At work we count the technicians stock periodically throughout the year. We use a scanner at the moment which we scan into excel. Using lookups I pull in the d...
[6 replies] Last: Ok, it's becoming clearer. 1) Central database of all items and numbe... (by ajh32)
how to write this code using file.please help me
 
i made this code but i am unable to do it using file. #include<iostream> #include<string> using namespace std; class Appointment { public: Appointm...
[1 reply] : Do you mean you want you want the output to go in a file? If so, you ... (by tipaye)
please ..take out the logical error in this simple overloading program..
 
#include <iostream> #include <conio.h> using namespace std; class studentmarks { private: int physics; int maths; ...
[3 replies] Last: you can also put those two constructors together using implicit zero v... (by rich1)
i get the error subscript string out of range
 
int main() { printWelcome(); string strFile; char invalid = 'i'; do { cout << "\n Pick a choice type e to quit." << endl; cin >> choice; ...
[2 replies] Last: Suggestion: http://www.cplusplus.com/articles/jEywvCM9/ array subscri... (by Bourgond Aries)
What data structure does a vector use?
 
Does it use Linked List or Dynamic Array? I want to know this because if I happen to want to use a lot of insertions and deletions then it is more efficient to...
[8 replies] Last: @ResidentBiscuit How has a map a constant lookup time? Mathematical a... (by Bourgond Aries)
I already have main() but the program said entry point must be define?
 
I try a Hello World code in visual studio 2010 with following code #include <iostream> using namespace std; int main() { cout << "Hello World" << ...
[3 replies] Last: Maybe check the linker settings. Project->Properites->Linker. Under th... (by MrHutch)
by dd76
is friend the only way ?
 
We are class-a which has "map container" of object-p. Now object-b has a shared ptr of class-a, and should create dns objects for every p-object in map (present...
[6 replies] Last: Thank you Doug. Couple of tables of peers and they need to be synced,... (by dd76)
December 2013 Pages: 1... 910111213... 37
  Archived months: [nov2013] [jan2014]

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