Search:

Type: Posts; User: tesla

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,256

    Simple pointer question but i'm a noob

    Ok, Just wondering i know a ptr can equal another ptr, but in this code
    the second parameter of glGenTextures is supposed to be a pointer to a
    GLuint, but the address of textureId is passed as the...
  2. Replies
    2
    Views
    1,100

    A few more questions abt namespaces

    So an unnamed namespace is jst another way of declaring everything
    inside to be static? So i'm assuming that if i had two unnammed namespaces it would not compile, okie i jst tried that and it's...
  3. Replies
    2
    Views
    1,100

    NameSpace Identifier query

    hey could someone please tell me what's the purpose of using the namespace to group entities when you dont' specify an identifier?

    like i'm used to using it like


    namepace mySpace {

    int...
  4. Thread: MaCRo problem

    by tesla
    Replies
    2
    Views
    917

    MaCRo problem

    What am i doing wrong here? the commented out code causes the following errors.

    error C2143: syntax error : missing ')' before ';'
    error C2143: syntax error : missing ']' before ')'
    error C2143:...
  5. Replies
    8
    Views
    45,348

    Round float to 2 decimal places

    I just wanted to know how to round my result to 2 decimal places.



    #include <stdio.h>
    #include <stdlib.h> /* For atoi() */
    #include <ctype.h> /* For toupper() */
    #include <string.h> /*For...
  6. Replies
    2
    Views
    3,650

    Array of Structs, setting value of struct

    hey i was wondering if there's any way that can set they value of an
    array of structs the way I tried to do below for ray[1]. That code on that
    line kills everything but I didn't want to have to...
  7. Replies
    7
    Views
    3,544

    Convert string to float?

    I've got two floats but they're as strings. how do i get this code to work. I don't know how to convert them so i can compare them. it's read from standard input that's why they're char*. The code...
  8. Replies
    1
    Views
    3,038

    Question abt read(fd, buffer, 1024)

    This is some of my code, what I want to do is keep trying to read
    information from my server until it gives me a response. But is
    this a correct way of doing it? or will it cause me problems? Cos...
  9. Replies
    2
    Views
    8,411

    Setting IP address to connect to

    Hey, I'm pretty new to this networking stuff in C, and i just got a question abt some example code that i found. This is only part of the Client.c file.

    The question is: I want the client to...
  10. Replies
    4
    Views
    1,314

    Stupid Question for new C prog

    I've been working a lot in c++ and now i have to write my assignment in C.
    Can C use classes (like be able to create new data types with public and private members?) Or do i basically have to do...
  11. Thread: Check for digits

    by tesla
    Replies
    4
    Views
    1,414

    Check for digits

    hey i'm jst trying to check for digits using the isDigit method from ctype.h but
    I can't get it to work properly. is there any other ways to check for digits in C?



    #include<stdio.h>...
Results 1 to 11 of 11