Search:

Type: Posts; User: genjiguy

Search: Search took 0.02 seconds.

  1. Replies
    34
    Views
    6,458

    Not to undermine anyone here, but I go to Full...

    Not to undermine anyone here, but I go to Full Sail currently, which is a video game development school, and we focus on C++ here. Yet time and time again we have been told that unless you are truly...
  2. Thread: "Bad Bit"

    by genjiguy
    Replies
    2
    Views
    1,107

    "Bad Bit"

    I'm currently experimenting around with how to break things within the bits in a stream. As far as I know there are 3 "naughty bits". There is a "fail bit", an "end of file bit" and a "bad bit". As...
  3. Replies
    5
    Views
    2,279

    Hey there, I know how you feel man. I was in the...

    Hey there, I know how you feel man. I was in the same boat as you not too long ago. Post your code here and I'll see if I can help you out. But I will say that we really can't just give you answers,...
  4. Replies
    8
    Views
    1,189

    I've looked through and have started to use...

    I've looked through and have started to use vectors instead of arrays, but how would I go about adding a value to a certain element of a structure through an element. I know that with an array I can...
  5. Replies
    8
    Views
    1,189

    ok, I'll have to look up a few more things then,...

    ok, I'll have to look up a few more things then, thnx for the help fellas
  6. Replies
    8
    Views
    1,189

    hmm, well, I'm not too familiar with pointers...

    hmm, well, I'm not too familiar with pointers right now, any other way to do it?
  7. Replies
    8
    Views
    1,189

    Array manipulation.

    Is there any way to go about deleting a single item from an array, without altering the other iems?
  8. Replies
    6
    Views
    1,160

    whoops, wrong order there, that was an old...

    whoops, wrong order there, that was an old iteration of it, I did get it to work though by just altering the order slightly, thnx again :cool:
  9. Replies
    6
    Views
    1,160

    I changed the line around to look like this now:...

    I changed the line around to look like this now:


    cout << "\nID# for customer " << setfill('0') << setw(4) << file[n].custname << " is " << file[n].custID << endl << endl;

    now it works like a...
  10. Replies
    6
    Views
    1,160

    this is the line of code that I have put it into:...

    this is the line of code that I have put it into:



    cout << setfill('0') << setw(4) << "\nID# for customer " << file[n].custname << " is " << file[n].custID << endl << endl;


    still doesn't...
  11. Replies
    6
    Views
    1,160

    Output formatting

    Is there any way that I can format my output so that instead of outputting "1" it will output "0001"?
  12. Replies
    3
    Views
    981

    oh yeah, forgot to mention, it's not working at...

    oh yeah, forgot to mention, it's not working at the moment..
  13. Replies
    3
    Views
    981

    well, right now this is the particular code that...

    well, right now this is the particular code that I'm using



    cprn.open("LPT1");
    cprn << file.custname << endl;
    cprn << file.custID;
    cprn << file.subadd.streetnum << " " <<...
  14. Replies
    3
    Views
    981

    Output to a printer

    Hi everyone, I was just wondering, how would I go about sending information straight to a printer?
  15. Replies
    3
    Views
    4,916

    Well, I got it all to work now, except for the...

    Well, I got it all to work now, except for the fact that when one of the arrays runs out of items I get a run-time error because of falling out of bounds of the array. How do I account for that and...
  16. Replies
    3
    Views
    4,916

    Help With Merging Sorted Lists of Strings

    I am presently working on taking two lists of strings, sorting them, and then merging them into one list of strings that is already sorted without sorting the third list. So far this is the code that...
  17. Thread: Help please.

    by genjiguy
    Replies
    10
    Views
    1,173

    Just wanted to post to let you know that i did...

    Just wanted to post to let you know that i did figure that problem out. I just kinda tinkered with it (got a TON of errors) but ended up with this as my result:



    for (j = 0; j <499; j++)
    {...
  18. Thread: Help please.

    by genjiguy
    Replies
    10
    Views
    1,173

    thanks for your help and I'll be sure that my...

    thanks for your help and I'll be sure that my future posts are a little more thought out before I put them up. I'll just keep plugging away at it.
  19. Thread: Help please.

    by genjiguy
    Replies
    10
    Views
    1,173

    As of now this is what I have written in: ...

    As of now this is what I have written in:


    #include <iostream>
    using namespace std;

    int main()
    {
    int prime[500];
    int test = 3;
  20. Thread: Help please.

    by genjiguy
    Replies
    10
    Views
    1,173

    I apologize if by my post it seemed as if I had...

    I apologize if by my post it seemed as if I had not attempted the problem. So far I have been working on it for about 3 days now. I understand that to find a prime number I need to divide each...
  21. Thread: Help please.

    by genjiguy
    Replies
    10
    Views
    1,173

    Help please.

    I am currently working on a project for my C++ course and it requires that i find the first 500 prime numbers using an array. How would I go about doing this?
Results 1 to 21 of 21