The Coding Forums » C Programming
72 FOLLOWERS
Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages. Get discussions on C Programming including compilation errors, programming functions, pointer structure, and much more.
The Coding Forums » C Programming
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
The Coding Forums » C Programming
3M ago
Is there any code for communication between c and javascript ..read more
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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
The Coding Forums » C Programming
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