Hello
I need some help. In my program the user must enter the number of customers then they must enter a customer number for each customer and how current the customer is using.
Something like...
Type: Posts; User: HAssan
Hello
I need some help. In my program the user must enter the number of customers then they must enter a customer number for each customer and how current the customer is using.
Something like...
Thanks guys I think I know what I have to do now. Also any idea where I can find a similar example to what "Salem" was talking about so I can learn it?
The basic problem that I am trying to solve is that the user must enter the number of coustomers during run time. Each coustomer will have the same set of data (e.g Account Number, Bank...
Hello I was wondering if it was possible to to have user defined structures. What I exactly mean by that is if I aks the user to enter in a number and he/she enter's say 4. 4 structures containing...
How am I meant to do that I thought that it keeps in the while loop until the difference is <= 0.01. So where am I exactly going wrong becasue I don't understand what you are saying.
Hello I wrote this program to find the square root of any number that the user enters using newtons method but it is not working. The initial guess is the number entered by the user divided by 10....
Hello
I want to learn visual C++ to make .exe programs for windows. What are some free visual C++ IDE that are avaliable that I can download off the internet?
I changed it around a little bit. I made the functions return a float and made it void so it accepts noting from other functions. But it is still not working. I don't understand why.
...
Hello I wrote this simple program it accepts 2 user input parameters and returns another parameter that was calculated based on the user inputs. But I think my logic is wrong as it is not working.
...
Hello I wrote this program to except user input parameters for a complex number in polar from then convert them to a + jb format. But I used the cos() function in the math.h libbary and it keeps...
Hello I wrote this small. It takes a number fron 1 - 1024 rescales it and gives out a number between 1 - 363. But P_Number is a float. Is it possible to calculate P_Number as a float but only accept...
Hello
I bumped into this problem and I am unsure how to solve this. I have a function that accepts 3 arrays as its function parameter. Each array has 360 elements.
float...
Hello
I'am writing a program and within the program there are several functions. My problem is that a function of mine called Sell() requires 5 arguments to be passed to it. But 2 of these...
Hello
I wrote a program where I used pointers to point to a structure within a function.
typedef struct{
float Fish;
float Cotton;
float Wood;
That's exactly what the problem is the xp and xv is not updating. for the program to work xv and xp must update. initially xv and xp is given but I want to update it throughout the program and I...
I thought about it and by using arrays it added extra complexity to the program that is not necessary so i took it out. But the program is not working. The program is meant to calculate xv,xp and "a"...
Hello I wrote this program but it's not working properly.
The value of xv1 and xp1 is given I want to use those values to work out the values of xp2...xp100 and xv2...xv100. The program is meant...
x y z state
0 0 0 0
0 0 1 1
0 1 0 2
0 1 1 3
1 0 0 5
1 0 1 6
1 1 0 7
1 1 1 8
Hello I'am writing a program and I used structures to make some user defined variables. Then I passed those variables to another function where a value was assigned to them. Now I want the values of...
Hello
I wrote this program to generate 256 random numbers. The numbers change each time the code is excuted. But I can't seem to limit the numbers from 1 to -1. Antother thing I can't seem to do...
I want to randomly allocate the numbers 1-9 in an arrya of nine elements how do I go about doing it.
Hello
My question is that is it possible for the user to decide which array element they want to input the data into.
A printf statement can ask the user which element they want to put the data...
My operating system is windows XP and my compiler is going to be either Turbo C, DEV C++ or Pelles C
So let me get this clear the following 4 steps should be it. As I already mentioned I never did...
Hello
Say in a buffer the data 12345678 are stored I want to be able to read 1234 every 1 second. How will I go about doing that as I never did this sort of thing before I have no idea of where...
My operating system is windows XP and the compiler i'am using is turbo C. I would really appriciate any hepl anyone can give me because I have no idea how this is done. It would be nice if someone...