Can I declare a variable with an uncertainty number suffix?
The Coding Forums » C Programming
by shadow3d
1M ago
Hi all, I want to declare a variable whose name is decided by a variable value. such as: if idx=0, then I need a new variable named var_00; if idx=1, then I need a new variable named var_01; ...; if idx=255, then I need a new variable named var_FF; I don't know if it can be realized by '#' and '##', can anyone help me? Thanks a lot ..read more
Visit website
C and javascript
The Coding Forums » C Programming
by Harish
3M ago
Is there any code for communication between c and javascript ..read more
Visit website
Solution to the problems off my code
The Coding Forums » C Programming
by jenomi
5M ago
so , i am a begginer at programming ( more especifically at c ) , and im heaving some problems with my domino code . i am suposing that the problem is at the function (compararacaoesquerda) and (comparacaodireita) or at my parameters at the functions , can someone help me ?? ps : the code is in portuguese ..read more
Visit website
Scanf is being prioritized over printf ?
The Coding Forums » C Programming
by AD23
5M ago
I am beginner in C so I don´t really see my fault here but my programm just skips all printf and starts with the scanf. What did I do wrong? I replaced scanf with fgets but the same thing happens. Here´s my code: #include <iostream> using namespace std; int main() { printf("What is your name? \n"); char name[20] ; printf("My name is: \n"); fgets(name, 20 , stdin); printf("Your name is %s", name); return 0 ..read more
Visit website
Beginner at c
The Coding Forums » C Programming
by nzmnija
5M ago
I just started coding, I wrote this code, it's exercise in book "C programing language", sorry that the code variables are not written in english, it seems that if number of words gets past 9, * and numbers below dont lineup, how can i fix that, and if you see better solution for code tell me, Thanks. #include <stdio.h> #include <limits.h> int main() { int c; int flag=1; int i; int reci[100]; for(i=0; i<101; i++){ reci=0; } i=0... Read more ..read more
Visit website
WIN32 - Update Text in a Window in order to show its size in Pixels and coordinates
The Coding Forums » C Programming
by ViniBirdie
5M ago
Hi fellows, I am trying to write a code that creates a window with the following text: A13.2 - EDV2 - MB3B - WS23/24 Fenstergröße: WindowPos rechts/unten: kein Mausklick Tastendruck: Next to Fenstergröße it should show the size of my windows in Pixels as "609x383 Pixels" and next to WindowPos rechts/unten for example "545x296 Pixel". I am trying to upade the previously declared text static char* szText[100] usind WM_MOVE and wsprintf but it's not working. Visual studios say the lines... Read more ..read more
Visit website
How can I view / open / render / display a pdf file with c code?
The Coding Forums » C Programming
by TheSmallest
5M ago
I would like to create a gtk app that creates and displays a pdf file (but for the sake of this question: if you know how to do it without gtk, I'd love to know!). This file has been created with the same gtk app. I'm new to C and only know basics (mostly js, bash, LO basic). Besides looking for a very long time I couldn't find anything about how to display a pdf file – not even if we ignore gtk. Apparently poppler and ghostscript can be used for this purpose, but I found not a single... Read more ..read more
Visit website
How to get started with C programming:
The Coding Forums » C Programming
by SanamRay9
5M ago
Dear, I'm eighteen and I was wondering how to get started with programming: C These are the languages we are supposed to know: You are being redirected... I'm a bit lost so help me out. Direct as I will put in time. Is Coding based on the English Language ..read more
Visit website
Defining Macro in C
The Coding Forums » C Programming
by Sway
5M ago
Write a macro P(X,Y) that returns 1 if X is even and grater then Y. How would I do that ..read more
Visit website
Scanf is being prioritized over printf ?
The Coding Forums » C Programming
by AD23
6M ago
I am beginner in C so I don´t really see my fault here but my programm just skips all printf and starts with the scanf. What did I do wrong? I replaced scanf with fgets but the same thing happens. Here´s my code: #include <iostream> using namespace std; int main() { printf("What is your name? \n"); char name[20] ; printf("My name is: \n"); fgets(name, 20 , stdin); printf("Your name is %s", name); return 0 ..read more
Visit website

Follow The Coding Forums » C Programming on FeedSpot

Continue with Google
Continue with Apple
OR