Forum: C++ Aug 10th, 2009 |
| Replies: 3 Views: 556 Question: Declare a pointer to a function taking an int argument and returning a pointer to a function that takes a char argument and returns a float.
I did code as follows. But it is giving... |
Forum: C++ Sep 5th, 2008 |
| Replies: 4 Views: 832 Memory allocation is not my problem. I want to push in separate vectors. How i have to push into vectors in line no 18 and line 24.. Even i corrected the code with new operator, but for push into... |
Forum: C++ Sep 4th, 2008 |
| Replies: 4 Views: 832 I have the following function. in this function i am not able to push back in vector.
I will explain how it works. if same f_pin will comes in the second iteration compared to first iteration of... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 2 Views: 1,011 I am reading 4 bytes in binary file and stored in some variable named as *tmpbuf.
i am printing this variable in decimal value like this.
printf("%d",*tmpbuf);
But now what to do is i want to... |
Forum: C++ Jul 18th, 2008 |
| Replies: 3 Views: 407 The following is giving output as follows
String:Astro.cfg
Fail
If buff is Astro.cfg, it has to give success output, but it is giving fail. I want to print Success.. Please guide me regarding... |
Forum: C++ Jun 10th, 2008 |
| Replies: 2 Views: 539 thanks i have put vout.resize(vin1.size()); before transform line. now the code is working fine. |
Forum: C++ Jun 10th, 2008 |
| Replies: 2 Views: 539 The following program is giving error as follows. please get me the solution how to debug this error.
Error:
Debug Assertion Failed!
Program: ...
File: d:\program files\microsoft visual studio... |
Forum: C++ Jun 10th, 2008 |
| Replies: 2 Views: 745 I wrote the code for Arithmetic, relational and binary operations. Here i have intilaised all inputs. I want to give inputs from keyboard instead of intialisation or direct Push_back from loop. How... |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 879 I think this code is too complicated. I want to do logic operations by using simple algorithms. Is there any simple methods to show logical opertaions ie logical_and, logical_or and logical_not |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 879 i want to write code by using any of the algorithm not using array subscript. What is compose2 algorithm. What is the syntax for this? i want to use like this. But the following code is not... |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 879 Container V1: 1 2 3 4 5 6 7
I want to print the elements which are greater than equal to 3 but less than 6. How to do this using Standard template library functions..
We have logical_and,... |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 582 yes i studied those tutorials. Actually i am working on japanese language. Now i got some examples which was in japanese page (http://www.s34.co.jp/cpptechdoc/reference/stl_samples/functional.html).... |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 582 |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 582 I am not getting with those examples. It looks difficukt to understand and there are no example programs. They have used iota functions which is not working in my system even if i include... |
Forum: C++ Jun 9th, 2008 |
| Replies: 6 Views: 582 Hi,
I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using... |
Forum: C++ Jun 9th, 2008 |
| Replies: 2 Views: 464 Thanks , I got it. I was missed last parameter.
replace_if(V2.begin(),V2.end(), //range
bind2nd(less<int>() ,5),0); //replace criterion
... |
Forum: C++ Jun 9th, 2008 |
| Replies: 2 Views: 464 Hi,
I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be... |
Forum: C++ Jun 6th, 2008 |
| Replies: 8 Views: 1,584 #include<iostream>
#include<vector>
#include<deque>
#include<list>
#include<algorithm>
#include<functional>
#include<conio.h>
using namespace std;
int main()
{ |
Forum: C++ Jun 6th, 2008 |
| Replies: 8 Views: 1,584 i am getting error in following program. what is "iota". Why it is giving an error in the following program
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int... |
Forum: C++ Jun 6th, 2008 |
| Replies: 6 Views: 640 I am very very sorry. I have not yet read link (http://www.sgi.com/tech/stl/table_of_contents.html) which you posted in previous thread (http://www.daniweb.com/forums/thread127645.html). I am... |
Forum: C++ Jun 5th, 2008 |
| Replies: 6 Views: 640 yes i am reading The C++ Standard Library - A Tutorial and Reference. I want to the program on aritmetic/relational/logical (etc) operations using STLs. In the above said book Which topics will help... |
Forum: C++ Jun 5th, 2008 |
| Replies: 6 Views: 640 Thanks for quick reply. I got output.. |
Forum: C++ Jun 5th, 2008 |
| Replies: 6 Views: 640 I want to run the following code. Its giving error as "Fatal Error" not able to open 'print.hpp' . No such file or directory.. I didn't understand what is #include "print.hpp". what type of file it... |
Forum: C++ Jun 4th, 2008 |
| Replies: 4 Views: 523 why we have to use following code in STL programs. why it is needed.
use namespace std; |
Forum: C++ Jun 4th, 2008 |
| Replies: 4 Views: 523 Hi,
How to do arithmetic and relational operations using Standard Template Library.(STLs).
Could any one please guide me regarding this. I am new to Standard Template Library. |
Forum: C++ Jun 3rd, 2008 |
| Replies: 2 Views: 467 Hi,
I dont know much about Standard template library(Vectors, Lists, Deque).
I want to do one Program which is as follows.
Write a program to create a data bank which holds the operator and... |