- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Re:
Hi, I've not worked in C, C++ from like 5-6 years. But now I got to do a very small change (explained below). I tried reading tutorials but only got confused. Below I've struct containing 2 attributes. I need to create its refrence and pass values to these 2 attributtes. … |
|
Re:
In the function for overloading the >> operator I am getting this error: 84`rationalize_number' undeclared (first use this function) this is the function: istream& operator >>(istream& in, Rational& rational1) { char tempChar; int numerator = rational1.numerator; int denominator = rational1.denominator; in >> tempChar; if(tempChar == '(') { in >> rational1.numerator … |
|
Re:
Hello, I have this matrix: 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 and I need to print out the block with the coords: (2,1) so in this case: 1 0 1 0 I have tried this: for(int i=minRow; (i < 2); … |
|
Re:
hi there, i just want to know what function to use in converting a char into an int like: [code] char temp; cout << "enter something"; cin >> temp; atoi(temp); [/code] is this the right way? |
|
hi everybody, i have choosen a project as my fyp,the project which can change the priority of any process. It is just like nice command. So can anyone suggest me how to proceed in this project. the reffrencial book if any. |
|
hi every one, i am a final year student. I want to make a project related to kernel........, but i am not able to think any new idea related to kernel so please give me some idea related to kernel based project. thanks. |
|
Hi everybody, I have a problem in include path. i want to keep my all header file in folder named myInclude and include it like #include<myInclude/header.h>, Is there any possible way to do this, if there is than please tell me the step. thanks in advance........... |
|
Re:
hello Is there any way to change numeric to figures? for example if the user input is 134, the program output must be one three four. thanks in advance, Bluebird |
|
Hello everyone, I have created my own header file but it doesn't work if i just include like "myfile.h" and it works fine if i include like "myfile.c". I just want to know that why this thing happening in Turbo C compiler even it works fine in VCpp. |
|
Re:
Hello Daniweb Forum People, I have this problem of getting the decimal of a number? How can I get it and copy to a variable? ex.... 1234.59 I used a for loop in order to get the index value of 59, my problem was with the value? how can I … |
|
Re:
[code=cplusplus] #include<stdio.h> #include<stdlib.h> #include<iostream.h> main() { FILE *fp,*fp1; int numbers[30]; char *buffer; int i=0,j; // To read the file fp=fopen("PR1.txt","r"); if(fp==NULL){ printf("Error: can't access file.c.\n"); exit(1); } else { printf("File opened successfully.\n"); for(i=0;i<10;i++) { // while(!feof(fp)) { /* loop through and store the numbers into the array */ printf("Number- %d", … |
|
Re:
Hey, I'm trying to only read the int's and the symbol - (negative) from the file. right now my code is where m,d, and y are dates. Everything works fine. Except I do not read the - symbol. Any one know how to solve this? [ICODE] fin.open(ifile.c_str()); fin >> m1 … |
|
Re:
whenever the clearMemory function is called i get a segmentation fault and i can not figure out whats wrong. The function is supposed to delete all pointers. The function brings in the pointer to the linked list by reference. The nodes in the list are structs i named bus that … |