Ok, this is driving me crazy now. Got to a different computer. No debugging errors and the output numbers are at least all different from one another, but the counter is still way off. What am I...
Type: Posts; User: dustynlily
Ok, this is driving me crazy now. Got to a different computer. No debugging errors and the output numbers are at least all different from one another, but the counter is still way off. What am I...
Ok, thanks. I will try to find another computer to run it on.
11498
With that update, I am getting "Debug Assertion Failed: Expression: (unsigned)(c+1)<=256" and "Error: a value of type "void*" cannot be used to initialize an entity of type "char*"
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#include<string.h>
int main(void)
{
char *sentence = malloc(256);
char tmp=toupper(sentence[counter]);
int counter=0;
Yes I have it as else if in my code, not sure why it lost the space in the cut-pase process. All my indentation in fine in my program, too. Another loss to the cut-paste process. Sorry for the...
I am trying to write a code that will count the parts of an inputted sentence (vowels, alpha, and keystrokes). I am not getting any errors when I debug, but my calculation keeps coming up identical...
I figured it out. Thanks everyone for your help! :) Can't believe I have my first completed program!!! :)
The problem seems to have spontaneously rectified itself when I posted from a different computer. There were no internal curly braces in my post. You can see me failed first attempt to post and my...
So I have all of the error messages cleared, the program compiles, and its working 99% how I want it to. There are just two small things I am trying to get the program to do that I am having trouble...
Thanks everyone for your help. I'm going to try to tweak it some more with all of your input and see what happens. Cross your fingers for me and pray that I never have to program something more...
Line 49, else (blah) should be else if (blah)
Okay, this one I understand and fixed...
Line 68, you're assigning 0 to a variable instead of comparing it.
How do I get it to compare then...
#include <stdio.h>
int main(void)
{
double metal_rod_length_cm; //length of each individual metal rod
double length; //temporary storage for normal length rods entered
int...
that got lost in all the copying and pasting....sorry...that is there on my screen. good catch though. wish it were that simple! :)
There, somehow I could post the code as a reply but not as part of my original text. Go figure!
#include <stdio.h>
int main(void)
{
double metal_rod_length_cm; //length of each individual metal rod
double length; //temporary storage for normal length rods entered
int normal_count;...
I am attempting to write a program (for school) that will accept data about the length of metal rods and sort them into three categories (too long, too short, and normal), tally up the overall...
I am trying to post some code to the discussion board (in another area specific to the type of code) to receive help/feedback, and it keeps giving me the error that I need to put the code tags around...