Learner010 99 Posting Whiz in Training

I'm looking forward to the publication of your tutorial on Arrays

i'll publish it very soon whenever i have time to complete the tutorial.

Thanx.

Learner010 99 Posting Whiz in Training

Hello and Welcome to Daniweb.

Learner010 99 Posting Whiz in Training

i write code for something , now i want to have a printed copy of the softcopy output.How can i get hardcopy output using c++. i think i have to use to include some libraries to the program but i don't know where to get these library or if there exist any other method which don't require additional libraries.

i don't have any idea about it .?

Learner010 99 Posting Whiz in Training

nobody will here work for you. we will provide you assistance only in the case when you have made all possible effort to solve the problem.

so in order to get the solution you have to show your efforts here.

Learner010 99 Posting Whiz in Training

Hello and Welcome to Daniweb !

Learner010 99 Posting Whiz in Training

i don't have any idea about how to write Pseudo code but i think its like providing logic for the solution of the problem . try to understand the following concept of array(However i am still writing an tutorial on Array in C++, i will try to publish it whenever i have time to complete it)

for(index=0;index<size;index++)
{
    cout<<arr[index]<<endl;
}

and without loop :

cout<<arr[0];
cout<<arr[1];
cout<<arr[2];
cout<<arr[3];
cout<<arr[4];

actually loop allows us to repeat statements or a group of statements.So whenever think to execute statement(s) again and again then you should go through loop.

for more information on loop Click Here

Learner010 99 Posting Whiz in Training

I agree with Reverend Sir, That if somebody set Be Invisible in their profile then it does not mean that the user can't be seen in the chat participant list.

. I think if someone has chosen to participate in a ShoutBox then the other participants have a right to know this

i agree.

I see no reason why the invisible status should apply to chat.

i agree.

one more reason:
let's suppose there are 2 users in the ShoutBox and one user has set the profile as Be Invisible.
How can other user get the idea whether another one is in chat or left the chat? other user thinks that the another one has set Be Invisible that's why i can't see his name and he continues to chat and post the shoutbox even though the other one already left the chat.

so its my suggestion that whether user are visilbe or invisible they should be shown in ShoutBox List.

hope dani will work on it.

Learner010 99 Posting Whiz in Training

try this:

"select * from Tran where Acno=" & Val(TxtAcno.Text) & " and name='" & txtname.Text & "'"

hope this helps.

Learner010 99 Posting Whiz in Training

Member who check on Be Invisible are not seen in the participant list.And i have done this.

Learner010 99 Posting Whiz in Training

i am glad to see that somebody is really learning here.
if you really feel that the above explanation help you then mark solved this discussion

Learner010 99 Posting Whiz in Training

if any of the integers follow the other, print “ a follow b” otherwise print “***”

please explain this statement with appropriate example.And also don't forget to post your code here what you have so far for this.Then it will be easier for us to provide assistance.

Learner010 99 Posting Whiz in Training

i can't write code for you . But i can just give the idea .

just decalre 2 arrays like a[10] and b[10] assign values to them.And create one more variable of boolean type assign it a value false(Actually i am working with very old and also not good compiler which is TurboC++, there is nothing like bool.). So if you also working on TurboC++ compiler then i think you should create a integer type variable assign 0 to it.
then check each element of array with == operator.When condition is found true then assign True Or 1 to the variable.When you find the result of == to be false then simply assign False Or 0 to the variable and break the loop.

at last check if the variable contain True Or 1 , its mean both are same And Arrays won't be same when the variable contain False or 0.

Actually i am not sure whether c programing support bool data type or not. if it does not support then you can just assign 0 or 1 for False and True respectively.

now , you can do with it.

Learner010 99 Posting Whiz in Training

to print these pattern you just go through nested loop.
if you are not aware of loop then Click Here for more detail on loop.

Learner010 99 Posting Whiz in Training

thanks deceptikon,
i will consider goto in my upcoming tutorials.

once again thanks.

Learner010 99 Posting Whiz in Training

i am learning arrays in c++. and i think if you try for it then you can do it very easily.

as a hint
you should start loop from 0 to 29 and add values like
sum+=array[index]

if you put your efforts here it will be very easier for us to identify where you are going wrong. So , don't forget to put here your code.

Learner010 99 Posting Whiz in Training

thanks for expressing pleasure over the tutorial.

It would be great if you could have compared all the loops in one paragraph at the end.

do you mean conclusion at the end ?

ok, i will add conclusion very soon and will contact to administrators for such a updation.

Learner010 99 Posting Whiz in Training

Yesterday i completed my exercises on loop , that's why today i've decided to create a tutorial on loop in c++.

Loop

loop allows us to repeat a statement or a group of statements. When we want to repeat a single statement then it is not necessary to put curly braces But if we want to repeat a group of statements then it must be enclosed with curly braces. And it is a good practise to enclosed your loop body with curly braces.

c++ has three loop control structures

while loop
do-while loop
for loop
while loop

Structure of while loop is as follow

while(condition)
{
statement;
statement;
statement;
}

while loop is entry controlled loop because it first check the condition And if result is found True then statements get executed.

let's see example

int a=1;
while(a<=10)
{
cout<<a++;
cout<<endl
}

Output:

1
2
3
4
5
6
7
8
9
10
do-while loop

do-while loop is exit controlled loop because condition is evaluated after each iteration.

i=0;
do
{
cout<<++i<<"\t";
}while(i<10);

Output:-

1   2   3   4   5   6   7   8   9   10

do-while loop will execute a statement or a group of statement for atleast one time even the condition is Zero(false).

let's see example

do
{
cout<<"Hello";
}while(0);

Output:

Hello
For Loop

Syntax of for loop(syntax may be different based on the requirement , here i put what is normally used):

kal_crazy commented: Very nice!! +2
Learner010 99 Posting Whiz in Training

thanks for your reply
but would you relate this to conditional proposition?

Learner010 99 Posting Whiz in Training

i read about it somewhere else and i didn't understand it. that's why i am here seeking good explanatory answer so that i can understand the concept.

p       q       p->q
---------------------
TRUE    TRUE    TRUE    
TRUE    FALSE   FALSE
FALSE   TRUE    TRUE    
FALSE   FALSE   TRUE

I searched alot about it and they all say like if p then q. but this is not making concept clear.
i would like to see explaination on how results come in the above truth table

Learner010 99 Posting Whiz in Training
Learner010 99 Posting Whiz in Training

Happy Birthday Dani !

Learner010 99 Posting Whiz in Training

F# is a new language introduced by Microsoft , added in Visual studion 2010 and its later version.

Learner010 99 Posting Whiz in Training

but you can change the thread title?

Because he is one of the moderators.

Learner010 99 Posting Whiz in Training

errors exist due to following reasons:
exit() is already defined in stdlib.h . so rename it.

clrscr();
char y;
int croissant,tamis,tamiswcheese,falafil,cocktail,pepsi,water;
int c,t,tc,f,cock,p,w;
int c1,t1,tc1,f1,cock1,p1,w1;
int total;

declaration part take place before clrscr(); so write this as :

 char y;
 int croissant,tamis,tamiswcheese,falafil,cocktail,pepsi,water;
 int c,t,tc,f,cock,p,w;
 int c1,t1,tc1,f1,cock1,p1,w1;
 int total;
 clrscr();

also remove opening curly brace at line 188.

c1=cocktail*c; shoule be cock1=cocktail*c;

remove line 65 and put it after line 139 put this:

total=c1+t1+tc1+f1+cock1+p1+w1;

Learner010 99 Posting Whiz in Training

hello and welcome to daniweb.

Learner010 99 Posting Whiz in Training

after getting bored with turbo c++ ide , now i have installed codelight ide for c++ and i don't know how to use it.

well , i have done following

created a workspace named "hello_world"
created a project named "hello"

while creating a project i was asked to give a name to the project and select compiler . by default it was gnu gcc was selected and i created the project.

there i saw a file with name main.c and i wrote a simple c program to print "hello world" at console window and when i run the code then console window appeared saying "press any key to continue" it did not display "hello world".

Learner010 99 Posting Whiz in Training

there is no error and its working well.

when you run the program and it takes input and gives result and if console window close immediately , you can see console window (ways may be different from compiler to compiler).

or
in main()
you can add some function which are useful for getting input.
normally getch(); is placed at the last.

so use this

int main()
{
    int number ;
    printf("Enter a number to reverse: ");
    scanf("%d",&number);
    printf("\nReverse of entered number is = %d\n", result (number));
    getch();
}
Learner010 99 Posting Whiz in Training

Are you generating this file programmatically?

No, i am not generating the file programmatically.

this is a line number 1_p1
this is a line number 2_p1
this is a line number 3_p1
this is a line number 4_p1

actually there are thousands of lines which has _ as delimiter.
it means that a particular word written after _ will be the heading of the paragraph. ok.

so i want to set these lines as

p1 //paragraph heading

this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

i think now i have explored the problem exactly.

Learner010 99 Posting Whiz in Training

i have a document written in MS Word 2003 and the structure of the document is as

this is a line number 1_p1
this is a line number 2_p1
this is a line number 3_p1
this is a line number 4_p1
this is a line number 1_p2
this is a line number 2_p2
this is a line number 3_p2
this is a line number 4_p2
this is a line number 1_p3
this is a line number 2_p3
this is a line number 3_p3
this is a line number 4_p3

now here i want to display these information as

p1
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

p2
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

p3
this is a line number 1
this is a line number 2
this is a line number 3
this is a line number 4

here please note that every line consist of symbol _ as separator.

Learner010 99 Posting Whiz in Training

welcome to daniweb

Learner010 99 Posting Whiz in Training

,it also uses silent installers i think

if i don't have silent installers ?

Learner010 99 Posting Whiz in Training

welcome

Learner010 99 Posting Whiz in Training

just enjoying with cold coffee.

Learner010 99 Posting Whiz in Training

still i am not able to create such a disk.

any solution ?

Learner010 99 Posting Whiz in Training

first off , i am confused that the thread is not what title depicts.(title is not appropriate)
i learned loops yesterday and that's why i can do that but i won't write code for you because if i do so then you won't try to think about logic.

if you really want to get helped then you must post your attempts here. then i will 100% help you.

Learner010 99 Posting Whiz in Training

i want to convert numbers into following pattern

if i input .33 then should produce 1/3

here i am not asking for the exact answer but i just need a good logic to solve this problem.

Learner010 99 Posting Whiz in Training

hello and welcome to daniweb.

Learner010 99 Posting Whiz in Training

would you please provide me any good link which can help with database(MS Access) issue ?

Learner010 99 Posting Whiz in Training

i have a question that is this possible to create database application through c++ ?
don't be confused in database application and file oriented application .

if yes, then how can we create database application ?

Learner010 99 Posting Whiz in Training

hello and welcome to daniweb.

Learner010 99 Posting Whiz in Training

instead of printing an x, print a space.

yes. you have to print some spaces using another loop. but try it yourself.

Learner010 99 Posting Whiz in Training

it is saying that you can add only silent installer.

i don't know what is silent installer ?(is it a installer which never pop up while installation ?).

so , would you suggest any good software which offer to add all kinds of installer?

thanks.

Learner010 99 Posting Whiz in Training

today i saw that someone was installing window 7 along with some useful application.
i mean that he modified window 7 iso and added some useful application to it and these all application automatically installing while window 7 installation.

how can i modify window iso in my own way.(so that i can add useful application which i require)

Learner010 99 Posting Whiz in Training

i am confused with the title of the thread.
please define your problem clearly ?

Learner010 99 Posting Whiz in Training

what did you do to achieve that?

does your program will ask for old password when you are going to change password ? if so , then i think you have to work with files to store old password. on the other hand, if it does not ask for previous password then you can do that very easily.

Learner010 99 Posting Whiz in Training

good night to dreams .

Learner010 99 Posting Whiz in Training

its optional not compulsary.

Learner010 99 Posting Whiz in Training

such nice responses on this little tutorial encourage me to learn more c++ in quick way and write more tutorials on it.I will continue to strive for nothing short of the best.

thanks.

Learner010 99 Posting Whiz in Training

ok.
thats may be due to language problem as my english is not so great.

i will contact to a moderator to modify it.
thanks for reading this article.

Learner010 99 Posting Whiz in Training

that mean when a<10, a/10 will equal to 0?

yes , if you don't use any type casting then it will give result 0.