Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to have the introductory part of my program to flash aspect
of the information contained in the welcome part of my program when i run it.
I dont know if this can be done so am asking

C++
{
    cout<< "\n********************************************************";
    cout<< "\n        WELCOME TO PROGRAM MATRIX";
    cout<< "\n********************************************************"<<endl;
    cout<< "\n This program was written by THE GANG OF THREE" << endl;
    cout<<"\n ";
    cout << " for:    Dr. T. Chambers" << endl << endl; 
    cout <<"\n Represents : Group Assignment for C++ 2011";
    cout<<"\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"<<endl;
    cout << "This program will solve a square linear system using Cramer's Rule." << endl;
    cout << "Ax = b, where :"<<endl;
    cout<<"\n               A is a square (n x n) coefficient matrix," << endl;
    cout <<"\n               x is a variable (n x 1) matrix, and."<<endl;
    cout<<"\n               b is a constant (n x 1) matrix." << endl;
    cout<<"\n"<<endl;

    return;
}
Posted
Updated 27-Nov-11 4:29am
v2
Comments
Richard MacCutchan 27-Nov-11 10:32am    
In a console program? You are kidding right?
Albert Holguin 28-Nov-11 14:16pm    
As many have already noted, this isn't the type of thing you'd typically do for a command line program. If you'd like, place a command line switch for help and that would be a more appropriate place to do something like this. For example, if someone types cmd -? you show the information and some help on the program.

If you are talking about blinking part of your text, (i.e. making it flash on and off) there is no direct way to do it for a console application. You can do it by manually overwriting the text with spaces, and sleeping before re-writing it and sleeping again, but that means that the application will become unresponsive to the user.

Bad idea - I wouldn't bother myself (but then I hate splash screens).
 
Share this answer
 
Comments
carlmack 27-Nov-11 10:28am    
ok well said, do you normally engage in programming and to what extent?
carlmack 27-Nov-11 10:34am    
just wondering/thinking how i can improve my programming skills
this program is to use craemer's rule to compute matrix operations
but i guess i need to sharpen my math skills, i need it to use in kirchoff's laws calculation
OriginalGriff 27-Nov-11 10:44am    
Stuff the puff bit at the front - it just wastes space. How many times are your users going to read that? Or does it just get in the way of what the tool is trying to do? By all means give them info on how to use it, but keep the programmer credits to an "about" or similar - if anyone is interested, they will look there.
Think about it: Console app - why do you write one, and why would you use one in preference to a GUI? Is it because you want to see your name on the screen, or because you want to do some matrix operations fast, and probably from a file or pipe, to a file or pipe.
OriginalGriff 27-Nov-11 10:39am    
Oh yes! Lots, and lots...and for more years than I care to remember! :laugh:
carlmack 27-Nov-11 10:49am    
i dont know if you will have the time to extend a hand is assisting a new comer to this field , when/where applicable,
i am a young electrical engineer just graduated and am trying some of what i learn, so what would take you a day , maybe will take me a month, but i wish to learn this art well, right now i am trying to do this program i need to use in kirchoff;s current and voltage laws to compute variables in atleast 5 branch circuit, i am using craemer's rult to do the computations, and i want someone whoo could look at my codes and give me some advise. also i currently uses Boreland C++ to compile these program cause thats what we were taught but my machine is a 64 bit and so sometimes i cant make it run, even though it compiles, can i sehow u do?
can i send my code and u look at it for me
Are you serious?

Consider this: you're opening the console to go to a directory and maybe rename some file. Now everytime you issue a cd command, a flashing screen suddenly appears, telling you:
********************************************************
        WELCOME TO PROGRAM CD
********************************************************
 This program was written by THE GANG OF ONE
 
 for:    Dr. I Diot


 Represents : Group Assignment for C / MSDOS 2.0 1983
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 This program will change your current directory with the syntax

  cd [directory], where :


               'cd' is the name of this command

               [directory] is the name of the directory you want to change to


Well ... just how long would you consider this funny? Judging by the lengths I go to to prevent all kind of flashy annoying stuff in my browser (and avoiding sites that I cannot restrain in that way), I can tell you that I would not consider it funny at all!

And: what has this to do with your assignment?

My advice: If you really want to try out doing that kind of stuff, go ahead and do it. I believe there are nonprintable chars, that, when printed, create this kind of effect. (at least this used to work back in the time of 8 bit computers, which is about the last time I tried anything like that). But do not show it to your instructor, or he will kill you!
 
Share this answer
 
Comments
Albert Holguin 28-Nov-11 14:14pm    
lol, I saw this question last night, I was about to comment this very same thing (in regards to the annoyance of seeing that every time you execute a command line program).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900