All Questions
74 questions
1
vote
0
answers
69
views
How do I compile a program in code::blocks using C when it won't let me?
I don't know if is a very simple error becouse the last time I used code::blocks was like 2 years ago but when I try to build my (very simple) program, nothing happens, just the build screen goes out ...
0
votes
1
answer
57
views
Dependencies not being built from command line execution with Code::Blocks
This is all within a Windows environment.
I have a main project that depends on 2 libraries (e.g. lib.a). When I rebuild through the Code::Blocks IDE, it cleans both library projects and the main ...
1
vote
1
answer
43
views
Why is Cod::Blocks giving me Null instead of a input char?
Source Code:
#3 main.c
# include "func.h"
int main(void) {
func();
return 0;
}
#3 func.h
#include <stdio.h>
void inputName();
void printName();
void func();
#3 func.c
#...
1
vote
1
answer
829
views
realpath throws undefined reference to realpath
Im trying to get the path of text file , when i use the method "realpath" & #include<stdlib.h> ,the compiler gives me an error message :"undefined reference to realpath"
0
votes
1
answer
43
views
Why does my exe file not work properly even it runs well in codeblocks? [duplicate]
Im practicing the C programming language. Im able to make a calculator program and it runs as intended in codeblocks. However, when I tried to locate the exe file i made from building the program from ...
0
votes
1
answer
329
views
Can't open CodeBlock exe file in my File Explorer
i can't open the EXE file generated by Code::Block in my File Explorer. When I open the .exe file of my Code::Block program a screen pops up and shutdown 0.25 seconds later... Same when i try to start ...
0
votes
0
answers
345
views
How to replace gets() function in C programming?
So basically this works perfectly fine on Windows CodeBlocks (I just realised that I'm using gets() and it accesses more storage but I forgot) and it doesn't work on Linux in the terminal. How can I ...
0
votes
0
answers
57
views
what is the problem in my code?why it in not being acceptedd for uri problem no:1040
The reason for not accepting my code is showing "wrong code(100%)"I have looked at some solutions over the internet.They seem to be quite alike my code. URI problem no:1040
#include<stdio....
0
votes
1
answer
2k
views
How to associate file types with Code::blocks when the association dialog doesn't come?
When I install codeblocks, there was an option about set this program for all c/c++ files and after that all file with .cpp, .C, .cxx, .cc extensions was associated to open with codeblocks as its ...
-3
votes
2
answers
91
views
I'm learning C and I've made a simple program. It doesn't work and I need a an answer
I'm learning C and I've made a simple program, and it doesn't work. Here is the code:
#include <stdio.h>
#include <windows.h>
int main(int argc, char* argv[]){
system("title test&...
-3
votes
2
answers
711
views
I get an error "a problem caused the program to stop working correctly.Windows will close the program and notify you if a solution is found"
I have a written a c program on the product of two matrices.When i compile i find no error but when i run it i find the aforementioned error.I have tried multiple solutions as suggested by youtube ...
1
vote
1
answer
3k
views
How to convert a char* into const char* in C
Is there any way to convert a char* into a const char* in the C language?
I use CodeBlocks as my IDE for Windows.
I heard that it isn't possible to do this in basic C. Is that true?
0
votes
2
answers
205
views
Why does the program stop if I'm using strcpy() on two strings with the exact same size in C?
I use CodeBlocks for Windows as my IDE. In this program, I am trying to copy two different strings (string[8][0] with string[9][0]), and I can't, even though they have the exact same length. I don't ...
1
vote
2
answers
54
views
What is the difference between a 2D string of the type string[10][20] compared to a 2D string of the type *string [10][20] in C?
I am a beginner in C and I use CodeBlocks for Windows.
I learnt that a string is a sequence of characters (chars) but I needed a sequence of strings.
In a video I saw that if I use a pointer in my ...
1
vote
0
answers
66
views
Scaled Layers in GDI
Original question
Basically, I have two bitmaps, and I want to put one behind the other, scaled down to half its size.
Both are centered, and are of the same resolution.
The catch is that I ...