Jishnu 160 Posting Pro

So I do whatever they ask me but I don't get the point of this.

The point is, that they are meant to teach C++ using example codes.

How do I put this writings to work?

You'll come to realize that as you go on pursuing C++. As of now, as a newbie, take my word that you'll be able to program almost about anything and everything; i.e. once you master C++.

Ok I got the examples but how do you put it to work?

Those examples are probably meant only for educational and teaching purposes. As you go on, you'll be able to write more application-specific code.

Jishnu 160 Posting Pro

modify the program siutably so that once the calender for a particular year has been displayed on screen , and year has been displayed on the screen,then using arrow keys the user must be able to change the calender in the following manner:

Modify which program?

Jishnu 160 Posting Pro
printf("how many words u wanna sort\t");
	scanf("%ld", &num);
	getchar();

	words=(char *)calloc(num, sizeof(char));

Put the above statements in the main() function and the code should be fine.

EDIT: You'll also adjust the scope of some variables. Do that, too. Post any further problems you have.

Jishnu 160 Posting Pro

Go through all these tutorials first.

Jishnu 160 Posting Pro

No.

That's not what we do. The way it works is *you* post your code, and also post up a description of your problem or error with that code.

We will take a look at it and suggest ways of fixing it.

We don't *do* your homework, we help you with *your* code problems.

Exactly. Also see the article 'How to ask questions the smart way' over here.

Jishnu 160 Posting Pro

Check (on the site from where you downloaded this file) whether this header is VC++ 6.0 compatible.

Jishnu 160 Posting Pro

Does the header file itself compile?

Jishnu 160 Posting Pro

The simplest method is to use brute force. Develop your first program using that, then look out for further optimizations.

Jishnu 160 Posting Pro

Here's another article that might be of help.

Jishnu 160 Posting Pro

Which header file library are you using?

Jishnu 160 Posting Pro

"
e:\program files\microsoft visual studio\vc98\include\lt360lib.h(182) : error C2146: syntax error : missing ';' before identifier 'LT360LIB_LinkedCnt'
e:\program files\microsoft visual studio\vc98\include\lt360lib.h(182) : fatal error C1004: unexpected end of file found
"

If you've got the header file from a genuine source, the only possible problem is that you might not have placed the header file in the appropriate path; i.e. e:\program files\microsoft visual studio\vc98\include\

EDIT: Please give relevant names to your threads from now onwards.

Jishnu 160 Posting Pro

Check out this.

Jishnu 160 Posting Pro

This may help you.

Jishnu 160 Posting Pro

Make TextBox's property :
MultiLine = True
ScrollBars = 3 ' Both

For just a horizontal scrollbar make ScrollBars=1. No need for making it MultiLine if you don't need the vertical scrollbar.

Jishnu 160 Posting Pro

i'm still stuck (mainly cos i'm not using ADOOB).

Then, use it ;).

Frankly, I couldn't find out the solution to your problem from your post. Post the entire code if possible/feasible.

Jishnu 160 Posting Pro

Use these statements inside the area function.

area = sqrt( s * (s-s1) * (s-s2) * (s-s3) );
return area;
Jishnu 160 Posting Pro

Hi David, Use code tags as I've done here: You probably added an extra space in

[/code ]

'To update a database on say Form1 from Form2, precede the same code with the form name, i.e., on Form1 use this code:
Private Sub Command1_Click()
Form2.Data1.Recordset.Update
Form2.Data1.Refresh
End Sub
Jishnu 160 Posting Pro

i-card hav speicifc format with a image

Do specify that format of that I-card. Manipulating only images is easily done in Java. Or you want to do something else?

Jishnu 160 Posting Pro

Another 'fossil' thread bumped up right through :D

Jishnu 160 Posting Pro

However, I need to do this using functions, which I am totally lost... Any help would be greatly appreciated.

would like help doing this using functions, and to check if my logic is correct are all of these triangles? And my values for area are not correct, I know I did something wrong...

Instead of

area = sqrt(s-s1) * (s-s2) * (s-s3);

use

area = sqrt( s * (s-s1) * (s-s2) * (s-s3) );

That would give you the correct value of the areas. Try building the same with functions if you want to do so. Post any further problems you encounter.

Jishnu 160 Posting Pro

I m doing it with adjacency list.
done with adjaceny list but dont know how to find the shortest path.

Refer this. This is a standard problem for AI and such fields but it is related to what you're seeking. You may get some help from it.

Jishnu 160 Posting Pro

Go to Project-->Properties. Click on the Make tab. There you can enter version no., version info., application etc. Okay?

Jishnu 160 Posting Pro

Like yeah...

Which means?

Jishnu 160 Posting Pro

AD already answered that:

The second example is ok because string literals are not put on the stack but reside in global space (the heap). You can safely return objects or pointers to objects that reside in the heap because they are unaffected when a function returns to its caller.

Jishnu 160 Posting Pro

I wanted to know that does anybody can provide me the source code of :
how to find the shortest path between different countries.?

Google for the "Traveling Salesman Problem". You might come across some help.

Jishnu 160 Posting Pro

Where should I state my do-while loop and how do I go about counting the score to be displayed as three separate scores " wins, losses, ties" do I need to ++ each case as a win,loss,tie?

Insert the switch(userChoice) into a do-while loop and specify a break condition for the same. You'll have to increment the wins, loses and ties in the different cases of switch(computerChoice). Hope this helped.

Jishnu 160 Posting Pro

If you don't get any reply after about 5 days, you probably won't get any afterwards. Check out this.

Jishnu 160 Posting Pro

Edited: Oh, I didn't realize earlier that this thread was as old one.

I'd done PC to PC IM earlier. For that, you'll have to use socket programming, multi threading, exception handling and AWT. If you know all these topics, then post your specific problem and you'll get help.

Jishnu 160 Posting Pro

Try Google.

Jishnu 160 Posting Pro

i need to take some details like company name, contact no. and address during the installation of the project itself.

If you want to add those details, go to Project-->Add Form and select About Dialog. Specify the information there and link it with the menu option Help-->About in your application using menu editor.

Jishnu 160 Posting Pro

Not

infile>>s1; s2; s3;

But

infile>>s1>>s2>>s3;

After that, check your program for bugs and return if you need any help. And yes, use code tags for posting your code from now onwards.

Jishnu 160 Posting Pro

vijayan121 has just provided the functions, you'll have to adapt them according to your main code and use them. His functions will compile, but how do you expect them to run?!

Jishnu 160 Posting Pro

Use code tags :D

// for ( int i = 0; i < 20; i++ )//initializing the elements of array n to 0 as long as the elements are less than 20 add 1
// n[ i ] = 0;

Why have you commented intialization statements?

Jishnu 160 Posting Pro

now how to calculate elasped time and accuracy

Refer my previous post. And use code tags. Don't use getch() in the while loop. Perform the storing and comparing operations there. And at the end of it all calculate the time elapsed as described earlier. Also, use this

while((letter=getche())!='\r')

instead of your statement.

Jishnu 160 Posting Pro

Oh, okay. I'm sorry.

Jishnu 160 Posting Pro

I know that if I use "r+" in my popen, I should be able to read and write, but it segmentation faults whenever I add the "+", so I assume somehow it doesn't work for me.

Oh! It's not biades towards anyone ;). There must be some other problem. Refer 12.30 of http://measure.feld.cvut.cz/usr/staff/smid/faq/C_lang.html

Hope this helps.

Jishnu 160 Posting Pro

Ditto. You've just typed your assignment :D

Jishnu 160 Posting Pro

Use the clock() function available in time.h twice. Once for starting the time and the other for stopping it. Take the difference and you have the time elapsed. Errors can be simply calculated by functions like strcmp.

Jishnu 160 Posting Pro

Other IDEs for the same are Win-AVR, ICC-AVR, CodeVision AVR etc. Try them.

Jishnu 160 Posting Pro

The solution is already given in the previous posts... Wonder why the OP didn't get back.

Jishnu 160 Posting Pro

Another 'fossil' thread bumped right through :D

Jishnu 160 Posting Pro

Nice one :)

Jishnu 160 Posting Pro

Mark the thread as SOLVED if it is so.. That is the proper procedure over here.

Jishnu 160 Posting Pro

VB 6.0 support only access97

On my XP, it supported Access 2003.

After making a package, i can able to give facilities to add a menu, button and also command to the buttons

This means that you want the user to add his own functionalities and add them in the menus. Is it? Do you want the user to write the code for the new features? How will he do it? Do you plan to give your source code to the user? I don't understand.

Jishnu 160 Posting Pro

in office Xp then convert into Access 97

Why do you need that? Why not work in the same version you want to run it on?

Also i can able to add sub menu in the menu editor and write relevant command in the submenu and execute in the same package.
can anybody help me?

Have you done that, or you're planning to do so?

Jishnu 160 Posting Pro

Though I may be wrong, I think that code won't be compatible. You'll have to learn VB. And that's not much difficult. Come on!

Jishnu 160 Posting Pro

Sorry, I didn't get what particular problem you're facing.

Jishnu 160 Posting Pro

Use the ADODB control avilable in VB6. It basically deals with all the recordset in a MS Access database. Google for more info on the same. Hope this helps :)

You may also refer to the tutorial given at http://www.daniweb.com/forums/thread41057.html. Good luck!

Jishnu 160 Posting Pro

As you've probably done, keep two different forms - one would be your main form (the startup form) and second would be for updating the database. You can for example keep a password protection for accessing the second form so that the database is updated by authorized people only.

Jishnu 160 Posting Pro

If so, do mark the thread as 'Solved'.