Thanks, you guys are quite fast.
Type: Posts; User: zerokernel
Thanks, you guys are quite fast.
Haha, I just figured it out note x^2 term I accidentally put a -2 in front.
Actual code looks like this now:
#include <stdio.h>
int main(void)
{
int x, polynomial;
The program will ask for the user to enter a value for x, then compute the following polynomial: 3x^5 + 2x^4 - 5x^3 - x^2 + 7x - 6.
However, when I double check it with my calculator I get a wrong...
Wow, I guess I never thought of it that way. Your absolutely right, if I continue this path I'll never be able to program. I'm cutting out the video games and movies. All my free time will go into...
I have all the necessary tools to program even the free time. I've been trying to teach myself programming, but I keep giving up. It's not that I can't do it, I definitely can; but once I get to a...
I just noticed something else weird with my count when it reaches the null character. Is it wrong? Lets assume my entered test was "Hello World" and I set "i" initially to be 5. How is it that my...
The program should store a character array in reverse order then display the reversed array. I have also included in the code that will display the actual characters into the array as it loops...
I solved it by using "%c" instead of "%s" stupid me.
It's been about two years since I last program c, now I need to do it for a basic project. How would I print out one letter in a string?
For example lets say I have a string called str=[Hello]. ...
I thought everyone should know. Dennis Ritchie: The shoulders Steve Jobs stood on - CNN.com
Thanks for catching my mistake, unfortunately I do that quite often.
I had no warnings I'm using gcc from linux. Should I be concerned, should I report this bug? Is it a bug?
I changed it to 0.0 and it worked, but the weird thing was when I changed it back to just 0 with no decimal point it worked as well. What just happened?
Started C programming again, but I am stuck on a relatively very simple problem. The problem is stated in the comments.
/* Programming Projects
Problem 5
Write a program that asks the user...
Yeah I needed that, I have put off programming C for a while. Thanks.
Not looking for small pieces of code i'm talking about one with hundreds of lines and a lot of functions, memory allocation, etc. I'm still new to C so I not exactly sure what can show up in C,...
I would like it if some of you can post some sample C programs. I'm testing out some color-schemes. Keep in mind this isn't my homework so it doesn't exactly have to work. ;) The longer the better.
Just started getting into C programming again. Where can I find a good resource of C problems. It would be helpful If these problems also had solutions. Please provide links. For those that say...
Thank you. I was looking for quite some time, I guess it never occurred to me to look up indent style.
I've searched all over the internet looking for whats the most preferred format. I know C compilers don't care, but I want to make codes that look nice for others to edit, view over, etc. I guess...