Forum: C++ Apr 20th, 2008 |
| Replies: 7 Views: 2,562 :D
Thanks. Its all working fine now.
One little query though, when I have to terminate the string how do i do it?
like this :
temp[i]='/0';
or |
Forum: C++ Apr 20th, 2008 |
| Replies: 7 Views: 2,562 I have been trying to concatenate two strings declared in the form of pointers i.e.
char* chars;
But the program crashes...
Here is the code:
char *chars1="ankit";
char... |
Forum: Geeks' Lounge Mar 12th, 2008 |
| Replies: 1,419 Views: 154,048 I am having the colder version... :) Cold Chocolate Shake ;) |
Forum: Geeks' Lounge Mar 7th, 2008 |
| Replies: 1,419 Views: 154,048 Those from India would probably understand better...hehe...
I ate the usual dinner, Dal,bhindi ki sabji and mango pickle + Guava juice. |
Forum: MySQL Mar 3rd, 2008 |
| Replies: 1 Views: 1,408 Hi everyone,
I was trying to setup MySql with Cygwin so that i can create and work on databases using my Windows OS.
After gruesome hours of googling, I am still confused as to how to do that. I... |
Forum: C++ Feb 10th, 2008 |
| Replies: 6 Views: 1,411 The main problem is inputting the expression...I need help on how to input the expression without the need to press enter after each operand or operator...Any help would be gr8! |
Forum: C++ Feb 10th, 2008 |
| Replies: 6 Views: 1,411 I guess i was in a hurry while writing this post, so i did mess up. Heading should have been Calculater in C++. Anyways, the code that i posted is not working and I can't seem to figure out whats... |
Forum: C++ Feb 9th, 2008 |
| Replies: 6 Views: 1,411 I am starting to develop a calculator in C++ which accepts the expression in the form:
2+3 or
2/3 ,etc. ( for the time being, only two operands and one operator) Once i get that done, I will begin... |
Forum: C Mar 12th, 2007 |
| Replies: 27 Views: 5,840 Ya rite. thnx. I will keep that in mind. Still waiting for the solution though!:) |
Forum: C Mar 12th, 2007 |
| Replies: 27 Views: 5,840 I am having a problem in sorting by name. for eg: if given two names Sameer and Sean, I want to print Sameer and not Sean. It needs to check character by character. I have to extend this to a greater... |
Forum: C Jan 30th, 2007 |
| Replies: 11 Views: 1,915 right...
I have trouble reading the code myself...lol. I sometimes overlook indenting while writing code since i am so eager to go on continuing with the next thing... |
Forum: C++ Jan 30th, 2007 |
| Replies: 2 Views: 1,174 How can i include graphics in my C program which is compiled in windows compiler like Dev-c++?
I was wondering whether it was possible to make the game "SNAKE" in C without using commands like... |
Forum: C Jan 30th, 2007 |
| Replies: 11 Views: 1,915 I do need a separate digit input :)
Me too, its easier to check for an error
@ Ancient Dragon : Congratulations from my side too and here's what I coded for solving the problem u mentioned... |
Forum: C Jan 30th, 2007 |
| Replies: 11 Views: 1,915 I was going to code to fix that as soon as my minor problem was solved :), which now is, Thnx |
Forum: C Jan 30th, 2007 |
| Replies: 9 Views: 2,702 thnx for pickin out a couple of glitches.
I was more intent on mentioning the movie the quote is frm :) |
Forum: C Jan 30th, 2007 |
| Replies: 9 Views: 2,702 I think this is definitely the method to input the category number and acc. copy the category name into the string. I dont think you even need a string array.
for eg:
int category;... |
Forum: C Jan 30th, 2007 |
| Replies: 11 Views: 1,915 I was starting off with making the game " Cows and Bulls".
And to start off i am having a problem in inputting the 4 digit number in a mannar that it appears in form of "*" on the screen. similar... |
Forum: C++ Jan 28th, 2007 |
| Replies: 19 Views: 3,561 UR rite:)
Actually I just copied the code right from the link and didn't bother to change the length since I was more concerned with the method. |
Forum: C Jan 28th, 2007 |
| Replies: 28 Views: 6,151 So does C/C++ do that? That means we always use return 0 to return the value to the OS so that the OS understands that the program run was a success. And it must be portable to use return 0 i think |
Forum: C++ Jan 28th, 2007 |
| Replies: 19 Views: 3,561 After reading the various methods of clearing the screen, I guess there is not a single method which extends portability to the language:eek:
Or is there?
So I think there is no point in trying... |
Forum: C++ Jan 27th, 2007 |
| Replies: 19 Views: 3,561 |
Forum: C++ Jan 27th, 2007 |
| Replies: 19 Views: 3,561 I agree wholly with u, graphics in C/C++ really suck but clearscreen is an often used function in C/C++. How can you do without it? When I make a menu, its impossible to work without clear... |
Forum: C++ Jan 27th, 2007 |
| Replies: 19 Views: 3,561 Really? I was getting fond of system functions. What do u mean by OS api functions? Can u give me an example. Like for Dev C++, i m using the system("cls") command for clearing the console, what shud... |
Forum: C Jan 27th, 2007 |
| Replies: 28 Views: 6,151 What you write is definitely correct. But dont you think C/C++ programming is mostly OS and platform dependent. So considering what developing and programming we all are doing, its always dependent... |
Forum: C++ Jan 27th, 2007 |
| Replies: 19 Views: 3,561 I absolutely knew that was coming! :)
I have learnt a lot since then. I assume you would have been unable to compile the program( due to the high volume of errors with your compiler and lack of... |
Forum: USB Devices and other Peripherals Jan 27th, 2007 |
| Replies: 0 Views: 956 I have this mouse which is causing me lots of problems from quite some time. It has a scroller in the middle. Whenever I scroll using the scroller, It keeps scrolling either back and forth and... |
Forum: C Jan 27th, 2007 |
| Replies: 28 Views: 6,151 But whats a freestanding program?Isnt every program run on top of a controlling program( i.e. OS )? Or do you mean writing an OS itself?
and is return 0 used because it returns the value 0 to OS... |
Forum: C++ Jan 27th, 2007 |
| Replies: 19 Views: 3,561 When I wrote this I was pretty amature ( before having learned many things here ) so I am quite sure your going to find a million mistakes in there, anyway i am attaching the code which I compiled in... |
Forum: C++ Jan 26th, 2007 |
| Replies: 19 Views: 3,561 I wanted you people's point of view on this project I made in C++ sometime back...I would be glad to recieve comments from anyone and everyone...Pls do check it out...So that I can know the quality... |
Forum: C Jan 26th, 2007 |
| Replies: 28 Views: 6,151 |
Forum: C Jan 26th, 2007 |
| Replies: 28 Views: 6,151 Hurray! Thanx a lot Ravalon you finally helped me out! The sscanf() method is the one I used. This problem had me stuck for quite a while...thnx again!!!:)
And i definitely will take your advice on... |
Forum: C Jan 26th, 2007 |
| Replies: 12 Views: 2,350 nvm? dont really know about pellesC :rolleyes: |
Forum: C Jan 26th, 2007 |
| Replies: 12 Views: 2,350 but does it matter which compiler your using? the syntax remains the same.
Oh ! so 'getch()' is not there :), do tell if the program works without getch() |
Forum: C++ Jan 26th, 2007 |
| Replies: 5 Views: 2,409 Thnx a ton! I never knew I could use the same file for storing different types of data. thnks. I tried your first method and it worked just fine. |
Forum: C Jan 26th, 2007 |
| Replies: 28 Views: 6,151 thnx Ravalon,
ok heres the code in which it isnt working. I might sound stupid but by making certain manipulations this program sometimes works and sometimes doesnt work! This one does NOT work. It... |
Forum: C++ Jan 26th, 2007 |
| Replies: 5 Views: 2,409 Hmm...I dont really get you can you be more explainatory?
How do i read till "EOF" in case of reading structure from a file. I use the following statement to read from file.
fread(&ph,... |
Forum: C Jan 26th, 2007 |
| Replies: 12 Views: 2,350 Are you sure you wrote the exact code? Because I am using Dev C++ and the program runs absolutely fine. So I am not sure why these errors are cropping up :eek: |
Forum: C Jan 26th, 2007 |
| Replies: 12 Views: 2,350 It is in loop so it prints the entire text; I dont get u, it just prints one character at a time
try the code, it works :confused: |
Forum: C++ Jan 26th, 2007 |
| Replies: 5 Views: 2,409 Hello every1
I was making this program of a phone directory to store contacts and all their information in C. I made use of structure and then copied the data of the structure to a file.
the... |
Forum: C Jan 26th, 2007 |
| Replies: 12 Views: 2,350 why dont u use getc and putc instead of fgets , the code would be so much less complicated
#define INFILE "config.txt"
#include <stdio.h>
#include <string.h>
void main()
{
char ch; |