Playing with some functions and my computer/NetBeans cannot seem to run my code, even though it can be run in different compilers. Here's my function (keep in mind this isn't my whole project I do have an int main()):
#include <iostream>
#include <iomanip>
#include <string>
#include <iterator>
#include <cstdlib>
#include <ctime>
#include <windows.h>
using namespace std;
void convert (string& s){ //Creating a function that makes a variable lower case
for(int i=0; i<s.length(); i++){
s[i] = tolower(s[i]); //tolower lets me change to lower case
}
}
The error I'm getting is: "cannot resolve identifier length". if you need to see my whole project please ask, I don't mind, just think its a waste of time if it doesn't matter. I'm using NetBeans 8.2, thanks in advance