hello guys,
i don't know whats wrong here, when i tried to make heap allocation for my program using HeapCreate(), it compiles but always terminates.
The example i studied used GetProcessHeap....
Type: Posts; User: thagulf2017
hello guys,
i don't know whats wrong here, when i tried to make heap allocation for my program using HeapCreate(), it compiles but always terminates.
The example i studied used GetProcessHeap....
i am learning about win32 programming.
i came around the code below and it got me having unanswered questions.
#include <windows.h>
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);...
i just made this change to the code. the output is
Building winui.obj.
C:\Users\xx\Documents\Pelles C Projects\winUI\winui.c(49): warning #2018: Undeclared function 'StringCbPrintfW' (did you...
hello guys,
i don't know whats wrong with this code of mine.
#include <windows.h>
#include <wchar.h>
#define BUF_LEN 10;
Hey guys,
I find it hard to understand what exactly with the below code.
even copy pasted from the book which im using to learn, same wrong output.
#include <windows.h>
#include...
i renamed to main.c - --> same issue still
so i tried to compile main.c in pelles C and it worked fine. time to ditch visual studio i guess.
hello guys, here;s my code below:
#include <windows.h>
#include <wchar.h>
#include <conio.h>
#define BUF_LEN 25
int wmain(void){
#include <stdio.h>
void filecopy(FILE *, FILE *);
int main(int argc, char *argv[]){
FILE *fp;
if (argc == 1){
filecopy(stdin, stdout);
}
else
except i don't understand what you mean, but i believe this line assigns the file pointer to fp
if ((fp = fopen(*++argv, "r")) == NULL) {
This is a program i coded which parses command line arguments which are expected to be text files and in turn send contents to STDOUT which is screen.
it compiles but doesn't work. although it...
good day guys,
i have this code
#include <stdio.h>
int main(){
struct a{
so my code is just few lines that im experimenting on,
it runs and terminates abruptly under certain condition, when i press shift+f7 in codeblocks to fire up the debugger it does nothing,...
i don't know why,
this code:
#include <stdio.h>
#include <ctype.h>
#include <string.h>
i think i understand this now (*high - *low) returns int not a pointer so it makes sense now, thanks salem
im confused right now, isn't both *low' and *high' pointers in the context used in the k & R?
applied strcpy() as suggested, code is much neater and works too, thanks salem. ::)
i have another problem tho, i was trying to implement binsearch using pointers but before changing the actual...
i use codeblocks, how can i compile with -Wall flag?
also, i believe comments are different from the other keywords in that they can be anything or any length as long as they fall
within /* and...
thanks very much, that has been resolved but now i don't know why ret which is to store the return value of getword in order to decide whether its a comment or normal keyword is always returning...
so i'm reading an exercise on structures in the C k&R book.
it says to modify getword routine in order to take in to consideration
underscores, comments etc.
i'm trying to start small (i.e...
hello, salem. thanks for the answer, however. i'm not sure of what you mean by "non-standard". i typed out whats in the book K & R and the response when i compile
is a blank command line window...
this code compiles but doesn't work, if i try to open debugger, it still does not work.
whats wrong?
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#define MAXTOKEN 100
this won't compile
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define ALLOCSIZE 10000
#define MAXLINES 5000
#define MAXLEN 1000
i keep experiencing this particular error while doing pointer arithmetics in C/
e.g
#include <stdio.h>
int strcmp(char *s, char *t);
int main(){
hello sirs, why is this code not working? it does nothing special just trying to understand.
#include <stdio.h>
#include <stdlib.h>
struct node
{
int a;
hello guys, i read someone else's code which works. then i wrote this one myself to see if i can incorporate recursion in adding nodes to a linked list structure. in the debugger after the loop ought...