really messy code..sorry
int main(int argc, char *argv[])
{
FILE *input;
int N, K, x, pos=4, b, s, r=0, q=0;
int unequal=0, f=6, g, y=0, m, t;
int **array=NULL, *bleh,...
Type: Posts; User: paperbox005
really messy code..sorry
int main(int argc, char *argv[])
{
FILE *input;
int N, K, x, pos=4, b, s, r=0, q=0;
int unequal=0, f=6, g, y=0, m, t;
int **array=NULL, *bleh,...
yep bleh is set up somehwere else, the weird thing that is happening is that when i complete this bit of code
for(;column<=5;column++) //second for loop
{
...
heres a snippet of some of my code, but im getting a problem with the arrays that i've created..
whats going on is that i have a 2d array, and a 1d array
and say my 1d array has
2.
2.
3.
2....
is it because my variable is too small ?
int main()
{
double big_number;
big_number = (1/61601) * sqrt((61602*61599)/61603);
printf("%f",big_number);
}
i get the error
awe3some thanks!
im not too sure how that works, but it does.
does anyone know how i can use sscanf to replace characters in a string?
say i have string
abcd
and i want to replace a and d with a space, how coul di do that?
i fi have
#define X 0x02
and i want to change X in my program, how woul di do this?
is it possible to change X to say number 3 ?
im getting error with lvalue..
??
if i have a header fiel containing hte following..
#define TERMINAL_1 0x01
#define TERMINAL_2 0x02
typedef struct data {
int cookie;
how would you seek to a particular spot in a file and read an int?
if i have a file full of ints
50 51 9
how do i read each of these ints using fseek?
int i = 0;
int temp_Var;
im trying to implement a calculator
but the trouble im having is when i have two negative signs should be positive.
so if i have a tree like
-
/ \
-
/ \
i have
<<<FILE1.CPP>>>
#include <string>
#include "Customer.h"
using namespace std;
//in a functino somewhere
OMG you have got to be joking, that WAS the error!!!
geeeeeezus! how long did i spend on this shnizzle just for that crappy eerror!
thanks mate
hey, if you could just check out my code, i've spent soo long on it already, and i cant seem to figure out WHY this doesnt work when the code for the functions is pretty simliar!
all im doing is...
i've tried using the cin.ignore
but i get this error
error: `ignore' undeclared (first use this function)
??
i've included the header file <iostream>
do i need to include any otheres?
thanks elad!
well postfix expression means that the operators come after the variables
and prefix means that hte operators come before the variables
so
ABC +* D - would be postfix
infix = ((A+B)*C)-D
you...
you'll need to paste some of your code where you think it is seg-faulting..
mmm?
that while loop is trying to read in these 5 numbers
1 0 0 0 0
hello
im trying to read data from a file
the file appears like
1
Dog
Tim
Male 4 4.7 5
0 0 0 0 0
thanks
i get error when i compile..
here is my code
/*this is my header file for my file called C.h*/
#ifndef _C_H_
#define _C_H_
#include "I.h"
using namespace std;
class C {
well i would think i would need the for loop since i want to print out all the nodes in my list. even tho now it only has one, later on i do wish to insert more.
ok this stopped the printing of address's,
it is still printing an extra copy ..like so
One: eeny
Two: meeny
Three: miny
One:
Two: meeny
this did not work