General C++ Programming - March 2014 (Page 33)

Object oriented programming
 
Write a c++ program showing your department,names and mat no
[2 replies] Last: And then what do you have to do? (by pukol)
by kimi86
traits and policies
 
Hi All, I am trying to learn about traits and policy templates but cant find an easy tutorial. In fact I haven't been able to understand what they are for and y...
[1 reply] : A few articles that may help clarify the concepts. Traits: http://ww... (by JLBorges)
Wedding Reception Data Storage
 
I wanted to store information about a wedding reception and I'm having a few troubles with my program, I'm kind of stuck on what else to do. Please help me. Tha...
[1 reply] : This is not "General C++" because you do resort to Windows-specific co... (by keskiverto)
Need help with fstream
 
Hello, the two files (save, save1) dont create themselves in the folder with cpp file, but save the integers, while console is opened. So, why the files dont a...
[5 replies] Last: save is the .txt file in which i want to save ad ( integer ) ok, I me... (by fcantoro)
STL set orderinf user defined objets
 
#include<iostream> using namespace std; #include<set> class person{ int age; public: person(int x) { age =x; ...
[3 replies] Last: @ne555 I have got it @coder777 I was wondering why result was descen... (by venkatacplpl)
by Dkob1
How to enter all at once?
 
How do I enter the equation all at once instead of prompting for each piece separately? #include <iostream> using std::cin; using std::cout; using st...
[4 replies] Last: @kbw you are absolutely correct. that's why I've used "maybe" in the ... (by NPcomplete)
Create png file. I couldn't correct the error.
 
this error appears when i try to compile the code: E:\Users\HOME_2\Desktop\DESKTOP ITEMS\a\main.cpp||In function 'int main(int, char**)':| E:\Users\HOM...
[6 replies] Last: doesn't work, error :cannot find -l-lpng (by NPcomplete)
Loops in c++
 
Hello everyone Am actually a newbie and learning C++ on my own. Have been trying to generate a code that prompts a student to enter his/details and after fin...
[2 replies] Last: have successfully gone a step ahead and its showing"please Enter stud... (by kimanthi mutua)
OpenGL Quad Drawing Issue
 
Hey guys, long time no post. A new job and a move has kept me a bit busy. I'm hoping someone might be able to spot what is a simple OpenGL hiccup. I start my...
[4 replies] Last: Thanks for the suggestions, SGH, but no luck. I think I've found the ... (by MrHutch)
Menu Function Problem
 
Hi there, I am having problems with setting up a menu as a function. The point of the menu is to display a list of 4 options and the user is supposed to choose ...
[1 reply] : menu(int ans); //function call Nope, This is invalid and should caus... (by MiiNiPaa)
by bbb718
Typecasting Double question
 
Hello all I have a question regarding the question below. int b = 4, p = 5, r = 2, v = 8; double x = 10.2; x = 8 - (double) p / r * b; x...
[1 reply] : When i get to 8-10 is the answer -2.0 or just -2? The value is the ... (by cire)
Do While Loop Problems
 
I don't understand why my Do While loop skips over the input the second time round? #include <iostream> #include <cstring> #include <cstdlib> #includ...
[2 replies] Last: Yes! I even told myself not to forget that at some point. Thank you ve... (by Bobarino)
Dynamic map creation or array
 
i need a help for create dynamic array or map. for example CString *a1; CString *a2; CString *a3; it minimized to using for loop. for (int i=1;i<=3;i++...
[1 reply] : CString *a1; CString *a2; CString *a3; This is already a bad idea... (by Disch)
Help - Container Class Program makes sense but not working
 
Here is my program...When I run it with the loop it works, but when I insert individually it works until the fourth insert and then gives me gives me gibberish....
[4 replies] Last: Thanks!! (by muturas)
by mjlohr
value of this line of code
 
Hello everyone. I was wondering if this is correct: *(arr_ptr+4) = arr_ptr+4 Is arr_ptr+4 considered the value? Thanks, Mary
[1 reply] : Assuming arr_ptr is a pointer to an array. The dereferencing operator ... (by wildblue)
Friend function not defined in this scope
 
I've inherited some older code, that in the past has built, but is now failing, and giving the error that friend functions are not defined in this scope, I'm ...
[2 replies] Last: thanks, I placed prototypes in the top of the header and now it compil... (by mrisaacs)
by laro
Ram Disk and Pointer to content in the File
 
Hi, When we are using RAM DISK - the files are stored on the RAM. from what I understand (and saw many examples) in order to read data from file (the file w...
[2 replies] Last: so although the file locate on the RAM (because we are using RAM DISK ... (by laro)
Run-Time Check Failure #3 - The variable 'x' is being used without being initialized
 
i am new to C language , i was writing a small program but faced a problem "Run-Time Check Failure #3 - The variable 'x' is being used without being initialized...
[4 replies] Last: oh ok thank you , now i understand the problem it worked (by jadoweini)
by werlay
Detecting a sentence ending with "?", "!", (1,2)
 
Hi Guys. I'm trying to write amend the code below to detect when a sentence ends with "?", "!", and not just "." ( full stop). Basically the code accepts a f...
[33 replies] Last: Windows System Programming (4th Edition) by Johnson M. Hart http://www... (by JLBorges)
by okoro
Assignment
 
The array of real numbers is set. a) To delete from the array positive elements. b) To calculate the sum of negative elements in the array. c) To calcul...
[5 replies] Last: So you missed ; before else in two lines and got an extra ; directly a... (by MiiNiPaa)
March 2014 Pages: 1... 313233343536
  Archived months: [feb2014] [apr2014]

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