Beginners - September 2012 (Page 48)

by nistor
help me
 
class object { public: virtual ~object() = 0; }; inline object::~object() {} class stack { struct Link { object *data; Link *next; Link(object* o, L...
[no replies]
Function call mismatch
 
I wrote this program //This programm is for testing function overloading #include <string> #include <fstream> #include <iostream> using namespace std; cla...
[2 replies] Last: I did not find a syntax error. (by vlad from moscow)
Any one can help me to this code
 
I have no idea to get the index location of the variables! any one can help me this is my code that i made but getting the index is my problem! do you thi...
[7 replies] Last: can i ask again what is the use of return 0; To expand on the e... (by Moschops)
friend functions
 
below is a code where a function b() is friend of classes sample1 and sample2. another function c() is a member of class sample1 but a friend function of class...
[8 replies] Last: actually u edited ur post after i posted my rply...that led to misund... (by kbw)
accessing objects using pointers
 
I am not unable to understand the concept used in following code..generally, we pass address to a function and receive as pointers..but here we r passing value...
[1 reply] : Arguments can be passed to functions by value or by reference. If an a... (by vlad from moscow)
alphabetical sorting algorithm errors
 
i need a program that sorts an array in alphabetical order (A->Z). i have made some code that should be working i believe but it doesn't work. can anyone tell m...
[4 replies] Last: ok true lol. i did a total rework on my code and now i have an error w... (by gelatine)
Better way to initialize struct bools?
 
So say I have a struct: struct MyStruct{ bool Member1, Member2, Member3; }; The way I normally would initialize these is by us...
[4 replies] Last: When I read "fairly large struct" I think near 100 member variables. ... (by Lowest0ne)
pointers
 
What does the statement imply UInt* g_auiFrameScanXY[ MAX_CU_DEPTH ];
[5 replies] Last: It's an array of pointers. You can access them with g_auiFrameScanXY ... (by Athar)
Inheritance : What am I doing wrong?
 
Hi, I expected this to work but it does not, can anyone explain? class Event{ public: void HandleEvent(SDL_Event& Event); //Defined in Event.cpp (...
[2 replies] Last: Thanks firedraco! Such a "duh" moment for me! (by Swizzler)
what is the use of inline??
 
this code also works when i do not use inline keyword..so what is the use of this keyword?? #include<iostream.h> #include<conio.h> class student { ...
[3 replies] Last: The difference is that inline functions are not subject to the one-def... (by Athar)
Deleting duplicates in an array
 
I saw an older post on here asking how to do relatively the same thing, but their approach was different and I don't believe their issue was resolved. I am a...
[2 replies] Last: See your line no 58 you had written array =target; which is wrong. y... (by HiteshVaghani1)
any sample gui coding for wxwidget cinema database..?
 
any sample gui coding for wxwidget cinema database..?
[no replies]
Simple Loop source code
 
Hello everyone. Can anyone help me with this problem using while or for or do loop? The desired output should be like this: __________________________________...
[4 replies] Last: What exactly would you want it to look like? Just write up a quick exa... (by DesiredNote)
Problem With {SDLTutorials.com}
 
Well, hello... I have a problem. It's my code wont compile... It keeps giving me this: 1>------ Build started: Project: SDLtuts2, Configuration: Debug Win32 -...
[6 replies] Last: Thanks, naraku! You fixed my problem =D EDIT I posted the problem, ... (by closed account N36fSL3A)
Solving a Polynomial over a domain
 
Hey guys, first (of many) post here as I am taking a computational physics class with literally zero programming experience. My first assignment is to take a p...
[4 replies] Last: > save the points Either look at std::ofstream of just do output red... (by ne555)
Deleting global array of struct causing heap corruption
 
I'm working on a Minesweeper clone to get practice on Win32. I have a global array of structs called tile_array. This is an array of structs called "tile." E...
[6 replies] Last: Thanks for your help in this, vlad. That code above still reported a ... (by WannabeProgrammer0)
SDL
 
Hello! I was just searching Google looking for a good SDL (Simple Direct Media Library) tutorial. I know that there is Lazy Foo, but I don't think that those tu...
[6 replies] Last: No, its not that I dont understand the C++, I consider myself intermed... (by closed account N36fSL3A)
Function syntax clarification
 
I was told by one instructor that this is the correct way to code functions. # include <iostream> using namespace std; //should this have the names e.g., (...
[1 reply] : You can put the names or not, it doesn't matter. Personally I put the ... (by firedraco)
by h4344
Is this way im writing to a file bad?
 
Im just wondering if the way im writing to a file is bad and if so, if there is a cleaner way i could do it. The section of my code im talking about is inside a...
[6 replies] Last: Its a big damn bank file compared to most. XML file. (by h4344)
Why int argc, char * argv[] ?
 
I did copy this from a manual, I confess... but only to test it and see what the content does. And I can not understand this parameter in main int main (int ar...
[3 replies] Last: The main () function's arguments are to get command line strings from... (by Duthomhas)
September 2012 Pages: 1... 4647484950... 62
  Archived months: [aug2012] [oct2012]

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