General C++ Programming - March 2012 (Page 46)

constness being applied implicitly?
 
I've got an application that is compiled in VS 2010 using both the vc9 tool set and vc10 tool set. In vc9 the solution compiles with no warnings or errors. In...
[2 replies] Last: This is exactly what my problem is, I have to cast, thank you! I need ... (by clanmjc)
Console texts etc
 
void coutc(int color, char* output) { HANDLE handle= GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute( handle, color); cout<< output; SetConsoleTe...
[no replies]
binary search on vectors
 
i have written code which performs recusive binary search on vector,please tell y the program is not giving correct output... #include<iostream> #include<vec...
[3 replies] Last: i made these two code : this one is working perfectly fine... (using ... (by arjita07)
initialising an array inside a class
 
hello, i need to initialise a constant character array inside a class.... ie. it needs to be same for all class members i tried something like this, but it ...
[2 replies] Last: thank you (by tejashs)
saving a text to a text file(need it fast)
 
i wanna write something a txt file but i dont want it to be overwritten when i run the program again this is my code plz help me thnx #include <ostream> ...
[4 replies] Last: thnx alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 (by dana267)
copy constructor/ copy operator=
 
Hi, I have the following sample code and result of execution as below. // header #include <stdio.h> class Temp { public: // simulate c...
[4 replies] Last: All of them allow some implicit conversions. The function-call form al... (by Cubbi)
by JnrGD
Exporting whole C++ class to C#
 
I found this article on exporting a whole C++ http://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL which boils down to having a GetIns...
[1 reply] : Create a manged c++ wrapper class for your native c++ dll. This wil... (by SIK)
Problem with character arrays
 
Hello!! I have my tests coming up.. Can someone please teach me character arrays.
[4 replies] Last: Usually character arrays simulate character literals by having termina... (by vlad from moscow)
Setting version number in a DLL
 
Hi, How can I set up a version for a DLL file in c++, so I can see it when I right-click --> Properties --> Details I work with Visual Studio 2010 Than...
[1 reply] : You need to add a VERSIONINFO Resource to the project. It goes in a f... (by kbw)
Constructor Help (Deep Copy content)
 
Im not sure how to do this but I want wad2 to be created as a copy of wad1 so I can demonstrate a deep copy. Thanks guys! Here is my code. #include <iostrea...
[2 replies] Last: Solved! Thank you so much! That makes total sense now. (by johnv24)
Recursive Binary Array Search
 
Hello, I am having an issue with my code...here is what it is supposed to do: The function performs a binary search of the range [first, last] for itemToF...
[3 replies] Last: Hi The function takes two iterators(pointers) and not two arrays, two ... (by therockon7throw)
by M1A1
help with a c++ code writing
 
please I'm still new to the whole c++ language, and I was hoping someone would help me how to write this program please. here is the question ........ "...
[1 reply] : don't do double posts! (by Jikax)
by Kanj
About counterpropagation neural networks. I only need some advice, not code.
 
I'm working on a project which is mostly image classification using counter propagation neural network. I've got the program running but I don't have a clue abo...
[2 replies] Last: Thanks Peter87, I've got the code working now. I made two major change... (by Kanj)
cin failure on windows?
 
I've been programming for a while, but I am by no means a C++ master. I have been bugged about this for a while. Here is a simple program that shows a major fai...
[17 replies] Last: small update to _ValidateInput method to correctly validate applicatio... (by SIK)
Bjarne Interview
 
This is not a technical question. I found this interview Bjarne allegedly gave to IEEE's Computer magazine on 1998. http://harmful.cat-v.org/software/c++/I_di...
[7 replies] Last: Thanks firedraco, I kinda forgot actually posting the link... (by hanst99)
Help modifying a looping program to read data from a file?
 
Okay, so I have a lab exercise where I have to modify a program I already did in a previous exercise. I had to build a program which prompts for and reads a one...
[1 reply] : I don't think you should be prompting the user. The program should sto... (by vin)
Multiple inheritance problem (1,2)
 
I lay code first: struct foo1 { float x, y, z; }; struct foo2 { float x, y; }; struct fooN...// and lot of other foo, although they al...
[23 replies] Last: I'm not interested in technical discussions, I am talking about things... (by hanst99)
print files to file
 
In c, I have completely forgotten the correct syntax to use when trying to send a the list of files to a file. I know what it is in Unix, but not in c: ls ...
[no replies]
by jeezy
help with checking for upper & lower case & digit
 
what function can i use to check for uppercase lower case and digit in the bool validate(char* vpassword) function #include <cstdlib> #include <iostream...
[no replies]
review
 
okay just wanting a few minutes for someone to look over my code and see if i can improve on it. Like its presentation and functionality and if i made some mist...
[4 replies] Last: the 2nd main is ment to be a header i messed that up =D the part i wan... (by programmeraie125)
March 2012 Pages: 1... 444546474849
  Archived months: [feb2012] [apr2012]

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