Hey, I too got confuse...
But I think that it might be like this:
/* the 'next' struct is pointed to 'hashtab[hashval]' */
np->next = hashtab[hashval];
/* 'hashtab[hashval] = np;' points to...
Type: Posts; User: Eavan Hyde
Hey, I too got confuse...
But I think that it might be like this:
/* the 'next' struct is pointed to 'hashtab[hashval]' */
np->next = hashtab[hashval];
/* 'hashtab[hashval] = np;' points to...
I will try the recommanded methods. Thanks for all the help guys, really appreciate it. :)
Hi Salem, appreciated the help. I was actually trying out the use of void pointers. You see, i actually need to process a array in terms of int then char:
int a[2] = {0,1};
void *b;
b =...
int a[2] = {0,1};
void *b;
b = &a;
((int*)b)++;
printf("a's address: %p\n", b);
Thanks guys, i know that the problem is about the incrementing b , and i tried
((int*)b)++; before but it...
int a[2] = {0,1};
void *b;
b = (int *)&a;
b++;
printf("a's address: %p\n", b);
Hi all,
Any of you have an idea on how to change the "save as type: " from "*.*" to any other format such as "*.bmp" under the "file" menu in MFC of a SDI.
Tks
Hi, i'm kinda new in window ce programming. I'm trying to develop a application that search and copy some files from the PC to a handheld PC (jornada) wirelessly and i'm not very sure how to go about...
I have some experience in MFC but i have no experience on database. Are ADO and ADOCE compatible? Can a docked window CE-base devices use ADOCE to access an SQL Server running on a network?
thks.
That works for my single file. I am using xlc by the way.
However for my makefile, how should i go about adding that -lm?
What does that -lm represent?
My makefile code goes lik this:...
I am not too sure what you want but probably u can replace the part of your code with the loop with this
while (x < 525) {
answer += (x++ * y++) + 3;
}
x++ & y++ represents your...
This is my test prog n my code goes like this
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
I was considering declaring variables in my header files because i have many variables in this program because it is a very large program consisting of many files(of which most of the files are...
Thks for pointing out the mistake.
I tried it however my program still does not work. I am getting problems getting my object file. Is it because of the way i do my #include in my cpp files.
I...
I would lik to create a program in C/C++ running in Linux with multiple files, with 1 main file calling all my subroutines. There will also be a header file containing all my global variables that...
Actually u could edit the text file does that it does not have a newline at the last row, save all the problem.
characters and numbers shouldn't a problem, i could encrypt a normal text file.
i could also program it to take in bytes but i need to get the exe file to a txt file or a binary file.
Thank for the info bubba, i learn something. :)
I need to encrypt exe file using my own encryption program that could only encrypt characters ( its lousy, i know ), so i was thinking of converting...
I bulid a MFC program and brought the exe file to a computer without c++, but the exe file couldn't run, a error : "A required DLL file, msvcirtd.dll, not found".
I read from the net that i need...
How do i change a exe file to a txt file and then back to exe using c++?
Sorry, but i'm totally clueless on how to do this.
Yup, it works, thanks for the help guys.
I mean using a pointer variable to point to the 1st character in the file then keep on pointing till end of file.
There is a large text file for my program to read in then output on the screen, is there anyway to point to a character ( including space ) in a text file?
Yup, i'm creating a dialog window, but i can't find the "return CDialog::OnOK();" line.
Here's my code:
// test4Dlg.cpp : implementation file
//
I have created a window a edit box and 1 push button.
Is there anyway to make it so that when the user is typing in text in the edit box and pushes enter, the push button is pressed?
I'm using MFC.
I use MFC, onbutton1 is the function of button1 and BN_CLICKED.