Forum: C++ Jan 16th, 2008 |
| Replies: 2 Views: 4,117 hi!
i want to change the icon of an exe file. And the file will be moved from computer so the icon must be embedded in the exe file...is there any way?? the exe file is a daily use application so i... |
Forum: C++ Jan 16th, 2008 |
| Replies: 4 Views: 2,881 by efficient way i didnt point to the complexity...just it was looking like playing with console...didn't look a good method...but as u are saying that that's the only way...then ok...i will do that... |
Forum: C++ Jan 15th, 2008 |
| Replies: 4 Views: 2,881 isn't there any other more efficient way or direct way to do that...?? |
Forum: C++ Jan 15th, 2008 |
| Replies: 4 Views: 2,881 hi friends...
i have some doubt regarding the output at the console.
what we generally have is that the output is written on the console and the cursor moves always forward. But what if in some... |
Forum: C++ Jan 15th, 2008 |
| Replies: 21 Views: 3,892 exactly...
this is what i was going to post... |
Forum: C++ Jan 12th, 2008 |
| Replies: 3 Views: 3,659 ok i got it..thanks to all for the help.. |
Forum: C++ Jan 7th, 2008 |
| Replies: 16 Views: 2,080 i didn't google for it but i read it in the library files of my dev-cpp compiler...i have seen those three methods..but i am not very much familiar with the concept of iterators....
what do i need... |
Forum: C++ Jan 7th, 2008 |
| Replies: 16 Views: 2,080 http://www.daniweb.com/forums/post502988.html#post502988
after this i am afraid of posting anycode here....
i just wrote if((year%100==0 && year%400==0) || (year%100!=0 && year%4==0)) in post... |
Forum: C++ Jan 7th, 2008 |
| Replies: 16 Views: 2,080 yes i am using c++ strings...but i tried that function.. it doesn't erase one character but it erase the following part of the substring...
for eg .
a="abcdefgh"
if i use a.erase(4) it doesn't... |
Forum: C++ Jan 7th, 2008 |
| Replies: 8 Views: 1,608 which one of them is equivalent to pressing enter at the console...means if i wanna check when enter is pressed...which one of them should i compare with... |
Forum: C++ Jan 7th, 2008 |
| Replies: 7 Views: 1,643 what are you using to generate randome number ??? the array or the rand function???
what do u exactly want??
again you are generating random numbers and comparing them to array element?? what do... |
Forum: C++ Jan 7th, 2008 |
| Replies: 16 Views: 2,080 i have used shifting the characters to left if a matched character in s1 and s2 (two strings) is found...
example..
s1="new york yankees"
s2="absolutely"
when a is found in s1 at position 10... |
Forum: C++ Jan 7th, 2008 |
| Replies: 8 Views: 1,608 "\r" is for enter key and "\n" is for line feed...correct me if i am wrong..
and if not please tell me what is a line feed?? why it is used with "\r"??
i also used it in assembly language the... |
Forum: C++ Jan 7th, 2008 |
| Replies: 16 Views: 2,080 i do not understand what have you done here...
if (gPos != string::npos){
while (gPos != string::npos){
newStr = firstStr.substr(0,i);
... |
Forum: C++ Jan 7th, 2008 |
| Replies: 2 Views: 592 new keyword is used for dynamic memory allocation..that's all i see
i have seen the second type of declaration in java....haven't seen in c++.. |
Forum: C++ Jan 6th, 2008 |
| Replies: 17 Views: 12,081 |
Forum: C++ Jan 6th, 2008 |
| Replies: 18 Views: 1,679 hmm...correct i dont need array.... |
Forum: C++ Jan 6th, 2008 |
| Replies: 18 Views: 1,679 what do you mean by not properly?
are you talking about seed i ?? well i wrote this program just to learn about writing to excel and opening it...i used rand function to save myself from typing and... |
Forum: C++ Jan 6th, 2008 |
| Replies: 17 Views: 12,081 then how?? kindly elaborate. I really want to learn this. |
Forum: C++ Jan 6th, 2008 |
| Replies: 3 Views: 3,659 I recently saw this function in one of the online test paper i was going through. And i came to know that this is a standard library function but i dont know anything about it. And it is related to... |
Forum: C++ Jan 6th, 2008 |
| Replies: 17 Views: 12,081 ok fine..i tried it and it is working thanks for the help...i am successfully able to output to the file but there is still problem while reading it....
here is my code....
#include<iostream>... |
Forum: C++ Jan 6th, 2008 |
| Replies: 18 Views: 1,679 i tried it..and it is working absolutely fine...my code is
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ofstream fout("excel.csv");
int a[20]; |
Forum: C++ Jan 6th, 2008 |
| Replies: 18 Views: 1,679 yeah i know that....i am trying to learn that also..
here just tell me how to open a file in excel or word through program.. |
Forum: C++ Jan 6th, 2008 |
| Replies: 18 Views: 1,679 thanks for the help...all that you told me is working fine....
now i have another problem...i want to open file with some other programs...like MS word,MS excel etc...
so what should be the... |
Forum: C++ Jan 6th, 2008 |
| Replies: 17 Views: 12,081 will "," advance the entry of anotherField to the next cell??? |
Forum: C++ Jan 6th, 2008 |
| Replies: 4 Views: 552 http://www.daniweb.com/forums/announcement8-2.html |
Forum: C++ Jan 6th, 2008 |
| Replies: 8 Views: 732 practice is also necessary...keep practicing small problems on the topic you have just read...it will give you better understanding...
simply reading from a book is not sufficient... |
Forum: C++ Jan 5th, 2008 |
| Replies: 9 Views: 773 i am not getting even those...i m getting simple integers 0 or some calculated value.... |
Forum: C++ Jan 5th, 2008 |
| Replies: 9 Views: 773 Actually i am not getting what exactly your problem is? but i read your program and i found that there are a lots of loopholes...and i must not give you the required result...so tell me if it is... |
Forum: C++ Jan 5th, 2008 |
| Replies: 8 Views: 897 dont throw solutions...directly |
Forum: C++ Jan 4th, 2008 |
| Replies: 3 Views: 674 here it is not effecting where you put the brackets...but take care of brackets when you want to typecast the result of an expression....
example...
Dayoff= (Days)((x+y-5)*z); |
Forum: C++ Jan 4th, 2008 |
| Replies: 23 Views: 2,758 click here (http://www.codersource.net/cpp_tutorial_inheritance.html)
for inheritance tutorial |
Forum: C++ Jan 4th, 2008 |
| Replies: 23 Views: 2,758 i think you havn't come across Inheritance yet...
take a tutorial on Inheritance...the class can be a subclass of class points....then class points is class the root class,or parent class
and... |
Forum: C++ Jan 4th, 2008 |
| Replies: 8 Views: 897 Narue is correct...
you will have to use srand function to randomize the randome number generation...which takes an unsigned integer number as a seed....but take care of one thing....if you use... |
Forum: C++ Jan 4th, 2008 |
| Replies: 8 Views: 897 rand() function just generates random number. it is us who have to decide the range in which we want the random number to be...
and taking mod is the easiest way to confine it...
general form is... |
Forum: C++ Jan 4th, 2008 |
| Replies: 10 Views: 1,087 pass by value...
it just send the value of the variable(one memory location) to the function...and that value is stored in another variable(another memory location) that is declared in the... |
Forum: C++ Jan 4th, 2008 |
| Replies: 23 Views: 2,758 well that's not the work of the function of that class....means this work has to be done in main and objects will be created there only ....may be an array of objects of class Point
you must ask me... |
Forum: C++ Jan 4th, 2008 |
| Replies: 23 Views: 2,758 well that's good that your program is working but i would suggest u to call the setInput function from main
you can also leave the body of the constructor empty....the purpose of such kind of empty... |
Forum: Java Jan 4th, 2008 |
| Replies: 6 Views: 949 thanks for the suggestion.. |