Search the web
Sign In
New User? Sign Up
cprogramming2 · C Programming Turning caffeine into code
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 2770 - 2799 of 8312   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2770
hi - am trying to solve a problem and I'm getting now-where: <br><br>I am trying to teach my self C - <br><br>here an exercise question from a book I am trying...
arrayblues27
Offline Send Email
Mar 1, 2002
1:13 pm
2771
once you get the name of the files, either from the command line or from your scanf function(have you considered gets()?), they are strings, and you can use...
metland
Offline Send Email
Mar 1, 2002
4:08 pm
2772
first off cheers for your help - slowly I am getting there. <br><br>my next problem is the move command - how would I go about this - how do I move a file - is...
arrayblues27
Offline Send Email
Mar 5, 2002
1:37 pm
2773
&gt;my next problem is the move command - how would I go about this - how do I move a file - is the copy command not the same?&lt;<br><br>Usually, "move" is...
oldcootfromVA
Offline Send Email
Mar 6, 2002
3:17 am
2774
thank you and its nice to know am getting some where - I came up with the same idea myself arter about 3 hours ripping my hair out - well what i have left! but...
arrayblues27
Offline Send Email
Mar 6, 2002
10:08 am
2775
Hi! When I use malloc, there is sometimes a limit in the size of the block I can allocate, but I know there's enough memory in the compouter. Is there an ...
slash8314
Offline Send Email
Mar 6, 2002
2:24 pm
2776
on DOS or console, the first argument, argv[0], is the drive,path, and name of the program... for instance: "c:\vc\test.exe". so there is always at least one ...
metland
Offline Send Email
Mar 6, 2002
2:59 pm
2777
yes it does thank you - <br><br>can I be so bold as to ask another question well two more, <br><br>firstly - my delete command should give the user the ...
arrayblues27
Offline Send Email
Mar 6, 2002
4:52 pm
2778
Try using strstr() instead of strtok().<br>--Tom...
bates320
Offline Send Email
Mar 6, 2002
4:56 pm
2779
ok so how do strstr searches for the first occurrence of its second string arugment in its first string? <br><br>each line of the file = 1 string?<br>then ...
arrayblues27
Offline Send Email
Mar 6, 2002
5:06 pm
2780
I would start off with fgets() to read each line, and then pass the pointer to your line buffer (character array) to the strstr() function.<br><br>--I'm ...
bates320
Offline Send Email
Mar 6, 2002
9:20 pm
2781
You should have a function called realloc(). It will allow you to extend the size of your current block. But beware. It works (if additional memory is ...
bates320
Offline Send Email
Mar 6, 2002
11:37 pm
2782
The problem with reading a line of data from a file, is that you have to guess how big the largest line is going to be. We'll guess that the longest line have...
bates320
Offline Send Email
Mar 6, 2002
11:53 pm
2783
#define MAX 80<br><br>FILE *Fp=NULL;<br>char haystack[MAX]<br>char *needle_pointer;<br><br>while(fgets(Fp, MAX, String)){<br> /* needle is the substring */<br>...
biffsocko
Offline Send Email
Mar 7, 2002
6:43 pm
2784
ok - 3 questions - <br><br>Question 1<br><br>is there somewhere I can go to see sample code - program for c. the course that I'm doing is fine and I understand...
arrayblues27
Offline Send Email
Mar 12, 2002
10:41 am
2785
Hi all,<br><br>I'm just getting into C and am learning about using stacks. However, I am now stuck with push() not working as expected. <br>Code below: file is...
ganz_gescheit
Offline Send Email
Mar 12, 2002
11:46 pm
2786
It looks like you want to push "character pointers" on you stack, but you are telling the compiler to reserve an array of characters (...this should be an ...
bates320
Offline Send Email
Mar 13, 2002
12:52 am
2787
phew, of course! Thanks, Tom. - D...
ganz_gescheit
Offline Send Email
Mar 13, 2002
1:02 am
2788
This is a reply to your 2nd question.<br><br>your code contained the following lines of code.<br> while(fgets(line, sizeof(line), in_stream))<br> tokenPtr = ...
looser_sc
Offline Send Email
Mar 13, 2002
6:45 pm
2789
if you are only wanting to see if the string entered for the filenames are the some try using the function strcmp. It will compare the two strings and return 0...
looser_sc
Offline Send Email
Mar 13, 2002
6:52 pm
2790
A beginners question: How do you convert a value stored as a long data type to a string?...
pierremk_uk
Offline Send Email
Mar 15, 2002
10:25 am
2791
I would tend to use sprintf() to convert (and format) anything to a string.<br><br>--Tom...
bates320
Offline Send Email
Mar 15, 2002
11:57 am
2792
Does anybody know if its possible to use getchar() to get say 4 characters from they keyboard then allow the rest of the program to go on? I dunno if I've ...
chris_y2k_2000
Offline Send Email
Mar 16, 2002
6:35 pm
2793
This is a question about "buffered input" vrs "unbuffered input". <br><br>Normally, "C" will allow your operating system to do the simple line editing tricks ...
bates320
Offline Send Email
Mar 16, 2002
9:45 pm
2794
Hi all. Hope someone can help me out here.<br><br>Im trying to learn C, and i am currently on the subject of Arrays - this one question is really annoying me...
wopbangle_97
Offline Send Email
Mar 16, 2002
11:18 pm
2795
I've read your query about 5 times. This is the kind of thing that I hate. Even when you get done, you won't know if its right.<br><br>Let's start with one ...
bates320
Offline Send Email
Mar 17, 2002
2:17 am
2796
Thanks for your help Tom - much appreciated.<br><br>Tell me, ive just started C programming ( well, actually, ive been sort of reading about it for about a ...
wopbangle_97
Offline Send Email
Mar 17, 2002
5:29 pm
2797
If you want to start at the top (...a senior position) you should know your stuff, and have experience too.<br><br>But then in the real world, no one starts at...
bates320
Offline Send Email
Mar 17, 2002
11:34 pm
2798
#include &lt;stdio.h&gt;<br>#define PI 3.14159 <br>/* Types defining the components needed to represent each shape. */<br>typedef struct {double area,<br> ...
faithhillfan22
Offline Send Email
Mar 18, 2002
2:57 am
2799
I downloaded your code. I notice that there is an interaction between the getchar() and the scanf() functions. What do you need help with?<br><br>--Tom...
bates320
Offline Send Email
Mar 18, 2002
11:23 pm
Messages 2770 - 2799 of 8312   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help