General C++ Programming - August 2011 (Page 17)

Image with fixed tag
 
Hi guys, here is the problem... i have a stl image and i want to create a tag with a name inside a square, my problem is.... i want to create a 2d square in a 3...
[no replies]
by Chathu
Type Casting !! What Is The Prob. With This Code. Plz Help.
 
I Can't Figure Out Why This Typecasting Method Gives An Error When Compiling. I Think My Code Is Correct. #include<iostream> #include<iomanip> #include<ioma...
[6 replies] Last: It is not giving you a float value because your function returns an in... (by vince1027)
by Chathu
Can A Function Return More Than Two Values?
 
Hi.. Remember I did Return Two Values In C,But How Can We Return Two Values In C++? I Googled It. But Couldn't Find A Proper Answer :( double double fin...
[17 replies] Last: Thanks All:) (by Chathu)
help with classes, base class and dervied class
 
hi there, below is project requirement, i have just complete the code, but getting error message that 'damage' : is not a member of 'Gun' . PLS Help!!! 1....
[5 replies] Last: oh thanks..this was a typo....other than sloppy is everything else OK. (by john369)
Binomial Program errors
 
I am trying to write a program to calculate binomials, but I keep getting errors repeatedly. Any help would be nice. Here is my code: #include <ios...
[9 replies] Last: Can you write the equation you want to solve, using the style ne555 us... (by andywestken)
Point of Sales
 
I'm trying to make a simple point of sales program... the problem is "what if the customer wants to add another order?" how can i store his/her first order? st...
[2 replies] Last: thank you very much!..thank you for posting the link....i'll study tha... (by raprap17)
Standard Compliance Check
 
I have the following that works fine with VS2010, but something tells me it's too good to be true standard compliant. This code is something of a refactoring...
[5 replies] Last: Thanks, helios, andy. (by closed account 3hM2Nwbp)
by rudy01
cross-platform object file
 
Hi, I have a very simple c++ code, and it is using all standard static libraries, which I believe are all defined on Unix/Linux and Windows. I have developed...
[12 replies] Last: I also asked this in boost mailing list, but hasn't got any answer! h... (by rudy01)
Individual bytes in an int
 
Does anyone know how to separate the individual bytes in an int? int is 4 bytes long and I want to take those bytes and put them into a char .
[18 replies] Last: Sorry I got upset. (by Duthomhas)
I am getting some memory errors and don't understand.
 
I am taking C++ for the first time and using Visual Studio to compile the programs. Thus far I have been able to get a grasp of the errors that are occuring in ...
[12 replies] Last: I am having difficulty finding any other options and I know that the ... (by shacktar)
Problem in using database
 
Hi guys I'm trying to access data base(SQL server) using c++, I understand that i must use ado to do this but every time i try to test a new code some error wi...
[no replies]
Passing Multidimensional Arrys in functions as const
 
I know that this topic has been discussed in other posts, but I have an additional question concerning the case when you want to pass a nested new created array...
[7 replies] Last: if function declaration is func(int ***p) { //inside the function g... (by umadevi)
Guys I want your help on this please with filtering array
 
I want to enter a value each time to the originator and then delete every time the items in array which exist in the originator example: originator ={0},arra...
[1 reply] : you can have a Counter variable to denote the index of filtered Vari... (by umadevi)
Does the size of an array of pointers to char matter?
 
Say you have char *words = {"louie", "douie", ......"movie"} I get a runtime error "Violation Reading location 0*0000000". When I reduced the number of wor...
[5 replies] Last: Regarding space : - Your array is a local variable, so it's stored on... (by andywestken)
Text Parser
 
Hi everyone, I am building a computer program in my free time that will hopefully become a full on program language translator. However right now all I am tryin...
[3 replies] Last: Each line end with "enter character" . Using this we can find Line ... (by umadevi)
C++OOP Question
 
Hey I am not too sure what the s.readClasses() is for? am I suppose to make a class above with this with name s in order to use it? I just need an explanation...
[3 replies] Last: s.readClasses() ; In this readClasses is the function in student c... (by umadevi)
Trouble getting colors to show on 2 triangles with DirectX
 
Hi, I am working from a book to build a DirectX program that displays 2 triangles. One is 1 solid color and the other is a blend of 3 colors. I have copied the ...
[2 replies] Last: Try using a DWORD for your vertices colour type. Wazzak ... (by closed account zb0S216C)
Problem in Template
 
Error Occured: no matching function for call to `search(int)' as I gave the def of search(Object data) using template so why it is not recognizing. I impleme...
[4 replies] Last: stupid mistake:( Sorry people but thanks (by Umair Khan)
Skipping the iteration of the outermost loop
 
for(int m = 0; m < non_redundant_number; m++){ for(int n = 0; n < KTSIZE; n++){ if(strcmp(tokens , Look_Up_Table_KeyWords ) == 0) {continue;} } ...
[1 reply] : Couldn't you just use a break; to break out of the inner loop which wo... (by firedraco)
Default Parameters Set To Other Parameters
 
void Function(int p1, int p2); //Here is a simple function void Function(int p1, int p2=5); //Here is a simple function with a default parameter void F...
[8 replies] Last: 3 cheers for optimization! good to know! :) (by Xploitz)
August 2011 Pages: 1... 1516171819... 29
  Archived months: [jul2011] [sep2011]

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