Does anyone have any suggestions on how to get an entry level position as a C developer? I'm 28 and have an unrelated degree. I am just wrapping up a year long C programming course. A full on CS...
Type: Posts; User: MSF1981
Does anyone have any suggestions on how to get an entry level position as a C developer? I'm 28 and have an unrelated degree. I am just wrapping up a year long C programming course. A full on CS...
Because I'm a would-be programmer
Thanks for the help mates!
Okay, here is some low hanging fruit.
I have a text file with a million rows (1 record per row). Each record is a string consisting of numbers, followed by an asterisk, followed by a single space....
Thanks!
What would the syntax be if I were trying to compare structure members?
typedef struct car
{
int year;
char model[50];
Yup! Just realized that before coming back to this posting. This fixed it!
p_sortstring = sortstring;
Thats funny, qsort is expecting a pointer to a function. Why does just passing the name...
After changing my call to qsort
qsort( starr, count, sizeof(char*), p_sortstring );
and changing my function to
static int sortstring( const void *str1, const void *str2 )
{
const char *rec1...
Thanks for the help!
I understand that qsort will pass my function two char**'s and use it to sort my array of strings. Can someone help me with comparing two strings that were passed to my function as char**'s?
...
I have a binary file that has a large number of records in it. All I need to do is open the file and read it into memory. I am new to programming so bare with me. When my program reaches the...
I'm trying to parse the following string and store it in a structure
Example String:
"01","35083","AL","HOLLY POND",86.617441,34.190085,3838,0.00095
01 - Numeric code (int)
35083 - Zip code...
I'm trying to fail when the string being parsed is 1. second field in string is too big, 2. Expected float is not a float, 3. more than 2 fields in string. What am I dong wrong?
static int...
Thank you very much carrotcake1029 and Elysia!
That was helpful. Thank you. Can you explain the preprocessor directives in other.h?
Hi All,
How do I create a project using multiple source files?
I understand the concept of including header files but I don't really know how to combine other source files.
Here is what I...
What is the prototype and definition of a function which returns a structure?
Okay, I think I'm getting closer. My instructor said not to use sizeof(stuArray). But that wasn't my only problem to begin with. I think my problem lies with accessing the average member of the...
it is supposed to average all the grades of each stuArray[i].grade.
Maybe the rest of the code would help clarify things.
http://www.box.net/shared/vtcg3h2mek
I'm getting a syntax error saying "invalid operands to binary +"
float classAverage[4];
int i;
int j;
for (i = 0; i < sizeof(stuArray); i++)
{
LOL! I spoke too soon. I had forgot to comment out my old code. Uhhg!
Ahh ha!! Thanks!!! This worked for me...
int i;
int j;
for (i = 0; i < sizeof(stuArray); i++)
{
for (j = 0; j < sizeof(stuArray); j++)
I can't seem to figure this out. How can I use a for loop to accomplish the following?
classAverage[0] =
(stuArray[0].grade[0] +
stuArray[1].grade[0] +
stuArray[2].grade[0] +
...
Thanks! I'll give that a shot!
I can't seem to control this loop the way I want. I want to scan and validate input, if input incorrect, then print an error message and scan input again. The input is validated correctly but instead...
Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense...