Showing results 1 to 40 of 109
Search took 0.01 seconds.
Posts Made By: rajatC
Forum: C++ Jan 16th, 2008
Replies: 2
Views: 2,195
Posted By rajatC
How to change icon permanently of an exe file?

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: 1,524
Posted By rajatC
Re: how to format output at console?

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: 1,524
Posted By rajatC
Re: how to format output at console?

isn't there any other more efficient way or direct way to do that...??
Forum: C++ Jan 15th, 2008
Replies: 4
Views: 1,524
Posted By rajatC
how to format output at console?

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: 2,863
Posted By rajatC
Re: Compute distances between cities using c++

exactly...
this is what i was going to post...
Forum: C++ Jan 12th, 2008
Replies: 3
Views: 1,799
Posted By rajatC
Re: What is fork() function?

ok i got it..thanks to all for the help..
Forum: C++ Jan 7th, 2008
Replies: 16
Views: 1,420
Posted By rajatC
Re: string censoring

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: 1,420
Posted By rajatC
Re: string censoring

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 number...
Forum: C++ Jan 7th, 2008
Replies: 16
Views: 1,420
Posted By rajatC
Re: string censoring

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,262
Posted By rajatC
Re: ifstream problem ..

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,038
Posted By rajatC
Re: Select a number from an Array

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 u...
Forum: C++ Jan 7th, 2008
Replies: 16
Views: 1,420
Posted By rajatC
Re: string censoring

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 then i...
Forum: C++ Jan 7th, 2008
Replies: 8
Views: 1,262
Posted By rajatC
Re: ifstream problem ..

"\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 code...
Forum: C++ Jan 7th, 2008
Replies: 16
Views: 1,420
Posted By rajatC
Re: string censoring

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: 399
Posted By rajatC
Re: Regardind variable declaration

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: 6,583
Posted By rajatC
Forum: C++ Jan 6th, 2008
Replies: 18
Views: 1,169
Posted By rajatC
Re: how to open a file after running the program

hmm...correct i dont need array....
Forum: C++ Jan 6th, 2008
Replies: 18
Views: 1,169
Posted By rajatC
Re: how to open a file after running the program

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: 6,583
Posted By rajatC
Re: How to read/write to an MS-Excel file??

then how?? kindly elaborate. I really want to learn this.
Forum: C++ Jan 6th, 2008
Replies: 3
Views: 1,799
Posted By rajatC
What is fork() function?

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: 6,583
Posted By rajatC
Re: How to read/write to an MS-Excel file??

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...
Forum: C++ Jan 6th, 2008
Replies: 18
Views: 1,169
Posted By rajatC
Re: how to open a file after running the program

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,169
Posted By rajatC
Re: how to open a file after running the program

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,169
Posted By rajatC
Re: how to open a file after running the program

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 program...
Forum: C++ Jan 6th, 2008
Replies: 17
Views: 6,583
Posted By rajatC
Re: How to read/write to an MS-Excel file??

will "," advance the entry of anotherField to the next cell???
Forum: C++ Jan 6th, 2008
Replies: 6
Views: 1,198
Posted By rajatC
Forum: C++ Jan 6th, 2008
Replies: 4
Views: 398
Posted By rajatC
Re: need help with C++ coding

http://www.daniweb.com/forums/announcement8-2.html
Forum: C++ Jan 6th, 2008
Replies: 8
Views: 517
Posted By rajatC
Re: Please advise

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: 537
Posted By rajatC
Re: Still Not getting the right values passed

i am not getting even those...i m getting simple integers 0 or some calculated value....
Forum: C++ Jan 5th, 2008
Replies: 9
Views: 537
Posted By rajatC
Re: Still Not getting the right values passed

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: 681
Posted By rajatC
Re: random no.

dont throw solutions...directly
Forum: C++ Jan 4th, 2008
Replies: 3
Views: 501
Posted By rajatC
Re: Use of brackets for variable types

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: 1,968
Posted By rajatC
Re: Semi-Colon issues

click here (http://www.codersource.net/cpp_tutorial_inheritance.html)
for inheritance tutorial
Forum: C++ Jan 4th, 2008
Replies: 23
Views: 1,968
Posted By rajatC
Re: Semi-Colon issues

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 the...
Forum: C++ Jan 4th, 2008
Replies: 8
Views: 681
Posted By rajatC
Re: random no.

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 srand...
Forum: C++ Jan 4th, 2008
Replies: 8
Views: 681
Posted By rajatC
Re: random no.

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: 872
Posted By rajatC
Re: value and reference

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: 1,968
Posted By rajatC
Re: Semi-Colon issues

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: 1,968
Posted By rajatC
Re: Semi-Colon issues

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: 740
Posted By rajatC
Re: Strings

thanks for the suggestion..
Showing results 1 to 40 of 109

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:01 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC