# Search:

Type: Posts; User: quzah

Page 1 of 20 1

1. ## Thread: How do I add an expression according to the user's input?

by quzah
Replies
1
Views
726

### There are lots of ways to do this. if( number >...

There are lots of ways to do this.
if( number > 999 & number < 10000 )
... do four digit stuff
if( number > 9999 && number < 10000 )
... do five digit stuffYou could always just read it...
2. ## Thread: Dealing cards to players

by quzah
Replies
8
Views
1,686

### Shuffle the desk. Use a counter to keep track of...

Shuffle the desk. Use a counter to keep track of where the "top" of the deck is. Start it at 0. Deal one card by assigning deck[ counter ] to whomever is getting that card. Then increment counter....

by quzah
Replies
7
Views
838

z = x * y;

Quzah.
4. ## Thread: bit manipulation need help urgent

by quzah
Replies
5
Views
1,072

### How about you write a small test program to find...

How about you write a small test program to find out? One that actually fully compiles and runs.

Quzah.
5. ## Thread: bit manipulation need help urgent

by quzah
Replies
5
Views
1,072

### Then read the bitwise operator FAQ. Quzah.

Then read the bitwise operator FAQ.

Quzah.
6. ## Thread: Why the address of variable array is equal the variable array?

by quzah
Replies
4
Views
1,148

### First of all, when you use "first of all", there...

First of all, when you use "first of all", there needs to be a second or next thing. Next, this has nothing to do with it being a varadic function, and everything to do with the format specifier he's...
7. ## Thread: using comparative operator on a typedef struct member

by quzah
Replies
2
Views
985

### "1200" isn't an integer. It's a string literal....

"1200" isn't an integer. It's a string literal. Lose the quotes if you want the number 1200, and just put 1200.

Quzah.
8. ## Thread: Reverse Engineering a C Program

by quzah
Replies
7
Views
6,539

### Why don't you just learn assembly if you want to...

Why don't you just learn assembly if you want to know what it's really doing?

Quzah.

by quzah
Replies
3
Views
2,015

### Make a program that reads entries from a file one...

Make a program that reads entries from a file one at a time until it reaches the end. Once you can do that, make a program read entries one at a time, and then it copies the one it has just read into...

by quzah
Replies
9
Views
1,725

### You could say "programming in C". Quzah.

You could say "programming in C".

Quzah.

by quzah
Replies
38
Views
2,875

### It doesn't add it, you do when you hit enter. It...

It doesn't add it, you do when you hit enter. It simply leaves it there.

Quzah.

by quzah
Replies
38
Views
2,875

### for (long i=0; i

for (long i=0; i<5e8; i++);

Quzah.

by quzah
Replies
38
Views
2,909

Quzah.

by quzah
Replies
38
Views
2,909

### What is 'RoomNumber'? You have 'RoomNumbers, but...

What is 'RoomNumber'? You have 'RoomNumbers, but I don't see 'RoomNumber':
Room_x[RoomNumber] = 'X';If you switch that out to be i, at that point you will be out of range of what your array is...
15. ## Thread: A faster algorithm

by quzah
Replies
17
Views
1,775

### Even if he did take back his solution as if he...

Even if he did take back his solution as if he didn't actually write it, we're back to square one. He needs to post his new attempt. He's still telling everyone to give him the answer. If we ignore...
16. ## Thread: How to check a variable to make sure it is the correct data type?

by quzah
Replies
5
Views
1,164

### fgets + sscanf FAQ > How do I get a number...

fgets + sscanf

FAQ > How do I get a number from the user (C) - Cprogramming.com
FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com

Quzah.
17. ## Thread: tell me what u think

by quzah
Replies
5
Views
1,082

### Is there any reason you just dumped a bunch of...

Is there any reason you just dumped a bunch of code here (tagged wrong) with no question or other text of any kind?

Quzah.
18. ## Thread: 2d array of strings?

by quzah
Replies
6
Views
1,014

### Have you learned about structures yet? Quzah.

Have you learned about structures yet?

Quzah.

by quzah
Replies
14
Views
1,734

### #includeThat's pretty much all you...

#include<stdhomework.h>That's pretty much all you need for this. Isn't C great?

Quzah.

by quzah
Replies
4
Views
1,235

### I'm going to assume this is C++. Otherwise,...

I'm going to assume this is C++. Otherwise, someone in this thread loves function pointers.

Quzah.

by quzah
Replies
4
Views
1,180

### That's because you're storing it all in the same...

That's because you're storing it all in the same place. If you want the next call to go somewhere else, put it somewhere else. Switching to fread isn't going to change that.

Quzah.
22. ## Thread: Having trouble identifying whats wrong.

by quzah
Replies
11
Views
1,282

### So you don't actually want to learn anything, you...

So you don't actually want to learn anything, you just want someone to do it for you? Ok, cya.

Quzah.
23. ## Thread: can someone give me a hand

by quzah
Replies
7
Views
1,078

### Read: FAQ > Get a line of text from the...

Read: FAQ > Get a line of text from the user/keyboard (C) - Cprogramming.com

Quzah.
24. ## Thread: Having trouble identifying whats wrong.

by quzah
Replies
11
Views
1,282

### FILE *ofp = fopen("roster.txt", "w");That is...

FILE *ofp = fopen("roster.txt", "w");That is going to start with a new file every time (in effect) because it truncates the file when you open it to w mode.

fprintf(ofp, "%s\n",...
25. ## Thread: getting size of int/char array

by quzah
Replies
4
Views
1,496

### C99 allows for variable length arrays:...

C99 allows for variable length arrays: https://en.wikipedia.org/wiki/Variable-length_array

Quzah.
Results 1 to 25 of 496
Page 1 of 20 1