Whats up C board. Ok so I'm writing a program to check if two user-input strings are anagrams of eachother or not.
I've written code, but get this error upon compilation:
Undefined ...
Type: Posts; User: toadkiwi
Whats up C board. Ok so I'm writing a program to check if two user-input strings are anagrams of eachother or not.
I've written code, but get this error upon compilation:
Undefined ...
Was this solved?
Alright so I changed what vart said to, and I fixed some of the line errors. One problem that happened a few times was the line breaks caused the program to get wacky. But here's what it looks like...
gcc? I dont really know much about the compiler itself. I just use gcc -lm in this case.
Tried compiling that, got:
quadratic-roots.c: In function `main':
quadratic-roots.c:34: error: missing terminating " character
quadratic-roots.c:35: error: `root2' undeclared (first use in...
Yeah I'm still getting the messed up output (missing line). Could you maybe post the whole code so I can see if anything else is different?
Ok vart, that eliminated the double processing, but it also eliminated the first line.
So the output was
1 0 -4.84 root1=2.2 root2=-2.2
1 0 1 The roots are complex
Instead of
1 -3 2 ...
Ack! Nice catch. Thanks.
I'm not sure what you mean.
Hey all. New problem. Been working on this one though during TA hours. Here's the problem (#1):
http://ece.arizona.edu/~ece175/assignments/assignment06.pdf
Ignore #2. I have a separate thread...
Ok some reading and TA help later, I've got:
#include <stdio.h>
#define INFILE "original.txt"
#define OUTFILE "encoded.txt"
int main(void)
{
yeah vart, I'm gonna see if I can do that first.
Hey all. I need to use input and output files, and create a code such that the input value digit sums are added and then output to a file. Here is the problem as given to me:
If anyone can...
Thanks!
Ok I figured it out:
#include <stdio.h>
#include <math.h>
main()
{
double x;
Forgot about that. But now there's a new problem. The program just returns exactly what I input. I.e. after it asks for a number, I input 6 and it returns the number 6.
I had tried that and I get a crazy error:
Undefined first referenced
symbol in file
exp ...
Hey all. I'm experimenting with a program that is in relation to an assignment I have. All I'm trying to do is have the user input a number, and then have the program raise "e" (as in 2.71828...) to...
Got a problem to work out this week for my C class. I don't even understand what it's asking.
Can anyone help me understand what it's asking me to do? Perhaps in more of the laymans terms...
I dont think we've learned all the things your program employs
So it looks like I'm gonna need
one - nineteen (manually)
twenty, thirty, forty, fifty, sixty, seventy, eighty, and ninety
And somehow I need to have the program identify which inputs are in...
"Write a program that takes a two-digit integer (-99 to +99) as an input and outputs the number in words. If the input is outside this range, the program should print that it is outside the range."
...
Nice and organized. Thanks!
My indentation?
Any suggestions?
Ahh, much thanks!