Monday, May 24, 2010

Writing a program in c++ a file which contains 30 record of students with index?

Yeah, and array would be fine if you know you'll have no more than 30 students. But why have you posted this noun phrase masquerading as a vague question? Are you just hoping someone will write your code for you? If so, I suggest you start doing your own work, developing your skills, and becoming someone who can actually do things. Otherwise, you'll end up a radio-wallah living on the landing between the 2nd and 3rd floors of an old building in Kolkata.

Writing a program in c++ a file which contains 30 record of students with index?
Use an array.
Reply:use array to get the datas...


where as to get and diaplay them use for or ehile loops to perform...

gerbera

How can I access the session or application object in my .cs file. I am using C# & asp.net 2.0?

I am not able to access the session or application object in my .cs file. I am using C# %26amp; asp.net on .net 2.0.Its not showing Session or Application object in the editor drop down list too.

How can I access the session or application object in my .cs file. I am using C# %26amp; asp.net 2.0?
Is you CS file part of the web application or is it in another class library?





If it is in another class library you should reference the System.Web dll first then in your code you will be able to access the Session through:


System. Web. HttpContext. Current. Session["key"]





If you CS file is in your web application you just access the object


Session["key"]





In both cases you'll have to cast to your type from object.





Hope this helps.


Can I make a C program in a seperate file?

I am a beginner in C. I am 14 years old. My question is I use TurboC. I write a simple program eg:to print text. Then I have to compile and run it. Can I make the program like an executable file so I can run the program by just clicking the file.


Thanks

Can I make a C program in a seperate file?
i work with microsoft visual c++ and as far as i know u cant do it that way..becuase the file will run through the program in which u wrote it with...so u just have to use your program complie it and run it...i dont think there is a way to make it a clickable file.....when u go to your saved work and open it, it just opens it in the program u wrote it in..so the answer to your question would be no
Reply:Select Option Menu then Select Directory sub-menu.


Now you will see a window ask you four path (1. Include 2. Lib 3.Output 4. Source. set source Path, where you want to save your executable file. Like C:\MyExe or D:\MyName


now write your program then compile it and press F9 Function Key, your executable file will store at your desire location.


434SOFT
Reply:When you compile the program, it creates an executable. When you run it, you are effectively "clicking" the executable. Windows will allow you to run a DOS program by double clicking, but the window that it creates will disappear immediately after execution (so you'll have to code your way out of that one). Linux won't let you do this, but if you were a Linux user then you'd probably know that ;)


Mshta.exe - I have this file in C:\Windows\System32 and C:\i386. Comodo reported it to me for ... [read on]

... requesting Direct Monitor Access, and Direct Keyboard Access. I blocked these, but should I allow them? What is the file, and why does it need these things? Could it be to do with my Sony Mobile software that I installed recently? Nothing on answers about mshta.exe so any help would be great...





File is also found in my Windows\ie7 and Windows\System32\en-US as mshta.exe.mui





I have a Dell, and I believe System32 is used slightly differently with Dell PCs.

Mshta.exe - I have this file in C:\Windows\System32 and C:\i386. Comodo reported it to me for ... [read on]
Mshta.exe is a part of Microsoft Windows Operating System which is needed to execute .HTA files. This program is a non-essential system process. You can cancel it if you want, but it'll probably pop back up since Windows is making it run. Either way, it's not a virus or anything.
Reply:C:\i386...this is part of your systems files. Now if the program you installed integrated itself into your systems files then that's what happened. You'll know if that's the case when you don't have any functionality to the program you installed because you blocked if from having access...
Reply:These will work. I've been using them for a few years now on my own computers.


As a software developer and tester, I've had to try them all.


They are all compatible with each other and Windows XP and Vista.


You will never have to buy software again.





Computer Maintenance





Advanced WindowsCare V2 Personal


http://www.iobit.com/advancedwindowscare...


CCleaner


http://www.ccleaner.com/


Spybot S%26amp;D


%26gt;...http://www.safer-networking.org/en/%26gt;...


Ad Aware 2007


http://www.lavasoft.com


Avira AntiVir® PersonalEdition Classic....


http://www.ccleaner.com/


How to get a file out to delete? instruction says"c:/program file/iso10646IME". Where do I go?

Go to My computer, click on C:/, than click on Program files. there should be a file in there called iso10646IME delete it.

How to get a file out to delete? instruction says"c:/program file/iso10646IME". Where do I go?
what exactly r u trying to do? extract a file from an ISO? or delete that specific file?
Reply:You mean how do you delete a file? open "my computer" go to that folder and click on the file and hit delete. if it won't let you, boot into safe mode and do it.
Reply:If the file is in your documents All you have to do is right click and hit delete.

rosemary

Header file help c++?

Everyone is familiar with the number guessing game. “I’m thinking of a number between 1 and 100” is how it starts. Then people start guessing numbers to see if anyone can get it right. You are going to write the entire header file for a class


named guessGame that can be used by someone writing a program that simulates this simple game. Your class has one data item: an integer that will hold a random number. Your class has the following member functions:





• Default constructor that will set the random number to a number between 1 and 100. You will have to seed the random number generator before calculating the random number.


• isSame is a function that will take a number that is passed to it andreturn true if the number matches the random number stored in the object. It returns false if the number does not match.


• giveUp is a function that has no arguments. It simply returns the random number stored in the object.


Header file goes below.

Header file help c++?
class guessGame {





//Fill it up


};
Reply:First you do an


#ifndef GUESSGAME


#define GUESSGAME





Then you include your header files, %26lt;iostream%26gt; at least and possibly %26lt;cstlib%26gt; for the random function, then you define your class but do not implement its methods.





Finally you do an


#endif


so if the header is called twice it only gets written into the preprocessed file once.





EDIT: If your professor wants you to implement methods, the general procedure is to do so in a separate .cpp file. You may as well ask.





This should all be very straightforward from here.
Reply:Do your own homework.


Looking for a C++ header file (DxLib.h)?

Does anyone know where I can get the header "DxLib.h" online? I can't find it in my normal library, but need it to compile some code.

Looking for a C++ header file (DxLib.h)?
If you are trying to develop for DirectX you will need to download the DirectX SDK. You can find it here http://www.microsoft.com/downloads/detai...





Make sure you have your include directories pointed to the SDK before you compile.