Hi,
I got a square matrix (0 1 2 3)
[0, 20, 47, 35]
[20, 0, 30, 34]
[47, 30, 0, 12]
[35, 34, 12, 0]
i got a list of positions (0 1 3)
Type: Posts; User: Alander
Hi,
I got a square matrix (0 1 2 3)
[0, 20, 47, 35]
[20, 0, 30, 34]
[47, 30, 0, 12]
[35, 34, 12, 0]
i got a list of positions (0 1 3)
Hi, i solved the problem, however, is it possible to read back the binary data value by value instead of reading it as an entire structure???
any help appreciated
Structure
struct EmployeeData
{
int code; /* Employee Code */
char * name; /* Employee Name */
int age; /* Employee Age */
double basicPay; /* Basic pay of Employee */...
Full code
if(file != NULL){
while(head != NULL){
fwrite(head->code,sizeof(head->code),1,file);
fwrite(head->name, sizeof(head->name),1,file);
This is wrong
if (found == TRUE)
deleteNode (pList, pPre, pCur);
It Should be
if (found == TRUE)
#include <stdio.h>
#include "Prototype.h"
#include "definition.h"
struct EmployeeData* deleteElement(struct EmployeeData *pList)
{
int empCode, found;
struct EmployeeData *pCur, *pPre;
Hi, i tried alot of things based on ur pseudo and its not working.. can you point me to a tutorial or something with some sample codes? its getting frustating :(
Hi, i could delete now but not the 1st element as pointed out by u guys can anyone tell me guide me??
void removeElement(int n, struct EmployeeData ** list)
{
struct EmployeeData *previous...
wrong post ignore sorry
Hi, how do u deal with those.. i tried alot of things but it just give me the same exception :(
This are my structures
struct EmployeeData
{
int code; /* Employee Code */
char * name; /* Employee Name */
int age; /* Employee Age */
double basicPay; /* Basic pay of...
Hi, i understand that there is a memory leak in my application but i cannot find out where is the leak... can anyone help me??
i learnt C++ then VB then C# then J2SE, then J2ME then C, i would say C is harder than any of those
Hi All
I am loading a linked list from file pushing to the list from a reference pointer
However when i load the file for 2nd time (for debugging purpose to see if it rejects duplicates) one of...
Hey thanks, heres the correct code.. cheers
do{
printf("Enter the full file path that you would like to save the file to \n");
printf("e.g. C:\\Temp\\Employee.csv\n");
printf("NOTE...
char fileName[100];
int a;
do{
printf("Enter the full file path that you would like to save the file to \n");
printf("e.g. C:\\Temp\\Employee.csv\n");
printf("NOTE THE .CSV...
http://cslibrary.stanford.edu/
This site is pretty good, all the books are in .pdf.. pretty comprehensive
You could also use an enum to declare your months, instead of having arrays..
Hey thanks swoopy :)
void calSinglePay(int empNo, struct PersonalData* user){
struct PersonalData* currentEmp;
struct PersonalData* empData;
int exist = 0;
int rate = 0;
struct CompData calculatedData;...
oh thanks, i got another problem that i do not understand... i supposed its another address issue..
Code1
void calSinglePay(int empNo, struct PersonalData* user){
struct PersonalData*...
void calAllPay(struct PersonalData* user){
struct PersonalData* currentEmp = user;
int rate = 0;
struct CompData* calculatedData;
calculatedData = malloc(sizeof(struct CompData));
...
erm is there an alternative way to do this in visual studio?
Hi, i have a problem over here..
I am doing C programming on Visual Studio 2005, Console Application..
I know that this can be done, but however, the compiler does not recognize some methods...