Huh! The problem goes away when I run the program at the command prompt like you did. The problem only seems to occur when run within the Xcode IDE.
Type: Posts; User: Phoebe
Huh! The problem goes away when I run the program at the command prompt like you did. The problem only seems to occur when run within the Xcode IDE.
//
// A program to determine the amino acid chain from an RNA input
#include <stdio.h>
#include <string.h>
#include <ctype.h>
I've noticed something funny about my program. Although I designed it to accept only three letters (one codon) at a time, it seems to be able to accept a continuous stream of codons.
Input: AUG...
I think the teaching style of Head First C is for a particular type of learner. I'm having difficulty with the book as well, but I can supplement it with material on this website, and wikipedia. I...
Wow! Thanks for all the advice. Looks like I have some serious homework to do. :redface: Thanks again!
Here's the updated code. It accepts lower case letters. If the user enters something that is not a codon, it does nothing.
//
// main.c
// PageA2
// Created by Phoebe August 31, 2012
//...
Thanks for the advice. I'll try doing that.
:D I finally wrote something with a purpose! This program takes a three letter codon and tells the user the amino acid that the codon will make. My next goal is create a program that can take a...
Thanks for the help!!! :redface: strchr solved the problem!
I'm not sure what you mean by "end of line character." I'm very novice at this so far, having only about five days of experience with programming.
Hello World. I am teaching myself C programming with the book Head First C by David and Dawn Griffiths. I'm stuck on a particular example exercise that is supposed to search a list of song tracks. ...