i am studying programming design in 5 days...
What do you mean? You are trying to learn a language in 5 days? You have 5 days until an exam? You are preparing for something? I don't follow....Saying you are studying programming design could refer to a lot of different things, and saying you are studying it in 5 days (if you mean you are trying to learn it in 5 days) is almost absurd...Please clarify
i do not know anythings about c++....it is too hard for me now...
Is C++ your first programming language? If so, it would be understandably hard. Regardless, I would almost suggest learning a different language if you are just learning programming, because I personally don't feel C++ is the best "starter" language. Then again, you don't need to get to the more advanced parts of the language until you have a firm grasp on the basic syntax and semantics, so don't let me disuade you from learning if you are set on learning it.
In any case, there are TONS of tutorials (both on the Internet -- google -- and likely on this site as well, and in books and such) that range from basic in material to advanced or expert. So there are lots and lots of resources to help you learn. And since you are just learning, I would definitely recommend you start easy and follow some beginner tutorials.
i have to write pseudoce for it....but i do not know how to do that....can you help me?
pseudocode is not really programming "code". It's like a high-level, english (or I suppose it could be any language) translation of what it is your program will be doing. It's like programming with no particular syntax. The beauty of pseudocode is that, once you've solved a problem and written it in pseudocode, translating the pseudocode into program code is a simple matter of syntax. That is, if you write a program in pseudocode, you can basically then pick and choose how you want to implement it (in what language, etc).
So, if you follow me, the purpose of pseudocode is to outline the general solution and program flow to a problem that you intend to code. Once you have the pseudocode written, you can literally pick any language in which to implement it. The other thing is that the pseudocode that I write might be different from the pseudocode that you write (especially if problem/solution is complex), since we are not following similar syntax rules, and might choose to solve the problem in different ways.
So, as an example, lets take the problem you wish to code. It could be implemented in C, C++, Java, C#, Haskell, or Scheme (if you so desired), or any other language you wish. Even though the implementation would look different in each language (since the syntax differs, although C, C++, Java, and C# are all very similar), the pseudocode would be the exact same (or very very similar), since each program would be doing the same general thing.
Again, there are tons of examples and resources out there, just do a quick google search...
But, I'll give you an example. Suppose we wished to write a program that asked a user for a positive integer, and in turn, it would print out every number from 1 to that integer. The pseudocode might look like (when I actually do pseudocode, I typically use a flowchart as well, so bear with me):
Create integer variable "input" to hold user input.
Ask user for input.
Store user input into variable "input".
Create an integer counter variable "ctr".
loop: (looping while ctr is less than "input")
output the value of "ctr".
Increment the value of "ctr" by 1.
end loop
And of course you can pretty it up and such, and you will find some people write more in pseudocode than others. The point is, it should be readable, not overboard on the written english (it should be short and sweet in other words), and you should be able to follow the logic of the program.
I know that was long winded, but hopefully you get the idea. If you are studying cs, then you might be asked to submit pseudocode or flowcharts when designing complex programs. And even if you aren't, they can be very helpful if you have a complex problem to solve.