19,876 Topics
![]() | |
I need to know where to get a copy of bios.h(and any files that are used with it.) and the opengl header files.(gl\glaux.h...) | |
hi guys we say that c language is a powerfull language but the use of '^' to represent 2*2*2 as 2^3 is restricted in c language where as the use of '^' is allowed in other simple languages. | |
Hello all, is there an accepted way of entering the debugger as soon as a CGI prog gets activated. Apart from putting in a large delay and then attahing to the process I would like the preferred way - if there is one? Thanks | |
Hello all I want to be able to search a string and remove non a-z chars and also search for certain words and then remove them ie. char string[25]="STEPHEN JOHNSON - LTD" So i use isalpha to get rid of the non a-z string i am left with STEPHENJOHNSONLTD LTD … | |
Ok, so the program takes two inputs name, and grade. I will spare you the details. It works, however I have two issues. The first, I need all input data to display as red... I just have had NO luck getting that to work for me. Also, I need the … | |
I have a homework question and I don't know quite where to start or how to implement what she is asking: [B][I][COLOR=#000000][/COLOR][/I][/B] [B][I][COLOR=#000000]Write a program that inputs three double-precision, floating-point numbers and passes them to a function that returns the smallest number. [/COLOR][/I][/B] [B][I][COLOR=#000000] .[/COLOR][/I][/B] [B][I][COLOR=#000000]Can someone please help me … | |
Hi everyone: I was surfing all around my puter deleting all kind of unused folders... and suddenly i found this one: C:\RECYCLER\NPROTECT\ i am not sure what this folder is ment for... perhaps to backup deleted items with Norton ??? ... Well the point is that i want to delete … | |
hi all, can anyone give me an idea to search all mdb files in the system using c#.net | |
I had moved my question on VB 4/5/6 category... sorry i made a mistake... | |
Hi, could someone tell me the syntax for the strstr function in C? | |
Hello! I have recently began to program in UNIX environments and I am currently reading about signals.So i tried a snippet that seems it doesn't do what i intended to.So i want to print the counter i from a for loop until a value is reached, than stop the process.Instead … | |
Can someone explains what specific "0x30" does in the decimal to binary function below: void dec2bin(long decimal, char *binary) { int k = 0, n = 0; int neg_flag = 0; int remain; char temp[80]; // take care of negative input if (decimal < 0) { decimal = -decimal; neg_flag … | |
Short example of problem I have: [code]class A{ public: int x[10]; }; int main(){ int A::*pointer = &A::x; A a; a.*pointer = 3; return 0; }[/code] I got an error: cannot convert from 'int (A::* )[10]' to 'int A::* ' in second line of 'main()' I tried to remove '&' … | |
Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] … | |
My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters … | |
Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and … | |
Hey everyone new to the board and in a bit of bother. I've got this assignment thats been plaging me for two weeks but i can't do this one bit as i just don't get it. I've got to write a programme that takes data in from a file and … | |
Does anyone know what is the best function to use if you want to read user input and not have the return key carry over? Everytime I write something that reads in two things, the second read in always ends up being '\n' because the return key carries over to … | |
Hi , What does it mean this statement char*(*(*x)(void))[] Thank you. ![]() | |
Hello , i have in a director c:\files_t several files t1 t2 t3...t300 i need to analize each on-the analize operation is not importent how can i [B][U]open each file in a loop[/U][/B] and analize them?-in [U][B]C[/B][/U]code thanks ahead | |
I have to redesign a bookshop programme which allow user to make order of books. This programme is originally using vector to implement.Now i have to decide either use deque or hash_map for the programme or i would better keep using vector?? In fact, I just know these three kinds … | |
I have a code, and this is another problem, that's not working; Given: an int variable k , an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and … | |
Hi Everyone, I am trying to compile code for a FAT file system implementation. I define my struct as struct DirEntry { uint8_t status PACKED; uint32_t start_block PACKED; uint32_t num_blocks PACKED; uint32_t fsize PACKED; MC_Time created PACKED; MC_Time modified PACKED; uint8_t fname[31] PACKED; uint8_t unused[6] PACKED; }; typedef struct DirEntry … | |
Anyone here that can help me write a multithread program to generate 3 different Fibonnaci sequences? ![]() | |
Hi all, I'm working in the C language. I've been stuck for 2 weeks trying to figure out how in the world to populate arrays after reading in an input FILE. the input file has numbers and words, I need to write a loop that grabs the integers and stores … | |
Hi there, I'm trying to write a simple encryption program that reads normal text from a txt file - encrypts it using a Vigenère Table - then outputs the results to another file. This process should obviously be reversible as well. I have written this for the encryption part of … | |
class Order { private: vector<OrderItem> items; public: // Constructor Order() {} // accessors OrderItem operator[](int index) const { return items[index]; } // mutators [COLOR=red]OrderItem& [/COLOR]operator[](int index) { return items[index]; } in this programme the accessors seems useless,and what is the use of the operator "&" in the mutator? | |
This is C. 1. My question is how would I read in an integer securely from stdin. I saw the following snippets: [URL]http://www.daniweb.com/code/snippet441.html[/URL] [URL]http://www.daniweb.com/code/snippet597.html[/URL] Would those functions protect from integer overflows/underflows AND format string attacks? 2. What about strings? Does a simple use of fgets protect from buffer overflows AND … | |
[code=c] #include<stdio.h> #include <conio.h> void main() { int line,c,n,x; void pasc(int); printf("\n\nInsert, how much line do you want: "); scanf("%d",&line); printf("\n\n\n"); printf("\nPascal's Triangle Is : (press enter)\n"); for(x=line-1;x>=0;x--) printf(" "); printf(" 1\n\n"); for(n=2;n<=line;n++) { for(c=line-n;c>=1;c--) printf(" "); pasc(n); printf("\n"); getche(); } } void pasc(int n) { int r; long fact(int); … | |
I will be very thankful if someone can help me out....;) | |
i am new student i had a home work but i cant get this done how can i input in the same line a char and two integers the output should be like this : please enter candidate family condition, defect percent, children number, working condition: [B]s 20 0 1[/B] … | |
My txt file is of the format: [B]Date Station Operator Task Action[/B] and a list of values under each heading.. Now how do i write a C code to pull up records tht match a specific value under "TASK"...... say for example, if [B]Task = Vendor Setup,[/B] then the result … | |
Hi, I have this application in Graphics that has to print a report on a laser printer. Is there any way to do it.... Thanks | |
Write a C program with 4 functions in main 1 int intSum(intx, int y) accept 2 ints as parameters adds the 2 # up returns the sum 2. int intdiff(intx, inty) accepts 2 # as param. subtracts them returns with diff. 3 int intProd(intx, int y) accepts 2 # muiltplies … | |
Hi! anyone who could help me fix this code for it to work? i need your help very badly. :) i'm having a hard time debugging my program for it to work... i dont know how to use the function rand() properly.. :rolleyes: tried everything i can but it just … | |
whats wrong with this code it compiles well but gives wrong results code is to arrange the 5 numbers in ascending order [code=c] for (a=0;a<=4;a++) { for (b=a+1;b<=4;b++) { if (num[a]>num[b]) { temp=num[a]; num[a]=num[b]; num[b]=temp; } } } [/code]can anyone tell whats wrong?? | |
I wana make so many lines appear randomly (like heat beat rate) depend on the base line ..while I run the program . How can i make that works . pls give me some hints or code ,, | |
Hello All i have a program written in C, and i want to call a sharedobject, which i can do fine! The only problem i am having is passing parameters.. Here is my code [code] int main() { static int (*fp)(int); int *handle; int MatchFound; struct SharedObject_{ char name[10]; char … | |
I have some old programs compiled in the aout format which I would like to recompile with ELF for Linux. I found this decompiler program (REC) which claims to be able to do the trick. Unfortunatly, the way he has the the download setup is not very good for a … | |
Hi all, I try to compile my program and got this kind of error: test6.c: In function `main': test6.c:46: too many arguments to function `mysql_query' Here is my code: [CODE] int main(int argc, char *argv[]) { char string1[1600], string2[1600], query[1600], mobileno[50]; int i, j, len; FILE *fp2; mysql_init(&conn); /* Connect … | |
Hi i am so lost and stressed please can some help me. My question is how do i code the follwoing • Constructor: Copy The copy constructor should check the validity of the Entry object parameter through the use of the isValid method and copy the valid objects media and … | |
i am having trouble iwth this question i am a little weak with classes that is why i cant complete this any help would be greatly appreciated Create a class for airline reservation. Assume that there are two aircraft models A, B. The class has following constants defined, const int … | |
I have the following code: [code=c]class date { private: unsigned int nDay,nMonth,nYear; static unsigned int nMonthArr[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; //LINE 36 ...[/code] Upon compilation I recieve these errors: n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2059: syntax error : '{' n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2143: syntax error : missing ';' before '{' n:\courses\8110\Labs\Lab7b\Lab7b.cpp(36) : error C2143: … | |
I'm not sure if my title makes sense. My problem is the following: I input a string and the function in my program is supposed to change every digit (except for 0) it finds in the string to a value -1 of that digit (eg 'er345ut' should be changed to … | |
I keep looking at this code, and cant find out the problem... I made this as part of a library of math functions. It asks the user to enter the number of numbers to subtract, then enter them. It should work, but for some reason doesn't. [code] void sub() { … | |
hi i need help on making a recursive palindrome function of only string values. the recursive funstion shouyld return true is the string stored in the array is a palindrome, otherwise it should return false. Also the function should ignore spaces and punctuation in the string. thank you all help … | |
Hi, Can anyone help me read the code below? I have an idea but i am not quite sure. [code] *(DWORD*)(pDesPtr+(nDesIndex>>3)) |= pSrc[nCount] << (nDesIndex&7); [/code] thanks a lot, | |
Hello all I want to split regular expression values in the list (in quotes) list("A","B"....... ) What is the best way to go about this? Regards | |
Hey! Writing a simple client/server in C and I'm currently stuck with getting the results after calling system("ls") so I can send it from server to client. Since system() returns an int I tried popen() --> [CODE] char buffer[1000]; FILE* myPipe = popen(buf, "r"); if(myPipe==NULL){ //errorstuff } while(fgets(buffer, 1000, myPipe)!=NULL){ … | |
hi i need to write a while loop to print out groups of stars shown in the attachment the middle set?? cud someone provide me with an answer please as i am desperate to get it working. thanks in advance |
The End.