Search:

Type: Posts; User: Luigi

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Link Error

    by Luigi
    Replies
    1
    Views
    2,003

    Link Error

    I get several link errors when i try to compile my project..
    its a calculator which was working just fine when was on 1 cpp file..
    But i tried to split it in many cpp files and only one .h file..
    ...
  2. Replies
    3
    Views
    1,171

    thx but i really need an int array.. Im making...

    thx but i really need an int array..

    Im making a function to invert twho-dimension int array

    so i wanted to add user definable array so i could verify it works with evry array size..

    anyways...
  3. Replies
    3
    Views
    1,171

    array user definable size

    I want to make a user definable size array..
    can it be done?
    I tried this so far but i get 3 errors.. :(



    cout << "Enter the size of the Array: ";
    unsigned int size;
    cin >> size;
    if(size...
  4. Replies
    3
    Views
    10,198

    what do u mean word like a simple sentence? ...

    what do u mean word like a simple sentence?



    #include <string>
    string str = "A simple sentence.";
  5. Thread: now what?

    by Luigi
    Replies
    4
    Views
    1,327

    now what?

    why do I get an error for that?



    istream* input;

    int main(int argc, char* argv[])
    {
    switch (argc)
    {
  6. Thread: STL - map

    by Luigi
    Replies
    9
    Views
    2,211

    If u use less only to sort values within the map...

    If u use less only to sort values within the map its kinda useless.. cause:
    values within maps and multimaps are already sorted smallest value first..
    same for <set> and <multiset>..
  7. Thread: fstream

    by Luigi
    Replies
    2
    Views
    1,081

    fstream

    what is wrong with this?



    #include <iostream>
    #include <fstream>
    using namespace std;

    ifstream fin;
    ofstream fout;
  8. Thread: STL - map

    by Luigi
    Replies
    9
    Views
    2,211

    Ok dont ask why but this will work.. If u...

    Ok dont ask why but this will work..
    If u replace cstring by c++ string all goes fine..
    anyways i almost always use c++ string..



    #include <iostream>
    #include <map>
    #include <string>
    using...
  9. Thread: STL - map

    by Luigi
    Replies
    9
    Views
    2,211

    opps i just red ur post again what u want to do...

    opps i just red ur post again what u want to do is :
    user input either num1 or num2 then a number to add to it?
    if thats what u want second option should work..
    but ill check it out just in case...
  10. Thread: STL - map

    by Luigi
    Replies
    9
    Views
    2,211

    >> I removed the line: values[tempS] = tempI,...

    >> I removed the line: values[tempS] = tempI, because I need the value stored before in the map

    If u remove that line u will always get 0 :

    ...


    tempI+=values[tempS]
  11. Thread: STL - map

    by Luigi
    Replies
    9
    Views
    2,211

    #include //remove .h #include ...

    #include <iostream> //remove .h
    #include <map>
    using namespace std; //always usefull

    int main()
    {
    map< char*, int> values; // sorry i dont know what is less so i just removed it..

    ...
  12. Replies
    15
    Views
    3,437

    Is the new iso standard for c++ since...

    <iostream>
    Is the new iso standard for c++ since 97 i think..
    so usually u better without the .h
    but there are few exceptions..
    like string and string.h
    if u want to use c string : include .h...
  13. Replies
    8
    Views
    2,322

    use ascii value to check if current char is tab.....

    use ascii value to check if current char is tab..
    http://www.asciitable.com/
    or u could use isspace() this will check for tab..
    but in the other hand it wil check for space to...
    but u could do...
  14. Replies
    5
    Views
    1,441

    Use code tags! I for example wont even bother...

    Use code tags!
    I for example wont even bother looking at code unless code tags are used...
    So if u want help, use code tags..
  15. Replies
    6
    Views
    1,207

    initialize sel (ex int sel =0;) switch...

    initialize sel (ex int sel =0;)
    switch statement should have break statement..
    int byc() has no return value..

    If u correct all that i think it should work fine..
  16. Replies
    1
    Views
    869

    #include using namespace std; int...

    #include <iostream>
    using namespace std;

    int main ()
    {
    char name[256], title[256];

    cout << "Enter your name: ";
    cin.getline (name,256);
  17. Replies
    16
    Views
    99,267

    sorry for trying to help i++ twice thing.. ur...

    sorry for trying to help
    i++ twice thing.. ur right my bad i made this in 5 sec..

    I guess from now on ill just ask question and wont bother trying to help others if i get answered like this..
  18. Replies
    16
    Views
    99,267

    u can also do something like this.. ...

    u can also do something like this..



    #include <iostream>
    #include <string.h>
    using namespace std;

    int main()
    {
  19. Thread: Electric Guitars

    by Luigi
    Replies
    24
    Views
    5,273

    well if u are anywhere near quebec city I dont...

    well if u are anywhere near quebec city I dont mind jaming..

    And if u can understand my bad english with a huge french accent.. hehe.. ;)
  20. Thread: Electric Guitars

    by Luigi
    Replies
    24
    Views
    5,273

    sorry btw I DO need a hug.. :)

    sorry
    btw I DO need a hug.. :)
  21. Thread: function error

    by Luigi
    Replies
    8
    Views
    1,094

    Squid: yes cin>>array would do that but thats...

    Squid:
    yes cin>>array would do that but thats not what he does..
    cin >> x..
    and x is only one char..
  22. Thread: Electric Guitars

    by Luigi
    Replies
    24
    Views
    5,273

    since when keeping a floyd rose in tune cost too...

    since when keeping a floyd rose in tune cost too much?

    Do it yourself..
    its fairly easy

    just do a search on the net...
    Its explained clearly..
  23. Thread: Electric Guitars

    by Luigi
    Replies
    24
    Views
    5,273

    This might sound weird but learn some old...

    This might sound weird but learn some old metallica...
    first if u know metallica 90% that others will be able to acompany since almost everyone knows at least one tune..

    also metallica is not so...
  24. Thread: function error

    by Luigi
    Replies
    8
    Views
    1,094

    What exactly do you want to achieve cause from...

    What exactly do you want to achieve cause from the code u made its not very clear and doesnt seem logic..

    if u want to fill the array one character at a time say so and ill help u with that

    if...
  25. Thread: tutorials

    by Luigi
    Replies
    15
    Views
    2,360

    If u decide to do it plz email me I am really...

    If u decide to do it plz email me I am really interested by your idea..
    :)

    [email protected]
Results 1 to 25 of 122
Page 1 of 5 1 2 3 4