Hey all. I haven't done C programming in awhile, and right now I'm getting into malware analysis. I want to make a simple C program that for a each key in a specified hive, the program counts how...
Type: Posts; User: blindchicken11
Hey all. I haven't done C programming in awhile, and right now I'm getting into malware analysis. I want to make a simple C program that for a each key in a specified hive, the program counts how...
Ohhhhhhh alright. Yeah I see. I figured it out. Thank you for the tip!
Hello. I've been working on this code that simulates a fishing tournament. There's 14 teams (although there is no "team 14", goes from team 13 to team 15), each team picks 5 fish, and the program...
Hello. I've been working on this code that simulates a fishing tournament. There's 14 teams (although there is no "team 14", goes from team 13 to team 15), each team picks 5 fish, and the program...
Sorry, still having some trouble. Alright here's what I have so far, I just put in the printf to see what it does (displays each line of the .txt file). Not sure where to go from here. Would I put in...
Hello! I'm reading in a .txt file into a program and I'm trying to get it to count how many letters are in each line, and then display them. I'm not exactly sure what to use though.
Here's my code...
Hello. I'm gonna try and explain this the best I can. Pretty much I'm working on something that simulates a fishing tournament. I made a .txt file with four columns. Column 1 is team number, column 2...
Ah that helped. Thank you very much!
Hello, I was wondering if anyone knew how to get a program to count the number of certain elements in a string.
Here's an example code I made. How would I determine the number of spaces in line1...
Yep that fixed it! Thanks you two!
Hello. For this program I'm doing I'm trying to get a user to enter two words, have those words passed into a function which compares the two words and sets a char pointer to a certain sentence based...
Yep, that fixed it. Thanks a lot guys!
Shoot. I forgot about it starting at 0. Is there a way to make it so it would make [1] equal to sunday, 2 = monday, etc.? Or would I have to put some other value before 'sunday' so [0] is equal to...
Could anyone check out this code and give me a hint of what I'm doing wrong? I'm trying to make a code that has the user enter a number 1-7, and it displays a day corresponding to that number. For...
Thank you very much guys!
Thanks for the reply! Haven't done much with putchar yet. Is there a way to do it with just printf ?
Hello, I was wondering if anyone knew how to display each letter of a character array on a separate line without doing a printf for each one.
I made an example in the code below. If I wanted to...
thank you!
Hello, I was wondering if there's a way to place two arrays in one loop. For example, say I had an integer and double array of the same size, let's say 30. I want to place 30 random values in each of...
Ugh I finally got it. Thanks a lot for your help man, I really appreciate it.
Okay. I've been trying to figure this out but I'm out of ideas. This is the last thing I promise!
#include <stdio.h>#include <math.h>
double posQuadraticEquation(int a, int b, int c);
...
Ah once again, something simple. I really need to focus on catching simple things like that. Thanks a lot for your help though, I appreciate it!
Okay here's what I have now.
#include <stdio.h>#include <math.h>
double posQuadraticEquation(int a, int b, int c);
int main()
Crap. For some reason I'm getting -nan for an answer regardless of what the user picks for a, b, and c. Anyone have any guesses as to why this is? I'm supposed to only return the POSITIVE portion of...
Ugh I always miss something small like that. Thank you!