I don't fully understand the fseek part, can you show me an example code?
does that use up a lot of ram?
Type: Posts; User: screwlu
I don't fully understand the fseek part, can you show me an example code?
does that use up a lot of ram?
I have a file that goes like
++++07/17/2016++++Memo: wdawd
retire (Chase Savings): 20
investment (Chase College): 70
Chase total: 90
savings (IQ Savings): 70
spending(IQ Checking): 40
IQ...
sorry for the late reply, but yes, and how to bypass that if I was the user
sorry, its for windows 10, and I am using windows api. I tried to be as descriptive as I could.
I have two questions.
1. If I have a form/text box that a user need to fill out, how do I make it so that the user can only do paste (ctrl+v) if they actually pressed the keys on there keyboard (and...
Is there a way I can send a line of text to a mouse position? or a text box that have been clicked?
Is there any tutorial on how can I learn more on how to creat a file parsing program? Mainly how file parsing work in c and how can I type a code that scan through a file and look for a string that's...
ok thanks
oo ok, why did you pass in &i into the function? why cant you just pass in i since it's the address (not dereferenced)?
#include<stdio.h>
void testadd(int * i);
int main(void)
{
int * i;
*i = 0;
testadd(i);
Why can't I use a ++ syntax for adding 1 to a pointer of an int inside a function? I can only use +=
Oh ok, thanks
does it hurt to use brackets with points? for example
#include <stdio.h>
//Ik there are errors, this is just a example
int main() {
char* sumding;
for (int i = 0; i<n; i++)
I tried something like that (making a temp struct then set it to peeps[first]) but everytime i compile it, it crashes... I don't know why your code is working while mine didnt... anyway, thanks!
I'm running into a problem with structure again...
#include <stdio.h>//coded by Tam Nguyen 11/6/15
struct person
{
char first_name[20];
char last_name[20];
int age;
};
lol, yea I got it, I had to re-read it like 3 time just to see the difference lmao
[QUOTE=laserlight;1243685]Ah. Look carefully at how you declared the function:
void sort_age(int n, struct person peeps[]);
Now, look at how you called it:
sort_by_age(5, student);
EDIT: omg,...
I haven't learn about const, size_t, nor '->', so I think it's best if I don't put that in my code for now. As for the pointer you mention in the print function, I been watching video and my teacher...
So I'm currently learning more about structures, but I'm running into a problem.
#include <stdio.h>
struct person
{
char first_name[20];
char last_name[20];
int age;
Man, im ........ing dumb... got it fixed. The problem was I had to set it as isPrime = check_if_prime(test_int);
what do you mean? can you show me an example?
edit: i notice in my printf debugging, it forgot to replace the function name with the variable
edit edit: turns out the if function works, but it...
the problem is not that it doesnt print, it's that it doesnt change isPrime for some reason. I have tried to debug my function with
int isPrime = 0; unsigned int divisor;
printf("first...
I'm having a problem with a if statement inside a function and Idk how to fix it.
#include <stdio.h>#define TRUE 1
#define FALSE 0
_Bool check_if_prime (unsigned int test_int);
I'm fairly new to C and I was wondering how to make it so that while a program is in a loop, if a user input a key, it'll stop the loop at where it is.
Like if a for loop is running and it's...
nvm, fixed it, here's the new loop
for (c = 2; c < prime && isPrime == 0; c++) {
//Bottom comment is for debugging
//printf("%i %% %i =...