Search:

Type: Posts; User: mcertini

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,524

    Answer

    I am trying to insert a variable in a SQL string but am not having any success in finding the proper sytax. I am coding in C++. Listed below is code section I am trying to figure out. This code is...
  2. Copying From Single Dimension Array To Multiple Dimension Array

    I am currently trying to copy the contents from a single dimension array to a multiple dimension array using pointer notation. I though am having problems doing so. Can someone out there show me how...
  3. Replies
    5
    Views
    1,168

    Solution

    Elysia,

    This is the solution that was posted by WayneAKing in the Visual C++ Developer Center forum. This is his response to an error message I posted. This guy knows everything. My program is...
  4. Replies
    5
    Views
    1,168

    Mr. 777, No they have different names.

    Mr. 777,

    No they have different names.
  5. Replies
    5
    Views
    1,168

    VS 2008 Configuration For Libraries

    I just recently tried to create a library and then use the library functions within a simple console application. I followed the instructions at:

    Visual C++ Examples: Static Libraries

    After...
  6. Replies
    1
    Views
    910

    Variable In SQL String

    I am currently trying to code a variable into a SQL string that is used with ADO to create a record within a database. I though am having problems with the proper syntax for a variable. The string...
  7. Thread: Array Issue.

    by mcertini
    Replies
    7
    Views
    1,291

    Adak, Thank you for your reply. I am a rookie...

    Adak,

    Thank you for your reply. I am a rookie programmer. I will follow your direction by memorizing the algorithm you posted. After further review, I now see how the iteration in the code...
  8. Thread: Array Issue.

    by mcertini
    Replies
    7
    Views
    1,291

    Answer

    Adak,

    Thank you for your reply.

    Posted on different site:

    You are incrementing cyc unnecessarily in your for loop when you are copying.

    try this
  9. Thread: Array Issue.

    by mcertini
    Replies
    7
    Views
    1,291

    Array Issue.

    I put together a program that takes a list of numbers in an array and sorts them by copying out of the first array into a second array when the value in the first array matches the maximum array...
  10. Replies
    8
    Views
    3,013

    Bayint Naung, Yes, I did note it and...

    Bayint Naung,

    Yes, I did note it and successfully converted with this conversion as well. Is this a better conversion?
  11. Replies
    8
    Views
    3,013

    Answer.

    Through research the following was derived from an MSDN website:



    #define ARR 65500 //Total Records
    #define TARGSIZE 11 //Field Length

    char Date[ARR][TARGSIZE] = {};
    ...
  12. Replies
    8
    Views
    3,013

    Second version of strcpy is not necessary.

    Second version of strcpy is not necessary.
  13. Replies
    8
    Views
    3,013

    Char To String & Save In Array.

    I am currently taking data from a database that is in the form of char data and attempting to convert to a string and then saving in a char array. It appears that these strings have to be saved in a...
  14. Replies
    2
    Views
    1,175

    R.Stiltskin Excellent! It works great. Thank...

    R.Stiltskin

    Excellent! It works great. Thank you for your help.
  15. Replies
    2
    Views
    1,175

    String Conversion

    I am currently trying to convert a string that resides in a _bstr_t variable vFieldDate into a char array. I have found that I can type cast this via the (char *) with a variable I named holder...
  16. Replies
    6
    Views
    1,593

    Elysia, It was put together in C++.

    Elysia,

    It was put together in C++.
  17. Replies
    4
    Views
    1,715

    Answer

    laserlight,

    Thank you for your reply. As you state and what I have learned from another poster:

    isalpha returns zero if the given character is not an alphabet.
    Returns non-zero if it is...
  18. Replies
    4
    Views
    1,715

    Isalpha Function Issue

    In the below code, I am attempting to count the number of letters and number of words in a phrase. In researching the return values of isalpha(), I noted that when a letter is present the first...
  19. Replies
    6
    Views
    1,593

    Corrected Version.

    Laserlight,

    Thank you for your reply. The following includes corrections:


    #include <stdio.h>
    #include <conio.h>

    #define Artichoke 1.25
    #define Beets .65
  20. Replies
    6
    Views
    1,593

    While Statement Issue.

    In the below code I have put together a text example of a shopping cart whereby the user selects a commodity to purchase and based upon a menu selection, tells the program which leg in my switch...
  21. Replies
    6
    Views
    2,086

    nimitzhunter and tabstop, Thank you both for...

    nimitzhunter and tabstop,

    Thank you both for your reply.

    What I have learned is that first off, the input into the console screen needs to be a number and a space. When the numbers to be...
  22. Replies
    6
    Views
    2,086

    Populate An Array With Numbers

    I am having problems with populating an array with int numbers. Since I am a new programmer, I do not know why my VS 2008 is not completing the code block. In other words when I execute the program,...
  23. Jimblumberg, Thank you for your response. ...

    Jimblumberg,

    Thank you for your response. This is my first program and I now I recognize the function scope issue. I recall from my study this issue.
  24. Posting Style.

    Elysia,

    Thank you for your response. I will remember to indent my code next time.
  25. Passing Array To Function & Display Array Contents

    I am a newbie to C++ and am trying to pass an array to a function and then display the contents of this array through the function. The array is populated through a different function though both...
Results 1 to 25 of 28
Page 1 of 2 1 2