User Profile

Collapse

Profile Sidebar

Collapse
Broko668
Broko668
Last Activity: Sep 10 '16, 06:46 PM
Joined: May 6 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Break out of a loop in the main function through another function

    Hope the title of the question explains what I need help on.

    So here's the code that I think you'll need to understand what I'm talking about:

    Code:
    static void quit(string a, int b, ref List<string> c)
    	{
    		if (a == "-q")
    		    c.RemoveRange(b + 1, c.Capacity - b);
    	}
    
    static void Main(string[] args)
    	{
                listNums = 0
    ...
    See more | Go to post

  • It worked for me. It did what I asked for, thanks!

    But now I need to know why did it work? If that's not too much to ask. I didn't understand what the compiler was trying to tell me. I understood how push_back worked for other basic types of vectors but not for this one.
    See more | Go to post

    Leave a comment:


  • Broko668
    started a topic How do you increment a vector for classes? C++
    in C

    How do you increment a vector for classes? C++

    I've been working on a project to make a ATM bank application but I've ran into a problem. I need to make an unlimited number of vectors of the class Bank I've created.

    I can't seem to find out how. I tried push_back but it did not work for me.

    I know that there are some variables and loops that aren't used properly. I believe that this is all the code I need to display to get my question resolved.

    ...
    See more | Go to post
No activity results to display
Show More
Working...