Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

lgbasallote

  • 3 years ago

A few questions regarding C programming 1) Is it possible to change individual colours in C without using the header file <graphics.h> or system("color"); If yes, how? 2) Is it possible to insert and display an image using C programming? If yes, how?

  • This Question is Open
  1. lgbasallote
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if i recall right... @AravindG is a good C programmer... maybe he can help me

  2. AravindG
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    1.well i give coloured text using codes like the foll: #include <conio.h> int main () { textcolor (WHITE); cprintf ("\n-- WHITE COLOR!"); textcolor (YELLOW); cprintf ("\n-- YELLOW COLOR!"); return 0; }

  3. AravindG
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    2.Turbo C is about 15 years old, and doesn't know about Windows - BMP is the native Windows bitmap format. JPEG was standardized in 1992, and I very much doubt that Turbo C has any support for it. There are libraries that support either or both of these formats, but I find it unlikely that any of those libraries have compiler support for Turbo C. Use a more modern compiler, and write the code for Windows, and you'll have a relatively easy task.

  4. AravindG
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    in btw who told u i am a good C programmer lols :P

  5. AravindG
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @lgbasallote

  6. lgbasallote
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i forgot to add.... modern codes... the codes you posted were old codes of conio, wasn't it?

  7. AravindG
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    think so try include<iostrea.h> and then use cout ...anyways you gt my point didnt you ?

  8. lgbasallote
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    that's c++

  9. lgbasallote
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    also... iostream doesn;t have ".h" it's just #include <iostream> and what point? i don't see any point...?

  10. lgbasallote
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @Callisto @hartnn @ParthKohli said you two are good in CS

  11. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy