Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: hugh7
  • Order by date
  1. hugh7

    memory cannot be written

    I'll checkout codeguru and the Stroustrup book Thanks Hugh
  2. hugh7

    memory cannot be written

    Hi ArkM, Thanks again for the insight into the compiler. Its nice to know what's 'under' the hood, so to speak. I will study it. I'm slowly progressing. Is there a good site on line with info on the string library? I need that 'good luck' Hugh
  3. hugh7

    memory cannot be written

    Hi ArkM Thank you for your reply. Please pardon my ignorance but I'm not sure what you mean by "refer to these (constant!) arrays of char with blanks", I will use your suggestions for correcting my 2nd snippet. Could you give me a short example of using std::string input? Thanks...
  4. hugh7

    memory cannot be written

    Hi ArkM Thank you for your patience. I want to declare an array of pointers to char which I will later fill from a text file. I'm not sure how to initialize it. In the code below the output is just some spaces. What's happening to what I type in? //checkarr1 #include <iostream> #include...
  5. hugh7

    memory cannot be written

    I'm using Visual C++ and #include <iostream> using namespace std; I initialize a pointer to char at compile time with char *can1[2]={&quot; &quot;} ; If I try to write to it I get an error that the memory cannot be written So then I tried getting new memory at runtime with for...
  6. hugh7

    find &quot;\n&quot; in simple string

    Hi Blazero, Do you mean my 'method'? I thought I would step through the string , character by character and find the line breaks. That's it. Since I'm only a beginner with C++ this is all I could come up with. I'll study your example. It certainly looks more compact. I've been reading about...
  7. hugh7

    find &quot;\n&quot; in simple string

    Hi ArkM, I'll give your suggestion a try. Thanks Hugh
  8. hugh7

    find &quot;\n&quot; in simple string

    Hi CD ..Ah the braces! Thanks for the help Hugh
  9. hugh7

    find &quot;\n&quot; in simple string

    I'm trying to find the number of newline characters in a simple string but keep getting 0 for the variable numline. What can I do to find the two little newline commands? Here is my code: (as you can see I'm a beginner) //stringstep #include <iostream> using namespace std; int endline=0 ...
  10. hugh7

    sizeof array

    Hi vladibo, See my post to Zeit. I will try what you suggested. I don't know what include file is necessary for Console::Writeline . I'll look it up Thanks Hugh
  11. hugh7

    sizeof array

    Hi zeitghost No you aren't missing something. Its got to be me. I was trying to initialize a 2 dim array and if I didn't make a pointer, as in my first post I got an compile error. I was further confused by the fact that I can get the values of the array elements with out the dereferencing...
  12. hugh7

    sizeof array

    Hi vladibo, Thanks for the quick respone. I'm lost here . If I try sizeof(myarray) / sizeof(myarray[0]) I get 2 . Surely the whole array can't be 2 bytes? I did myarray[2][2] to make a 2 dimensional array. Maybe this is the wrong way to initialize a 2 dim. array? I thought the whole...
  13. hugh7

    sizeof array

    I initialize an array as follows and get a sizeof( ) 16 . From what I've read I should get the size of the whole array. char *myarray[2][2]={&quot;c:\\bigfold\\subfold\\pracnotes.dbf&quot;, &quot;c:\\pracnotes2.dbf&quot;, &quot;c:\\bigfold\\subfold\\pracnotes.fpt&quot...
  14. hugh7

    need list of files in directory

    That's good news Hugh
  15. hugh7

    need list of files in directory

    Hi Ion, Thanks for the reply. I can see that as I learn C++ I will need to learn more about the WinAPI. I suppose Mac's have their own API. Hugh
  16. hugh7

    need list of files in directory

    Thanks for the code sample. I will give it a try and check out the windows.h header. I take it that FindFirstFile() is part of the windows.h header? Hugh
  17. hugh7

    need list of files in directory

    I need to get a list of text files on a: drive . How can I do this? I will then load the file names into an array in order to open each file and then append to another text file. Thanks for any ideas.
  18. hugh7

    copy file and effect on dbf file

    hi ArkM, Thanks again for the examples. I will try them both. I certainly need to learn more. Since my last post I tested a few other examples and they all messed up at exactly the same spots in the header part of the file. Do you recommend B. Stroustrup's book for learning C++? What...
  19. hugh7

    copy file and effect on dbf file

    Hi ArkM I will try what you suggest. I not sure how to code what you suggest re ios::binary or the setbuf. I had looked at Microsoft for a copyfile function but couldn't find it . Thanks for that sample I will try it. I also compared the copied file ( made by using the code in my original...
  20. hugh7

    copy file and effect on dbf file

    Hi obislavu I will try your sample. Thanks for the tip. Hugh

Part and Inventory Search

Back
Top