Search:

Type: Posts; User: luckyluke

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    5,847

    Thanks you. I have used a bool variable to...

    Thanks you. I have used a bool variable to control my sound function, so I want a function that can be used in many cases. I hoped thread supported that.
  2. Replies
    3
    Views
    5,847

    How to stop all sound in a C# program

    Hi all,
    Now I am programing a game in C#. So I use many sound events (moving, punching, screaming...). I create a Mute button, when running program. when users click on Mute, all sound will be...
  3. Replies
    6
    Views
    4,174

    Thanks Salem, I code in VS 2008 and no warning...

    Thanks Salem, I code in VS 2008 and no warning appeared.
  4. Replies
    6
    Views
    4,174

    "Switch", "int" and "char"!

    #include<stdio.h>
    void main(){
    unsigned char c=280;
    switch(c){
    printf("Start\t");
    case 280:printf("David Beckham\t");
    case 24: printf("Ronaldinho\t");
    ...
  5. Yes, siavoshkc. Your method is really good.

    Yes, siavoshkc. Your method is really good.
  6. Don't use sizeof(), how to specify the size of each datatype

    Hi all,
    Now I want to write a program. Requirement: Specify the size of each data type: int, char, long, float (by byte), not using sizeof().
    So, I have thought a bout using bitwise. But I can't...
  7. I have just understood, many thanks to you!

    I have just understood, many thanks to you!
  8. Oh, Eysia. I'm a newbie, so I have learnt C for 2...

    Oh, Eysia. I'm a newbie, so I have learnt C for 2 week in this summer-semester. I have read your recommended document so I don't understand clearly. Can you detail my problem, many thanks to you!
  9. Explain what can go wrong with the following C code

    Please help me to explain what can go wrong with the following C code, why it looping forever? I don't understand.



    #include "stdafx.h"
    #include <stdio.h>

    int main()
    {
    int x;
  10. Replies
    4
    Views
    1,439

    Thanks Elysa. I'm have read but I don't...

    Thanks Elysa. I'm have read but I don't understand clearly. I'm a newbie. Can you mention it in my example? Thanks you!
  11. Replies
    4
    Views
    1,439

    Wondering output???

    #include <stdio.h>
    int main( )
    {
    float a=1.0;
    long i;
    for(i=0; i<100; i++)
    {
    a = a - 0.01;
    }
    printf("a = %e\n",a);
Results 1 to 11 of 11