Blogs RSS
Forums RSS
DaniWeb Home
>
Forums
>
Search Forums
Search Results
•
•
•
•
Showing results 1 to 40 of 43
Search took
0.01
seconds; generated 2 minute(s) ago.
Posts Made By:
ankit_the_hawk
Refine this Search
Save these search results for 24 hours
Page 1 of 2
1
2
>
Forum:
C++
Apr 20th, 2008
Replies:
7
Concatenating strings declared in the form of pointers (char*)
Views:
958
Posted By
ankit_the_hawk
Re: Concatenating strings declared in the form of pointers (char*)
: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
Concatenating strings declared in the form of pointers (char*)
Views:
958
Posted By
ankit_the_hawk
Concatenating strings declared in the form of pointers (char*)
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 *chars2="sameer";
...
Forum:
Geeks' Lounge
Mar 12th, 2008
Replies:
1,092
What are you eating/drinking right now?
Views:
66,658
Posted By
ankit_the_hawk
Re: What are you eating/drinking right now?
I am having the colder version... :) Cold Chocolate Shake ;)
Forum:
Geeks' Lounge
Mar 7th, 2008
Replies:
1,092
What are you eating/drinking right now?
Views:
66,658
Posted By
ankit_the_hawk
Re: What are you eating/drinking right now?
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
Problem installing MySql on Cygwin
Views:
703
Posted By
ankit_the_hawk
Problem installing MySql on Cygwin
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
Creating Calulator in C
Views:
907
Posted By
ankit_the_hawk
Re: Creating Calulator in C
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
Creating Calulator in C
Views:
907
Posted By
ankit_the_hawk
Re: Creating Calulator in C
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
Creating Calulator in C
Views:
907
Posted By
ankit_the_hawk
Creating Calulator in C
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
Problem in sorting by name
Views:
4,206
Posted By
ankit_the_hawk
Re: Problem in sorting by name
Ya rite. thnx. I will keep that in mind. Still waiting for the solution though!:)
Forum:
C
Mar 12th, 2007
Replies:
27
Problem in sorting by name
Views:
4,206
Posted By
ankit_the_hawk
Problem in sorting by name
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
Minor problem
Views:
1,319
Posted By
ankit_the_hawk
Re: Minor problem
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
Graphics in C
Views:
871
Posted By
ankit_the_hawk
Graphics in C
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 gotoxy...
Forum:
C
Jan 30th, 2007
Replies:
11
Minor problem
Views:
1,319
Posted By
ankit_the_hawk
Re: Minor problem
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 earlier...
Forum:
C
Jan 30th, 2007
Replies:
11
Minor problem
Views:
1,319
Posted By
ankit_the_hawk
Re: Minor problem
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
converting Enum type from int to char
Views:
1,715
Posted By
ankit_the_hawk
Re: converting Enum type from int to char
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
converting Enum type from int to char
Views:
1,715
Posted By
ankit_the_hawk
Re: converting Enum type from int to char
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;
printf("Enter...
Forum:
C
Jan 30th, 2007
Replies:
11
Minor problem
Views:
1,319
Posted By
ankit_the_hawk
Minor problem
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 to...
Forum:
C++
Jan 28th, 2007
Replies:
19
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
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
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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 to...
Forum:
C++
Jan 27th, 2007
Replies:
19
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
Thanx!
Forum:
C++
Jan 27th, 2007
Replies:
19
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
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
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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:
Peripherals
Jan 27th, 2007
Replies:
0
Mousy problem
Views:
746
Posted By
ankit_the_hawk
Mousy problem
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
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
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
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Re: Quality check
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
Quality check
Views:
2,795
Posted By
ankit_the_hawk
Quality check
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
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
A big thank you!
Forum:
C
Jan 26th, 2007
Replies:
28
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
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
Help with file read/write plz
Views:
1,764
Posted By
ankit_the_hawk
Re: Help with file read/write plz
nvm? dont really know about pellesC :rolleyes:
Forum:
C
Jan 26th, 2007
Replies:
12
Help with file read/write plz
Views:
1,764
Posted By
ankit_the_hawk
Re: Help with file read/write plz
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:
4
file handling in C
Views:
1,564
Posted By
ankit_the_hawk
Re: file handling in C
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
gets() problem in C
Views:
4,253
Posted By
ankit_the_hawk
Re: gets() problem in C
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:
4
file handling in C
Views:
1,564
Posted By
ankit_the_hawk
Re: file handling in C
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, sizeof(ph),...
Forum:
C
Jan 26th, 2007
Replies:
12
Help with file read/write plz
Views:
1,764
Posted By
ankit_the_hawk
Re: Help with file read/write plz
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
Help with file read/write plz
Views:
1,764
Posted By
ankit_the_hawk
Re: Help with file read/write plz
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:
4
file handling in C
Views:
1,564
Posted By
ankit_the_hawk
file handling in C
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
Help with file read/write plz
Views:
1,764
Posted By
ankit_the_hawk
Re: Help with file read/write plz
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;
Showing results 1 to 40 of 43
Page 1 of 2
1
2
>
Forum Highlights
Today's Posts
All Forums
Unanswered Threads
All Forums
Forums
|
Blogs
|
Tutorials
|
Code Snippets
|
Whitepapers
|
RSS Feeds
|
Advertising
All times are GMT -4. The time now is
6:27 am
.
Newsletter Archive
-
Sitemap
-
Privacy Statement
-
Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC