Search Results

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: atman ; Forum: C and child forums
Forum: C Jun 15th, 2009
Replies: 6
Views: 306
Posted By atman
Hello.,
I'm reading about anonymus structs and have problems understanding what is the privilege to have one. could anyone demonstrate an example of both anonymus and regular struct. I see that...
Forum: C Jun 11th, 2009
Replies: 6
Solved: Array question
Views: 379
Posted By atman
Hello.,
Have a question about array being set from function argument. I wrote this little program, and want to know why cant i set an array size from the function argument. Any help would be greatly...
Forum: C Jun 6th, 2009
Replies: 3
Views: 306
Posted By atman
Hello.,
I'm very green in c++, and at school we just had a first lesson on pointers to functions, and I'm going over teachers code using debugger and dont understrand why the line age =...
Forum: C Jan 24th, 2009
Replies: 8
Views: 689
Posted By atman
thank you guys so much!!!
Forum: C Jan 18th, 2009
Replies: 8
Views: 689
Posted By atman
depends on the pass if its the first pass then 0, if second then 1, e.c.t...
Forum: C Jan 18th, 2009
Replies: 8
Views: 689
Posted By atman
#include<stdio.h>
#define COUNT 5


void enter(int *p_arr);
void report(int arr[], int count);

int main()
{
Forum: C Dec 6th, 2008
Replies: 9
Views: 673
Posted By atman
could anybody please help imbeding fgets() to read 1 letter from stdin? do i have to create array for this? do i have to include a pointer to char in fgets() argument? once its read i have to extract...
Forum: C Dec 6th, 2008
Replies: 9
Views: 673
Posted By atman
wow thats awesome i still dont understand why does it skip to the next line, im reall new, but how to extract from fgets buffer into memory?
thanx alot!
Forum: C Dec 6th, 2008
Replies: 9
Views: 673
Posted By atman
Hello guys, I'm trying to collect user input which combines integers with letters, but whenever it reaches the scanf for char it skips it and goes to next integer, could anybody explain why??? is it...
Forum: C Nov 28th, 2008
Replies: 1
Views: 299
Posted By atman
hello.,
im trying to create a validation block that checks if the number is multiple of 5. im new at c, could anyone give me a tip? thanx a lot!
cheers!
Forum: C Nov 26th, 2008
Replies: 25
Views: 1,822
Posted By atman
this is awesome
Forum: C Nov 26th, 2008
Replies: 1
Views: 717
Posted By atman
Hey guys!
Could anyone enlighten me how to draw a graphic window in c? which classes to use and maybe a basic example would be greatly appreciated. cheers!!
im using XCode and i assume it doesnt...
Forum: C Nov 26th, 2008
Replies: 2
Views: 292
Posted By atman
hello.,
in a few examples i noticed that pointers are declared in functions parameter list.

ex

#include <stdio.h>

void SwapEm (char *p_grade1, char *p_grade2);

int main ()
Forum: C Nov 25th, 2008
Replies: 1
Solved: need help!!!
Views: 264
Posted By atman
hello.,
ny1 knows what is the data type for displaying hex numbers? i know that specifier is %x, but dont know what data type it is
ex: 0xBCD

thanx!
Forum: C Nov 16th, 2008
Replies: 2
Views: 371
Posted By atman
Hey guys,
Im reading up on pointers and since i dont have a physical teacher, Its abit hard concept to grasp. Could anyone please explain in their own words shortly how they work, I understand that...
Forum: C Nov 11th, 2008
Replies: 5
Views: 956
Posted By atman
Hey guys,
Im learning C online, and its hard somtimes to understand the concepts, w/o being in class asking questions. I was wondering hat would be the easiest and fstest way to understand numeric...
Forum: C Nov 10th, 2008
Replies: 1
Views: 340
Posted By atman
Hey guys., i wrote a little program to calculate the foreign exchange of canadian dollar to french frank. but when i validate an input(it has to be between 1 and a 1000), i get a problem even though...
Forum: C Nov 9th, 2008
Replies: 2
Views: 465
Posted By atman
Hello.,
Im learning C online, and one of the examples from the internet is this:


#include <stdio.h>

int CalcVolume (int length, int width, int height);

void PrintIt (int vol);
Forum: C Nov 6th, 2008
Replies: 1
Views: 311
Posted By atman
Hey Guys.,
Im super desparate have 1 day to hand this in. Have to use loops only.

quote:
The use of any of the following C statements or functions is not permitted under any circumstances.
...
Forum: C Nov 4th, 2008
Replies: 4
Views: 533
Posted By atman
Forum: C Nov 3rd, 2008
Replies: 4
Views: 533
Posted By atman
Hey Guys!
I have a weired one here, it must be a post-test loop, and here is how result has to look like:



Enter the Section Code: 0

Invalid value entered. Must be 1 to 4, please re-enter:...
Forum: C Nov 2nd, 2008
Replies: 2
Views: 379
Posted By atman
Hello.,
I haveto check for non-numerci input, when reading numeric input. I know how to validate numeric input with while loop, but what if i need numeric input and user inputs alphabetic letter,...
Forum: C Nov 2nd, 2008
Replies: 7
Views: 938
Posted By atman
It works great, but im trying to understand the logic behind it,once we start the loop, i=0, and then in the first pass in the condition it adds 1 to it so i=1, then after printf it adds again?...
Forum: C Nov 2nd, 2008
Replies: 7
Views: 938
Posted By atman
thanx a lot it sais 8, but when i try to set it <= 7 its still 8.,
any suggestions?
Forum: C Nov 2nd, 2008
Replies: 7
Views: 938
Posted By atman
Thanx a lot for a tip, i changed everything to double except i, cuz if i change i to double the "Enter Mark#0" occurs on every entry, but still the result is abit incorrect, it came closer though,...
Forum: C Nov 2nd, 2008
Replies: 7
Views: 938
Posted By atman
Hey guys!

I'm trying to calculate the average for student marks using pretest loop, and for some reason i get the wrong result, even though the code looks proper to me.,
there are 7 questions all...
Forum: C Nov 1st, 2008
Replies: 4
Views: 590
Posted By atman
Thanx a lot guys!
Forum: C Nov 1st, 2008
Replies: 4
Views: 590
Posted By atman
Hello again guys!
i have a simple question how to promt user to enter a number for example 444 or whatever and for c to print it as a 9 digit number, so if its 444 c would print it as 000000444?
...
Forum: C Oct 28th, 2008
Replies: 22
Views: 1,846
Posted By atman
wow


its killer!!!
works great., thanx alot! thank you ))

i didnt know you can put statements inside conditions, its great!
Forum: C Oct 28th, 2008
Replies: 22
Views: 1,846
Posted By atman
im trying for over 3 hours to understand and inbed what you suggesting, but get errors during compilation, i'm very new to c, and dont fully understand the terminology yet, do you mean to put &&...
Forum: C Oct 28th, 2008
Replies: 22
Views: 1,846
Posted By atman
tried that., if i do that the do/while loop stil executes at least once with a second Invalid Input request. :(((
Forum: C Oct 27th, 2008
Replies: 22
Views: 1,846
Posted By atman
Forum: C Oct 27th, 2008
Replies: 22
Views: 1,846
Posted By atman
Thats cool, but where is initial "Enter the Section Code", its complex sped all day eysterday
Forum: C Oct 27th, 2008
Replies: 22
Views: 1,846
Posted By atman
Here is the instrusction for the first part of the program that im trying to resolve:
This program to be written using LOOPS only. Do not use any "if" statements in your code. The use of any of the...
Forum: C Oct 27th, 2008
Replies: 22
Views: 1,846
Posted By atman
Thanx a lot for answers, but another condition is i haveto use only loops, no if statement, break; etc., post-test loops only... its really tricky i couldnt crack this one...
Forum: C Oct 27th, 2008
Replies: 22
Views: 1,846
Posted By atman
Hello.,
I'm working on my school assignment and the condition is to use post-test loop trying to get following result:
---------------------------------------------------------------
Enter the...
Forum: C Oct 26th, 2008
Replies: 12
Views: 986
Posted By atman
Wow, Thank you sooo much, it works great!!
I have just started CPD Computer Programming course, and its a part from our first assignment,
thanx a lot!!!
cheers!!!
Forum: C Oct 26th, 2008
Replies: 12
Views: 986
Posted By atman
im really sorry, im new to this website,

which CODE tags should i use?

could you please give me a hint with doing it just with while, i tried to do it like you suggested in your first reply...
Forum: C Oct 26th, 2008
Replies: 12
Views: 986
Posted By atman
here comes the latest version, but when i enter 1 it terminates as well as when i enter 0, it should terminate only at 0


#include<stdio.h>
main()
{
int num, i;

do
{
Forum: C Oct 26th, 2008
Replies: 12
Views: 986
Posted By atman
Hello, Im taking C in school, and i have a problem with my code, nothing happens at all when i run the program.
The task is:

A program is required that prompts the user for a number. The program...
Showing results 1 to 40 of 40

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC