But since I started the thread and all, I wouldn't want people to copy my work =/. That is the reason I want it removed. I never got much help with my code anyway. Not like you guys helped me do my...
Type: Posts; User: Hitsugaya_KK
But since I started the thread and all, I wouldn't want people to copy my work =/. That is the reason I want it removed. I never got much help with my code anyway. Not like you guys helped me do my...
I created a thread on this site and I need it removed :(. I want the thread to be deleted plz. or can I delete the thread myself as the creator?
-_-. I have already fixed my problem. My whole code works fine now. I have been wasting time not working on my code much thinking someone could help me, but I had to be at everone's mercy by trying...
I have only one problem now regarding case 4, I don't have any problem with the reset of my code
case 4: //allows user to choose items
printf("do you want to add choose...
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
{
int ID;
char name[64];
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
{
int ID;
char name[64];
I have done this so far
case 4: printf( "choose item for purchase\n" );
int i, x[10],int quantity;
for (i=0;i<10;i++)
{
...
Choosing the quantity for each of the items will make it harder to code. The number of items the person would like to choose should be up to 10 and the person should be able to stop choosing items at...
case 4: printf( "choose item for purchase\n" );
for (i=0;i<10;i++)
{
printf("choice %d - %s\n",i+1,array.name);
}
Now the question is, how do...
but I don't know how to make the user choose the item or even quantity. I know I have to use the integer ID from the array to allow the user choose, the question is how to code it.
do you have any idea how I can code option 4?
I can only go so far in the second part :(
int menu_choice;
switch ( menu_choice)
{
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
{
int ID;
char name[64];
I am now getting an error based on "char retstr, [BUFSIZ];" . It is saying Error 2 error C2059: syntax error : '[' :(. No need error anymore, I realised I had to get rid of "char retstr, [BUFSIZ];"...
laserlight, is this what you said I should do?
int main(int argc, char *argv[])
{
FILE *fp;
char retstr[BUFSIZ];
char *f1, *f2, *f3, *p;
int...
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
{
int ID;
char name[64];
ok I edited the code. will it do? I am sorry :(. ok I made final adjustments. I hope someone can help me in identifying my errors
this is what I have done so far:
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
this is the latest:
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <stdio.h>
struct item
strange, when I try to build my code, I get this
// cstdio standard header
#pragma once
#ifndef _CSTDIO_
#define _CSTDIO_
#include <yvals.h>
ok I have added the curly bracket. so what should I do next? I have tried to figure out how to read the ID as the main part of each line. wow I noticed I get so many errors with the latest code I...
I had a feeling it was wrong. sorry MK27
anyway, I have redone the code. So what do you think of this?
#include <stdio.h>
#include <iostream>
#include <fstream>
ok then. So you are asking me to use something in relation to this? http://twiki.org/p/pub/Support/LockingAllFunctionsToRegisteredOnlyUsers/C-Examples.pdf . If so how do I apply it to...
I managed to make my code similar to what I saw to in the link I recently provided. I would like someone to help me sort errors in the code :(.
I found a website that I could get some ideas from which is Read file into array of structs - C example .
Just wanted you to see this if this will help me better since I made little changes...