Jump to content
xisto Community

htdefiant

Members
  • Content Count

    127
  • Joined

  • Last visited

Everything posted by htdefiant

  1. That program crashes my DOS window for some reason. But I think I understand - if I put in 120 and 24, the output would be 0? Thanks for your patience
  2. So, if num2 was 24, it would give me 5 with a remainder of 0?
  3. What does the % symbol do?For example, if num1 has the value of 120 and num2 has the value 2, what will num1%num2 generate?Thanks
  4. I've got an iPhone running AT&T. I have installed 3rd party apps on it - I'll wait until they are updated to work with this firmware before updating.
  5. Here's the deal. I am new at working with web objects in photoshop. I have CS3, and I created a really nice template. I'm told I have to do something with slicing. So I have the template, and it has images, buttons, and text on the buttons, and text fields, etc. How can I export this to HTML and images, and be able to open it up in dreamweaver in an editable web page? I've tried exporting to "web and devices" and exporting as HTML and Images, but when I open it up in dreamweaver, it looks right, but it is all images.Thanks
  6. Sorry Alex - I am very new at this. Here is what I have: main (){ int num1, num2, num3; printf("Please an integer:\n"); num1=GetInteger(); printf("Please a second integer:\n"); num2=GetInteger(); while (num2>1) { } getchar (); return 0; } How do I apply the code you gave me to this base?
  7. Sorry to keep perpetuating this - you've been very helpful - what is that programming in C, not C++?Thanks for you help,A fellow OS X geek
  8. I am not familiar with or loops. Perhaps you could describe the best method to use with a while loop?Thanks for your help.
  9. I'm looking for some brainstorming help. The task is to create a program where the user enters two integers, and have them multiply without using the multiplication function. For example, if the user enters 5 and 10, the program is supposed to go 10+10+10+10+10, not 5*10. I have gotten as far getting input from the user. I am thinking of using a while loop for this. Does anyone have suggestions as to the best way to do this with the while statement? Thanks.
  10. So what would the line be? Yes, there is a function called abs.Something like this:printf("The number %d is negative and its absolute value is %d. \n", num1, abs:num1);?
  11. Hey, I'm writing a program for a friend in Calculus. The goal is for him to be able to input a number, and have the computer return whether it is positive or negative, and its absolute value. Here is what I have so far: printf("Please enter a number linenums:0'>/* positive.cpp* The program that gets a number and checks if it is a positive number.*It prints an appropriate message indicating if its positive or negative and also prints the*absolute value of the number.*/#include <stdio.h>#include "genlib.h"#include "simpio.h"main (){ int num1; bool positive; printf("This program will determine if the user inputted number is positive or negative. \n"); printf("It will also display the number's absolute value. \n"); printf("Please enter a number: \n"); num1=GetInteger (); if (num1==0) printf("The number %d is neither positive nor negative. \n", num1);else if (num1>0) { printf("The number %d is positive and its absolute value is %d. \n", num1, num1); positive=true; } else { printf("The number %d is negative and its absolute value is %d. \n", num1, num1); positive=false; } getchar (); return 0; } Obviously the line printf("The number %d is negative and its absolute value is %d. \n", num1, num1);is flawed. How do I fix it so if the number is negative it will display the correct absolute value? Thank you.
  12. I owe you one osknockout. Thanks for making me proofread! I pressed the delete button, and then the program compiled perfectly. Thanks a ton. If there is anything I can ever do for you...
  13. OK. I am so sorry to be such a newbie at this. But, I just got so frustrated I deleted the file I was working on. This is the file that Stanford supplies you with to "test" your compiler: The first attachment is the picture of my errors. The second is a folder with the extended libraries I sent to the includes folder. The third is a folder (extlibnew.zip) with the replacements for for strlib.h and genlib.h. Sorry to be so much trouble. I won't make any more adjustments until I hear from you. Thanks again, os. extendedLibDevC__.zip extlibnew.zip
  14. I recopied the extended libraries just to make sure I had the correct ones. I got a new error list.
  15. Thank you osknockout. I did the first step, but my knowledge of C is very limited. Can you please elaborate on the 2nd and 3rd things I need to do? Also I recompiled the test program and the genlib did not cause an error this time.Thanks a ton for your help.
  16. I just installed DevC++ Beta 4.9.9.2, the Stanford University standard. Then downloaded 4 extended libraries that my professor gave me, and ran a test program that was also given to me. Attached is my screenshot of errors. Something is wrong with the extended libraries, it looks like. Thoughts?
  17. Hey guys, I dual-boot my Mac Pro to play my Windows games. The new Apple Keyboard that came out today is awesome. I was just about to buy the wireless version, but my question is, how much lag is there really in games with wireless keyboards and mice?
  18. I play golf and go to private school, but I am by far less sheltered and preppy then others at my school.
  19. I understand one needs mod approval, but I get the error when I hit the 'new post' button.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.