Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15671

A question about debug on devc++ when I use c++

$
0
0

I am a beginner of C++. I don't know how to debug a vector on devc++, I used following methods to try to figure out the values in arr, but it failled.That's my codes

#include<stdio.h>#include <iostream>#include<vector>using namespace std;int main(){      vector<int> arr(3);      arr[0] = 0,arr[1]=1,arr[2]=3;      printf("aaaa");    return 0;}

I made a breakpoint on printf(). The following snippets are my errors.enter image description here

It can work on VS2019. Because of my college, I have to use the devc++.


Viewing all articles
Browse latest Browse all 15671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>