General C++ Programming - January 2012 (Page 20)

Reduce time limit of program
 
Here is the question :- Problem 2: What is the Rank?, (K Narayan Kumar, CMI) This is one more story about our old friend, the Despotic King. Once every yea...
[4 replies] Last: Thankyou all, i have finally got it to work ! Heres the simple solutio... (by Maggi Iggam)
Problem dereferencing a string from .NET
 
Hi, I'm calling a c++ DLL via DLLImport and interop this way: [DllImport("UtilsAK.dll")] public static extern int ValueOK(ref string pwd, ref string gene...
[4 replies] Last: But how can I change the value of a char array passed by reference? Th... (by JulianRoss)
What is Preproconia?
 
Hi, While going through some interview questions, found one question as below: Q.Preproconia.. does not do which one of the following (a) macro (b) ...
[2 replies] Last: :) Thnx Buddy!!! (by DiptenduDas)
Populate Fields On A Form From A Website Databas
 
Hi I'm making a database for a log of books we have. I have a form with a UPC / ISBN number Can I link the form to the internet, so it can retrieve the descr...
[2 replies] Last: great thanks for your reply. Do you have any links on where I could ... (by danieldunn10)
For loops help
 
i need to create a program that produces an amount of stairs based on the number user inputs. for example the stairs will look like this if the user enters 4 ...
[3 replies] Last: This code will also do . int main() { int a =0 ; cout << " please... (by bluecoder)
copy constructor
 
im just a beginner and im confused.. Vect::Vect(const Vect& a) { size = a.size; data = new int ; for (int i = 0; i < size; i++) { data = a.data ; ...
[3 replies] Last: Copy constructor will create the deep copy of the object . means that ... (by bluecoder)
Help me! why it doesn't compile?
 
#include <iostream> using namespace std; const int NUMBER_OF_PLANTS=4; void inputData(int a , int lastPlantNumber); void scale(int a , int size); v...
[2 replies] Last: Sorry Moschops , I didn't understand the problem by your response. ... (by Stewbond)
Help!!! how to correct the errors linked to class?
 
Hi guys, I need your help. I am trying to build a Win32 project under Windows XP using managed C++ 2005 Express Edition. I have a bit of trouble with the err...
[5 replies] Last: if (algo == nullptr) ... , at least that's what a quick google search... (by hamsterman)
by abc1
abstract data type
 
what is abstract data type? what is the difference between abstract data type and normal data type? Anyone please explain with example
[4 replies] Last: I'm not too good at this but it has something to do with that stack is... (by Peter87)
IF Statements Taking Multiple Numbers for Analysis and Output
 
Greetings. I am working on a text-based command prompt game for fun and ran into a situation I find to be relatively difficult to solve. I am using a simple In...
[5 replies] Last: After hours of searching for alternate answers and toying with the cod... (by Sytherous)
odd error
 
I keep getting this pile of errors I think it has something to do with using maps with a class I made, but I can't be sure. What do I do about it? In fi...
[9 replies] Last: to make this work with different objects in the list, do I need to use... (by blueeyedlion)
Breaking a double loop?
 
Hello, I am trying to see if there is a nicer way to break out of a double loop. I have the code RAND = double(rand())/RAND_MAX; double cum = 0; for (row...
[8 replies] Last: Thanks everyone for the help. Actually, I figured out what was wrong a... (by armstrhu)
Convert to double help!
 
Hey guys. This is my second post here to the forums!. I want some help on my second project also. Its a Calculator. The operations are working fine but i have p...
[3 replies] Last: Ask your prof/teacher for more information on the specifications they ... (by closed account o1vk4iN6)
by GulHK
Sorting for equal_range()
 
Hello all I am using 3 vectors each of which is of type struct "ABC". I am trying to find duplicates in each vector using equal_range() method. In order for ...
[7 replies] Last: Thanks Galik for writing a whole program :) How will it help in fin... (by GulHK)
Inserting the value in the vector .
 
Hi , my code insert the value in the vector at particular position .Can you please help with other ways to insert the values in the vector . int my...
[5 replies] Last: thanks ... Peter87 , and Moschops .. ok . so i assume that this is the... (by bluecoder)
by Tresky
TMX Files
 
Does anyone have an idea of how to load and unload a TMX file into my program? I'm not quite sure how the data is compressed and how to read it. Haha.
[6 replies] Last: Okay thanks a lot! :) (by Tresky)
Need some help to fix errors in a program RSVP
 
pls click the link below which will have the program code and the debug / output page at the bottom of it ...........pls help http://pastebin.com/s2REiZQJ o...
[3 replies] Last: code is to huge to post here so, i had to to put it in an link sorry a... (by Gautam029)
Question regarding String to Integer convertation in C++
 
Here is my code example in the String2Int func static int string2Int(const string& source) { int digits = 0; istringstream instr; str...
[1 reply] : Have a look through the documentation for istream::operator>>: http://... (by rollie)
by samba
merge sort the vectors instead of arrays
 
hi all I have a project for my final term and I used a class in it for ARRAYs I have a vector in ARRAY class that I use it for keeping integers value s...
[2 replies] Last: i can't understand :( please give me the source of it tnQ (by samba)
help:: Static Binding and Dynamic Binding Example
 
Please give me a comprehensive example of dynamic binding and static binding . so i can understand this concept.
[1 reply] : #include <iostream> #include <typeinfo> #include <string> #ifdef __G... (by JLBorges)
January 2012 Pages: 1... 1819202122... 36
  Archived months: [dec2011] [feb2012]

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