Search:

Type: Posts; User: edshaft

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    771

    Translator continued

    I did the 2d array and i can get the stuff in,but it wont add, sub, div, or mlt right and the output comes out all wrong.



    #include "stdafx.h"
    #include <fstream.h>
    #include <iostream.h>...
  2. Thread: Translator

    by edshaft
    Replies
    8
    Views
    1,091

    I changed it around a little. Now I have a...

    I changed it around a little. Now I have a rpoblem with making the while loop work. it says ++ needs an lvalue.


    #include "stdafx.h"
    #include <fstream.h>
    #include <iostream.h>
    #include...
  3. Thread: Translator

    by edshaft
    Replies
    8
    Views
    1,091

    still doesn't like it. now it is yelling about...

    still doesn't like it. now it is yelling about the file.getline
  4. Thread: Translator

    by edshaft
    Replies
    8
    Views
    1,091

    The main problem is that when it gets to the code...

    The main problem is that when it gets to the code with trying to read in the file it gives me errors. It says things like infile is not part of ios.
  5. Thread: Translator

    by edshaft
    Replies
    8
    Views
    1,091

    Translator

    I seem to be having trouble with the file input output what I am I doing wrong with this prorgam?




    #include "stdafx.h"
    #include <fstream.h>
    #include <iostream.h>
    #include <iomanip.h>...
  6. Thread: help!!

    by edshaft
    Replies
    7
    Views
    932

    Well basically it is a simply translator that...

    Well basically it is a simply translator that adds, subtracts, divides, & Multiplies. You write it in the code like
    add a,b
    and its read it in and coverts it into C++ does the work and spits out...
  7. Thread: help!!

    by edshaft
    Replies
    7
    Views
    932

    sorry. I forgot the tags and the message it gives...

    sorry. I forgot the tags and the message it gives meis that its ends unexpectedly, but everything seems perfect, but yet it is still yelling at me.
  8. Thread: help!!

    by edshaft
    Replies
    7
    Views
    932

    help!!

    What's wrong with this thing?


    #include <iostream.h>
    #include <afx.h>

    void In(char var)
    {
    int x = 0;
    while(var != letters[x] && x < 26)
  9. Thread: traverse ?

    by edshaft
    Replies
    2
    Views
    829

    ooooh thanx thats just want i needed a simple...

    ooooh thanx thats just want i needed a simple little definiton that my brain could understand

    BODYSLAMMIN' 4EVER
  10. Thread: traverse ?

    by edshaft
    Replies
    2
    Views
    829

    traverse ?

    i was wondering why stacks and queues r not traversable in data structures because the books i read dont really explain why so im kind of confused
  11. Replies
    2
    Views
    1,016

    yes i do need all of this code it has to be a...

    yes i do need all of this code it has to be a data structure use Stacks and Queues as i stated
    whatelse am i doinng wrong
  12. Replies
    2
    Views
    1,016

    palindrome trouble

    I'm doing a data structure program where i write in a palidrome it puts it into a stack then into a queue then back to the stack and it also verifies that it is or isnt a palindrome what am i doing...
  13. Thread: help please!!

    by edshaft
    Replies
    18
    Views
    1,917

    ok i tried the strncpy and some other stuff and...

    ok i tried the strncpy and some other stuff and im getting stumped i will try it w/arrays later i just want to fix what i have right now and when i enter a roman numeral i converts it to zero i sure...
  14. Thread: help please!!

    by edshaft
    Replies
    18
    Views
    1,917

    I tried to do what Salem told me and i have one...

    I tried to do what Salem told me and i have one error that says that
    D:\Microsoft Visual Studio\Work\roman\roman.cpp(9) : error C2440: 'initializing' : cannot convert from 'char' to 'char [40]'
    ...
  15. Thread: help please!!

    by edshaft
    Replies
    18
    Views
    1,917

    help please!!

    i am doing a roman numeral program and i easily got it to convert from regular #s to roman numerals but im having a problem w/ making roman numerals to regular numbers could some one help me please...
  16. Thread: help!!!

    by edshaft
    Replies
    1
    Views
    760

    help!!!

    This program seems like it should work but it isn't it is probably something stupid that im doing wrong,but i cant figure it out
    i dont really know how to use code tags so if u can not read this u...
  17. Replies
    3
    Views
    4,069

    sorry about that boys but it is all right because...

    sorry about that boys but it is all right because i figured it out :cool:
  18. Replies
    3
    Views
    4,069

    can anyone help because i still cant get any...

    can anyone help because i still cant get any better than the code i posted:confused:
  19. Thread: help!!

    by edshaft
    Replies
    7
    Views
    779

    thanx good enough my man :cool: :cool:

    thanx good enough my man
    :cool: :cool:
  20. Replies
    3
    Views
    4,069

    merging arrays using pointers help!!!

    here is the original code it works but it must use pointers so it is not considered correct help?
    int array(int a[], int na){
    for(int ia=0, ia<na;ia++){
    cout<<"Enter a number: ";
    ...
  21. Thread: help!!

    by edshaft
    Replies
    7
    Views
    779

    i have to put part of the program in a function ...

    i have to put part of the program in a function
    but as u can see from what i tried it almost worked but has a few bugs i have that part as the first reply
  22. Thread: help!!

    by edshaft
    Replies
    7
    Views
    779

    that's all good but i need a user defined funct...

    that's all good but i need a user defined funct not one from a library
  23. Thread: help!!

    by edshaft
    Replies
    7
    Views
    779

    here's what i tried it sort of works but it...

    here's what i tried it sort of works but it doesnt randomly pick it always gives
    a dog skipped to any car.
    help?




    #include "stdafx.h"
    #include <cstdlib>
    #include <iostream>
  24. Replies
    2
    Views
    1,267

    thanx it worked i knew it was going to be...

    thanx it worked i knew it was going to be something simple but i just couldnt figure it out
    anyway THANX!!:) :) :) :) :D :cool:
  25. Replies
    2
    Views
    1,267

    help w/another program!!!

    i have this object program and it basically works but when it returns length, area, etc it gives me a negative totally incorrect answer help??!!
    for more info look at thread called Rectangle class
    ...
Results 1 to 25 of 45
Page 1 of 2 1 2