Ok, i understand that i made a function that takes a char as argument and im trying to use it on a string.That wont work.
What should i do now?Modify the function so that it takes a string as...
Type: Posts; User: mblue
Ok, i understand that i made a function that takes a char as argument and im trying to use it on a string.That wont work.
What should i do now?Modify the function so that it takes a string as...
#include <iostream>
#include <string>
using namespace std;
int wordcount(char *str){
int i=0;
int count=0;
while(&str[i] != "\0"){
if(&str[i] == "\t"){
count++;}
Hello ,this is my first post here,so please excuse me if i broke any rules, or i posted in a wrong section.
I have this homework for school:we have to come up with a program that transforms a...