| Subject | Date Asked | Expert |
|
| Reverse satck . | 11/22/2009 | Zlatko |
Q: Write a program that reverses the string contents of a stack (the top and bottom elements exchange ... A: Here are the changes you need to make: 1) change stackNode to have: char* data; as the data type. ...
|
| Reverse satck . | 11/22/2009 | Zlatko |
Q: Write a program that reverses the string contents of a stack (the top and bottom elements exchange ... A: There are 2 ways that I can read your problem. 1) You want to read one string into the stack so ...
|
| Data Structure | 11/18/2009 | Prince M. Premnath |
Q: regarding the program ask by mazlee for reverse string, i try to run the program, result sorting ... A: Sorry for the delay in responding please find the code below #include<stdio.h> #include<conio.h> ...
|
| arrays | 11/16/2009 | Zlatko |
Q: first i wanted to thank you for the last response..it helped out a lot. now i have an assignment ... A: Edit: Sorry, there was an error in the code I sent you. The corrected is below. Hello Christopher. ...
|
| arrays | 11/15/2009 | Zlatko |
Q: first i wanted to thank you for the last response..it helped out a lot. now i have an assignment ... A: Well OK You can have a loop in the main to enter the answers like this: cout<<"Please enter the ...
|
| arrays | 11/15/2009 | Zlatko |
Q: first i wanted to thank you for the last response..it helped out a lot. now i have an assignment ... A: If I understand correctly, you have 2 arrays. One array has the student's answers, and the other ...
|
| array of structure | 11/14/2009 | Joydeep Bhattacharya |
Q: sir, i m pawan getting a problem in the follwing program . my problem is when i ask a user to ... A: There are many errors in the code u have sent please remove the same and try again struct student { ...
|
| header files | 11/13/2009 | Zlatko |
Q: if i save my program with .c extension, my program run successfully with printf(), scanf(), getch(), ... A: If the correct header files are not included, the C compiler will make assumptions about the ...
|
| constant pointer | 11/13/2009 | Joseph Moore |
Q: Is there any difference between *ptr and &ptr in following codes code 1 ------ int x = 10; ... A: Ajay. First, looking at your code, it appears to be mis-categorized. Your second piece of code is ...
|
| C programming | 11/12/2009 | Zlatko |
Q: Actually i am trying to solve this question. "B. Write a program to enter two dates as shown, and ... A: Please post a follow-up question and show me what you have done so far. I will be happy to help you ...
|
| Merging char-arrays | 11/11/2009 | Zlatko |
Q: I need answer to the following program in C/C++. You are required to write a program that takes ... A: The easiest way to do this is to input the two arrays, create one large array with the data of both ...
|
| Merge Sort | 11/11/2009 | Zlatko |
Q: n log 2n Solve via merge sort & get the complexity.. A: I will think about your problem. Have you tried to write a merge sort yourself? It would be good for ...
|
| What would the following print? | 11/9/2009 | Joseph Moore |
Q: Joseph, I've come across this program the other day, and I just can't get the answer for this one, ... A: Angela. The problem is that you have declared a global variable called ctr and used this in both ...
|
| union REGS | 11/6/2009 | Prince M. Premnath |
Q: I have inline C code for PC to Pc communication using Null modem. In that program we have used ... A: first of all i apologize for the late response. , coming to the point 'union REGS' is just an union ...
|
| C++ File manipulation | 11/5/2009 | Zlatko |
Q: I am using windows XP and DEV C++ I want to make a program used in file transfer. How do you copy ... A: The functions you are looking for are CopyFile and MoveFile. The MoveFile does the renaming. The ...
|
| RSA Encryption in C | 11/5/2009 | Zlatko |
Q: I have recently written a program in c for the demonstration of the RSA encryption. for some reason ... A: You can send me the code as an attachment to zlatko.c.help at gmail.com or you can post it as a ...
|
| question | 11/3/2009 | Joseph Moore |
Q: explain the function of fflush<stdin>? A: Ankit. Please don't use the fflush function. The function is intended to flush the buffer provided ...
|
| c programe for prime number | 11/1/2009 | Joseph Moore |
Q: First, i need to calculate, and print out all the prime numbers less than or equal to the number 17 ... A: Ming. You are very, very close with your answer already. I've made a few changes to the program ...
|
| rearrange string | 10/28/2009 | Prince M. Premnath |
Q: Premnath, It's me again, mazlee. Here I have one question in C programming that I blur to ... A: ) Ive programmed this simple programme exatctly matches your need using strncmp() function ( i ...
|
| Reverses string contents using stack in C | 10/26/2009 | Prince M. Premnath |
Q: May i know how to write C programming using stack for reverses string using stack (the top and ... A: Need not to go for that much heavy processing ,say reversing , swapping kinda things just have a ...
|
| Strings in C | 10/24/2009 | Prince M. Premnath |
Q: sir, I am Major MTC De Silva from Sri lanka Army.Now I am under going Bsc in Computer Science in ... A: Here is the code i ve programmed for string manipulations what you have mentioned, please have a ...
|
| Stuck on a problem using c | 10/17/2009 | Zlatko |
Q: I'm doing some work at the moment, in which i've hit a brick wall. I'll post what i've done to begin ... A: You have to keep track of each box's capacity and decrease the capacity as you put items into the ...
|
| Stuck on a problem using c | 10/16/2009 | Zlatko |
Q: I'm doing some work at the moment, in which i've hit a brick wall. I'll post what i've done to begin ... A: Derrick, I can understand the use of int box[numberOfItems][numberOfBoxes]. You have an array of ...
|
| Stuck on a problem using c | 10/16/2009 | Zlatko |
Q: I'm doing some work at the moment, in which i've hit a brick wall. I'll post what i've done to begin ... A: I commend you for doing as much of your assignment as possible. My aim is to help you get your ...
|
| simple club membership program | 10/9/2009 | Zlatko |
Q: how to create simple club membership program in c?? A: Philip, the first thing you should do is make a clear list of what you want your program to do. I ...
|
| 'malloc' function | 10/8/2009 | Zlatko |
Q: My C code compiled on a MAC station gives me a segmentation fault when it tries to go through the ... A: Alex, there is nothing in the code you posted that would normally cause a seg fault. You should, ...
|
| c program | 10/5/2009 | Joseph Moore |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: What compiler are you using, and can you copy/paste the specific warnings? What happens when you ...
|
| c program | 10/4/2009 | Joseph Moore |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: Coco. You are very close in your attempt. There are a few semantics issues, but your algorithm is ...
|
| PROJECT | 10/2/2009 | Zlatko |
Q: Write an ANSI C program to implement a doubly-linked self organising list.A self-organising list is ... A: According to the problem, the node count is incremented whenever a node is found using the search ...
|
| PROJECT | 9/29/2009 | Zlatko |
Q: Write an ANSI C program to implement a doubly-linked self organising list.A self-organising list is ... A: Yes, I can help you but you have not told me what you are having trouble with. I understand your ...
|
| c program | 9/28/2009 | Joseph Moore |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: Coco. I prefer people to try the code for themselves to begin with, so I'll go over what operations ...
|
| Read line whole line from the console in linux | 9/24/2009 | Smitha Renny |
Q: I was trying to read a line from the standard in put console with the string limited by the length ... A: but in order for me to be able to help you, I would need the code that you are working with. Kindly ...
|
| Reading line from the standard console | 9/24/2009 | Joseph Moore |
Q: I was trying to read a line from the standard in put console with the string limited by the length ... A: The problem you're seeing is a very common problem experience by beginners. It has to do with the ...
|
| Problem of skiping a address in structures. | 9/24/2009 | Joseph Moore |
Q: I made the following programe: #include<stdio.h> #include<conio.h> #include<string.h> void main() ... A: Kshitij. The problem you're seeing is a very common problem experience by beginners. The problem ...
|
| C programming | 9/23/2009 | Joseph Moore |
Q: how do i declare an ESC button, so that when user presses it the program terminates? A: Tumelo. The simplest way to do this is to use the exit function. The format of the exit function ...
|
| string and charecter manipulation using strings | 9/20/2009 | Joseph Moore |
Q: i have to work on two functions one to replace and another one to match strings using pointers. ... A: Nick. I generally prefer not to just give code, but I'm a little tired right now and it's easier to ...
|
| charector and string manipulation using pointers | 9/20/2009 | Zlatko |
Q: i have to work on two functions one to replace and another one to match strings using pointers. ... A: I'm glad to help, but I have to remind you that thinking about the strmatch algorithm is a good ...
|
| array | 9/19/2009 | Smitha Renny |
Q: Good dAy!!i'm a freshman student of i.t here in the Philippines.. i would like to know what ... A: That is simpler still. You'll have to provide the char array the values at the time of declaration ...
|
| c++ programing | 9/17/2009 | Joseph Moore |
Q: i have a C++ project which i am to submit very soon, i am not good at programing. what is that i ... A: Thao. Your first question, "what is it that I need to become a good programmer," is a bit difficult ...
|
| array | 9/17/2009 | Smitha Renny |
Q: Good dAy!!i'm a freshman student of i.t here in the Philippines.. i would like to know what ... A: For this situation the normal thing would be to think of an array of names. But 'C' in its ...
|