CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RSASKA

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,006

    Re: Need help to trace java code

    Goodness, now I realize. At case 9 it appends 9 to string s, then it drops down to case 10, prints 10 and then breaks from the switch. Then the for loop continues where x is incremented to 10 and...
  2. Replies
    3
    Views
    1,006

    Need help to trace java code

    Hello,

    I am studying for SCJP 6 Exam, and came across this question which shows code as asks for the output




    3. public class Ebb {
    4. static int x = 7;
    5. public static void...
  3. Re: Want to use Try-Throw-Catch to recover from unpredictable behavior

    That's a good point. I'll work on converting the code from C to C++ (I'm not an experienced programmer, hence using C may introduce more security bugs in my case)
  4. Re: Want to use Try-Throw-Catch to recover from unpredictable behavior

    Having an EXIT option is a good point, just in case the person wants to terminate the program

    My intent for using try-throw-catch was to create robust code. If a program can be made to act...
  5. Want to use Try-Throw-Catch to recover from unpredictable behavior

    Hello,

    I am creating code that seemed fine, except when I entered a single character, or strings instead of numbers, the console continually prompts for user input and it is difficult to terminate...
  6. Want to display error message to console before immediately terminating program

    Hello,

    I am trying to create a function that compares lower and upper bound IP addresses. If the lower bound IP address is greater than the upper bound IP address I would like the program to
    ...
  7. Replies
    8
    Views
    3,951

    Re: How to redirect system console output to file

    The code uses ofstream.

    How would I write the output of a command to a file, I am really clueless about this.

    Case in point, cmd is assembled and written to outputx
  8. Replies
    8
    Views
    3,951

    Re: How to redirect system console output to file

    Still no luck with


    C:\[name of scipt.exe] > filetooutput.txt


    I forgot to mention, this is an interactive script, i.e. it prompts the user to select an option and based on that option, it...
  9. Replies
    8
    Views
    3,951

    How to redirect system console output to file

    Hello,

    There is a script that I have been tasked to run and modify.

    However, I am having quite difficulty in understanding the signifigance of return codes, and it would make my life easier if...
  10. Replies
    6
    Views
    1,197

    Re: Program ignores return code in procedures

    Speedo, now it makes sense. I'll re-structure my code accordingly.

    Thanks everyone!
  11. Replies
    6
    Views
    1,197

    Re: Program ignores return code in procedures

    Please see attached code:




    # include <iostream>
    # include "stdafx.h"
    # include <fstream>
    # include <string>
    # include <time.h>
  12. Replies
    6
    Views
    1,197

    Program ignores return code in procedures

    I have created a procedure, exitFailure() that is invoked if a file doesn't exist:



    int exitFailure()

    {//start exitFailure()

    printf("Failure, hit any key to exit and press enter.\n");...
  13. Replies
    1
    Views
    1,366

    Adding a C++ library to Visual Studio 2008

    Hello,

    I am using Visual Studio 2008 to program in C++. My program needs to read in a line, break it into two strings. It seems that the String Toolkit Library (StrTk)...
  14. Re: Difficulty reading from two files simultaneously

    I added numFile.clear(); and it works, thanks!
  15. Replies
    3
    Views
    1,731

    Re: Must learn Java and .NET

    Actually, I'm kind of not sure what program is going to be used. Just borrowed a book, ASP.NET MVC Framework Unleashed (ISBN: 9780768689815), perhaps that may help.
  16. Re: Difficulty reading from two files simultaneously

    Good Morning,

    I added logic to the code such that:

    1. prompt user for name of letter file
    2. prompt user for name of number file
    3. check whether letter file can be open
    4. close letter file...
  17. Replies
    3
    Views
    1,731

    Must learn Java and .NET

    Good Afternoon,

    I have been tasked to create a program using Java and .NET application. Java tutorials can be found by googling for them, however I've been trying to look for tutorials on .NET...
  18. Re: Difficulty reading from two files simultaneously

    Paul, I tried out the code, it compiles and when it runs, I see the terminal screen pop-up with it listing characters before exiting. I'll introduce the other logic to get it fully functional.

    ...
  19. Difficulty reading from two files simultaneously

    I am trying to write a program that

    1. opens letterFile containing letters on each line
    2. reads in first line of letterFile
    3. save the pointer position of letterFile in pos
    4. opens numFile...
  20. [SOLVED] Assign value to element in dynamic array, turns out to be NULL

    Awesome, it now works, thanks!
  21. Assign value to element in dynamic array, turns out to be NULL

    Hello,

    I am developing code to

    1. read the number of lines in a file ipFile, and store that value in ipLength
    2. create a dynamic array ipArray of size ipLength
    3. initialize ipArray
    4....
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured