Monday, May 24, 2010

Can someone give me an idea of how to write a simple C program? I have no programming experience!?

Write a C program that displays the title, Currency Conversion, and then write the names of five currencies and their equivalents to the US dollar. The conversions are hard-coded equations in the program. Insert appropriate comments in the program to document the program. Also, as a version-control exercise, in the source code, at the end of the program file, create version levels and comments for each iterative attempt while creating the program.

Can someone give me an idea of how to write a simple C program? I have no programming experience!?
Buy the book, read it and try it. Nobody can teach you to program, you need to do it to learn it.
Reply:It will be more beneficial if you learn to do it yourself.


How do I get an executable out of my basic C# program in Visual Studio?

I'm a rookie at Visual Studio/.NET. I just coded my very first 'Hello World' C# program. It works fine within Visual Studio when I try to run it. I've tried build. I want my program to be a standalone .exe (executable) that I can run from a dos prompt. It's just a simple console application. What do I need to do (step by step) to get an executable version of it? What am I missing? All I have is the .cs source code. Thanks in advance.

How do I get an executable out of my basic C# program in Visual Studio?
If you can execute your application from visual studio then that means that you already have an .exe and Visual Studio simply runs it!





The .exe is located in the "bin/debug" or "bin/release" directory which is inside your project directory.


If you have Visual Studio 2003 the directory of your project is usually at "my documents/visual studio projects"


If you have visual studio 2005 it's usually at "my documents/visual studio 2005/projects"
Reply:compile it from the build menu. you might have to adjust your toolbars if its not showing up.


How do I create my own Instant Messenger Program using C++?

I wish to know how to create my own Instant Messenger Program using C++. I haven't got a clue as to how to do any programming, so I need to start from the beggining. If at all possible, I'd like the source code and I can modify from there.

How do I create my own Instant Messenger Program using C++?
You could download the sources for GAIM which are written in C and update them to C++ and modify them for your use.
Reply:try looking into sockets and that library. when you have a simple TCP/IP client server running you will begin to understand the complexities. Java has a class that you can expand into a simple one, but there are a lot of quirks that have to be handled in a pro job

flower beds

How to implement meta character in linux shell with c++?

I want to implement a new shell in the linux and put some new commands with c++.so, I need to handle meta character also.plz tell me how to write the commands and handle meta characters?


plz help me where i can find the source code to implement a new linux shell and put some commands?

How to implement meta character in linux shell with c++?
yoda the wise one here is your link





http://www.google.co.uk/search?hl=en%26amp;q=H...


Problems in Creating a new project in Visual C++ 2008 Exprees Edition?

I have installed Visual C++ 2008 Express Edition. When I want to





create a new project, it tells me (creating file ??? failed).





If I open a source code, I can't compile it because I don't have the





menu button for it. But I was able to do all these things in my





university's lab.





I use windows Visa Home premuim and tried giving administrator rights





to VC++, but no effect.


What should I do? I have to use VC++...

Problems in Creating a new project in Visual C++ 2008 Exprees Edition?
I have the 2008 express edition. It gave me a whole lot of problems at first, then i figured out, I have to first create a sinlge file, and then copy and paste it into a already existing project. That's what i do, but i dont know how it is supposed to be done. There should be some sample projects already made with the software.


Can anyone refer me to an online text to learn C++?

I've searched around, and have found many, many websites that claim to been able to teach C++. Yet only one has even remotely nabbed my interest. This is due to the fact that the author still left his/her teachings in an "incomplete" state.





I have done numerous searches (all major engines) and all of them fall short, don't make any sense, or the source code examples do not actually work. I have tested the more basic samples and they seem to work just fine. (i.e. the "Hello World!" mini-program)





I DO know how to "link and compile," so again, the tool(editor) I'm using works just fine.





So to the point then: Has anybody seen, or heard of, a REALLY GOOD, REALLY SIMPLE website that teaches C++?





Perhaps maybe there is a "backwoods" site that is not listed, but is friggin great. If there is such a thing, awsome, if not...Who's got some time?

Can anyone refer me to an online text to learn C++?
Here are the list of websites which can help u.





If u want to know more let me know.I am providing the link for the CPPbook which will be good i think.check out the bottom most link (www.fh-augsburg.de/~andreasb/).





If u want any suggestions do mail me,always welcome
Reply:Check out this from Wikibooks: http://en.wikibooks.org/wiki/Programming...
Reply:here ya go....


How can I make letters instead of numbers appear in base16 number in c++?

I'm doing a decimal to hexadecimal c++ program. However, instead of displaying A (or B or C or D or E or F), it displays 10 (or 11 or 12 or 13 or 14 or 15) instead. Here's the source code:





#include %26lt;iostream.h%26gt;


#include %26lt;math.h%26gt;


using namespace std;





int main ()


{


int input, i, j, k, result, power, hex_dig;


char hex_letter;





i = 1;


j = 0;


power = 0;





system ("cls");





cout %26lt;%26lt; "Enter an integer number [1-50]: ";


cin %26gt;%26gt; input;


k = i;


result = 0;


power = 0;


while (k %26gt; 0)


{


j = k % 16;


k = k / 16;





if (k %26lt; 10)


{


result = result + (pow(10,power) * j);


power = power + 1;


}


else if (k == 10)


{


hex_letter = 'A';


cout %26lt;%26lt; hex_letter %26lt;%26lt; j %26lt;%26lt; endl;


}


else if (k == 11)


{


hex_letter = 'B';


cout %26lt;%26lt; hex_letter %26lt;%26lt; j %26lt;%26lt; endl;


}


else if (k == 12)


{


hex_letter = 'C';


cout %26lt;%26lt; hex_letter %26lt;%26lt; j %26lt;%26lt; endl;


}


else if (k == 13)


{


hex_letter = 'D';

How can I make letters instead of numbers appear in base16 number in c++?
Store the k % 16 values of each iteration in a string of characters.


If (k %16) %26gt; 9, then 10 ≡ A ; 11 ≡ B ; 12 ≡ C ; 13 ≡ D ; E ≡ 14; F ≡ 15.


In the next step reverse that string using the function ' strrev() '.


That is your equivalent hexadecimal number
Reply:use C# -_-
Reply:I see that you read an integer into input, but I don't see where you do anything with that integer.





Why do you reinitialize hex_letter in each if else statement? Why not simply output the intended letter.





Or you could add 85 to each number, then 10 would equal 95, and 11 would equal 96, then cout the number without quotes and a letter will display. This would also eliminate all your if else statements.





95 in ASCII is capital A, 96 is B, etc.





You should also end your if else with an else, in the event none of the previous if else statements are entered.

wedding flowers