Search:

Type: Posts; User: Apropos

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. quick question about creating a matrix using the new operator

    Hi@all

    Please can anyone tell me why when I run this program, I am getting memory fault error..



    1 #include<iostream>
    2 using namespace std;
    3 int main()
    4 {
  2. Thread: sizeof

    by Apropos
    Replies
    4
    Views
    1,092

    Hi Salem When I don't know the size of array,...

    Hi Salem

    When I don't know the size of array, do I have to use STL vektor. I don't want to use STL vector because I don't know.

    Is there another way to count how many elements I have in my...
  3. Thread: sizeof

    by Apropos
    Replies
    4
    Views
    1,092

    calculating sizeof dynamic array

    Hi @all

    I was trying to learn dynamic allocation of arrays. I wrote easy program. Can someone tell me why I can't print out all integers in my array.

    Thanks



    #include <iostream>
  4. Replies
    12
    Views
    2,616

    Hi Daved; Thanks for your help. I edited my...

    Hi Daved;

    Thanks for your help. I edited my code and used i instead of i+1. I used i+1 because I thought I was getting first string but I made a mistake by doing that. Thanks

    I saw what is...
  5. Replies
    12
    Views
    2,616

    Hi 7stud; Thanks for the lesson. You are...

    Hi 7stud;

    Thanks for the lesson. You are always my angel :p I think I got you.

    I tried some basic things before editting my prog. as following
  6. Replies
    12
    Views
    2,616

    @mrafcho001 and Daved I see your point but can...

    @mrafcho001 and Daved

    I see your point but can you explain me the meaning of the following sentence bacause I don't understand what program wants to do from me?



    Thanks for your help
  7. Replies
    12
    Views
    2,616

    thanks @mrafcho001 I have changed my code to...

    thanks @mrafcho001

    I have changed my code to the following code but now I am getting an error..



    #include <iostream>
    #include <string>
    #include <fstream>
  8. Replies
    12
    Views
    2,616

    Arrays, pointers and strings

    Hi@all

    I am writing a program about pointers and strings but I am stuck on part of it.

    I am trying to read three words from a file. There is only one word in each line therefore I have three...
  9. Replies
    14
    Views
    2,081

    @grib and 7stud; Thanks for the lectures. I...

    @grib and 7stud;

    Thanks for the lectures. I just got in pointers so I found 7stud examples very helpful. it is not easy to understand but you guys helped me to understand pointers and references....
  10. Replies
    14
    Views
    2,081

    hi elad, I am little confused now. Whenever I...

    hi elad,

    I am little confused now. Whenever I want to use a pointer as an argument in a function call, I have to pass the address that the pointer references to the function right?.

    I know...
  11. Replies
    14
    Views
    2,081

    grib, thanks for your comment. I want to pass...

    grib, thanks for your comment.

    I want to pass a pointer call by reference. I wrote a small program that changes the values of the two variables pointed by its arguments. Is this method correct...
  12. Replies
    14
    Views
    2,081

    Hi skorman00 Thanks for the reply but I am...

    Hi skorman00

    Thanks for the reply but I am still :confused:



    Does it mean that I am passing the pointer to function call by value? If the answer is yes.

    Why when I want to print out ...
  13. Replies
    14
    Views
    2,081

    passing pointer to a function

    Hi@all

    I am studying pointers from my text book. I think I understood the concept but I don't understand between two small programs that I am showing them below. Can you tell me the diffrence...
  14. Replies
    11
    Views
    1,511

    Hi Brain Cell; Yes you are right. I think...

    Hi Brain Cell;


    Yes you are right. I think because of the eof. I don't need size. I use a counter to find out the size.


    I am not agree about it because one m is inside the for loop. I also...
  15. Replies
    7
    Views
    10,810

    @MipZhaP Yes. It was an accident but thank you...

    @MipZhaP

    Yes. It was an accident but thank you for reminding me..

    @everybody that put a comment for my thread

    Thank you. I apricated for your help. :)
  16. Replies
    11
    Views
    1,511

    I think you are right. I changed j++ to ++j but...

    I think you are right. I changed j++ to ++j but still something is wrong because when I write 5 4 3 2 1, the output is 1 1 1 1. I am :confused:
  17. Replies
    11
    Views
    1,511

    Assume I typed 5,6 and 1 as my input. My output...

    Assume I typed 5,6 and 1 as my input. My output should look like 1 5 6 but I get the same as what I typed.

    Thanks
  18. Replies
    11
    Views
    1,511

    help about bubble sort

    Hi@all

    I'm learning the bubble sort from my textbook. I just wrote a small program but something is wrong about output. I couldn't see my mistake. Please help me to see what is wrong with it.
    ...
  19. Replies
    7
    Views
    10,810

    I knew that I had to use loop or switch. but I...

    I knew that I had to use loop or switch. but I didn't want to put a loop or switch. I wrote here because I was looking another way but I guess I have to use loop or switch..

    Thank you

    edit;...
  20. Replies
    7
    Views
    10,810

    if/break statement

    Hi @all

    I have an if statement in my prog. I want my program ends if my if statement returns false.

    In order to end my prog. I used break but g++ compiler says I should put them in a loop or...
  21. Replies
    4
    Views
    2,280

    SanDisk flash driver

    Hi@all

    I know I should have opened this threat at Tec session but somehow I couldn't open it.

    I want to use my USB flash driver with my knoppix linux system. My question is after save something...
  22. Replies
    6
    Views
    1,653

    Thank you @ PJYelton I got your point. I...

    Thank you @ PJYelton

    I got your point. I appreciate for your help. :)
  23. Replies
    6
    Views
    1,653

    Hi @Krak Thanks for your reply but I need to...

    Hi
    @Krak
    Thanks for your reply but I need to two loops in my prog because after getting elements of my array from the keyboard, I tried to devide each element to 100 after that I tried to print...
  24. Replies
    6
    Views
    1,653

    a little help with int array and for looping

    Hi@all;

    I think I don't need to write explanation about my code because it is very easy.

    Can anyone tell me when I run my prog. why the prog. gives me correct answer only once and after that...
  25. Replies
    9
    Views
    1,128

    I see what happened. Thanks Prelude and Zach L....

    I see what happened. Thanks Prelude and Zach L. I appreciate for your help.
Results 1 to 25 of 29
Page 1 of 2 1 2