General C++ Programming - February 2012 (Page 12)

by Sh4
Visual C++, Read file and Write on another file with modified Help
 
Hello Valuable Programmers, I have a little Problem with Read on a file and Write on another file with modified like; informations on a exel(.xls) sheet ...
[no replies]
by iSo
stack problem !
 
Hi guys, I'm a beginner in c++ , so I'm facing problems in my project :/ ! Now, I have this project about using STACKS .. It is about a container tha...
[12 replies] Last: Oh, and gaminic: TOTALY WRONG!!!! the is NO operator for stacks! the... (by MrHutch)
What is the syntax for gaining access to items found in the STL
 
In general, how do I gain access to objects in the Standard Template Library?
[2 replies] Last: You should include a corresponding header file that contains required ... (by vlad from moscow)
Overloading Square Bracket [] Operator for Class Constructor Array Output in Main (1,2)
 
Hello everybody, I've got a question about overloading brackets. I need to output the contents of an array, that I created and populated in the constructer o...
[30 replies] Last: @LB: Touche, it does need to be an lvalue, it's been a while... howev... (by clanmjc)
accessing vector of struct
 
hello guys, I have a struct: struct table { std::string field1 ; std::string field2 ; std::string field3 ; std::strin...
[2 replies] Last: What is shmat and what does it return? I doubt you should use a cast h... (by Peter87)
checking vector size
 
guys, i have a vector and i am implementing it with push_back() function. how can i check the size of that vector later? because i am using the function s...
[3 replies] Last: Segmentation faults happen a lot when you're trying to access an eleme... (by ciphermagi)
by Laveer
Attaching My Executable To an Active Process
 
What I'm currently working on requires me to do so, and I was wondering how it'd be possible. I've looked into it though I don't understand it all that well.
[3 replies] Last: Laveer, people are ignoring you because you're not asking a question, ... (by ciphermagi)
by Zerox
Assignment Help (Classes/Arrays)
 
Hey guys, First time poster here. I've been working on an assignment involving classes and arrays that has me stuck. I was hoping someone might be able to gi...
[2 replies] Last: Yes the code that is in place now is okay, it was part of a previous a... (by Zerox)
virtual functions
 
Hi, my question is: Why does the first code give 1, 2, 3 but the second one 1, 1, 1? 1st code: #include <iostream> #include <list> class a { p...
[3 replies] Last: thanks Peter87 and mik2718 this explained. I asked this because no err... (by Yours3lf)
by striph
Having a hard time picking up pointers...
 
I understand how pointers point to a memory address, that much makes sense. I've used pointers to simple variables and modified those, or worked with them. My p...
[9 replies] Last: Actually seeing it like that really makes sense, just read about virtu... (by striph)
by aquaz
Member variable offset
 
Hello, For example, in this class: class A { int a; int b; }; Is there any standard way to know the memory offset in bytes between member b of class A and th...
[2 replies] Last: Thank you JLBorges (by aquaz)
rotating bits
 
how can i shift bits without loosing any information... heard something about bit rotating but i'm not really clear how it works... thankful for every answer
[3 replies] Last: Temp1 should be the top bit if you're left-rotating. (by Gaminic)
count_if()
 
Hello forum, I am having the compiler error while trying the following code: int left_child_count = (int) std::count_if( (m_objects.begin() + left_inde...
[16 replies] Last: My point is an extremely simple one: a deprecated feature should not b... (by JLBorges)
increment operators
 
int a, c=11; a =c++ + ++c + ++c; the value of 'a' comes out to be 37. can someone please explain me how is the value of 'a' computed in the above case? ...
[14 replies] Last: That makes sense. I hadn't taken into account precedence, and I figure... (by Gaminic)
by Nonlin
Difficulty Understanding User Defined Functions/Arrays
 
Had this assignment we did in class that I did't finish trying to figure it out. Calculate the average and find the min of five numbers entered by the user. I h...
[1 reply] : first of all please use code tags! second doesall has no return at th... (by Jikax)
Sorting Homework Help
 
So I'm trying to do my C++ Homework and I feel like i'm really close to finishing it but I can't figure out an error. This program should create an array of obj...
[8 replies] Last: I added headers to my main post inside pastebin. The assignment is sup... (by JimmieDean)
by barbis
error C2352 static vs. non-static
 
hello all, i try to call a function from a commercial program, i have the following on my header file: class MYPACKAGE_API MyComputeThreshold1 : publ...
[3 replies] Last: Great! That solved it! Thanks! (by barbis)
by Cipper
Save Tiff with color palette
 
Hello! I am trying to save an image to a .tif file. When saving as an RGB standard image everything is ok. But when I try to save the file as a LUT/palette c...
[no replies]
by Algren
How to use graphics?
 
I have used Graphics.h , but to use functions like circle(), etc. i have to call for the way old BGI graphics drivers. How to use the new graphics display drive...
[1 reply] : IMHO, you should quit Turbo Compiler and use something new like MinGW ... (by Pravesh Koirala)
by Jikax
unkown struct typedef
 
I saw this in a c project (not c++): typedef struct { unsigned char reach_1s : 1; unsigned char reach_5hz : 1; unsigned char flag_nIRQ : 1; } Fla...
[4 replies] Last: I know very little about it. There is some information in http://en.wi... (by hamsterman)
February 2012 Pages: 1... 1011121314... 43
  Archived months: [jan2012] [mar2012]

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