This is my first time working with strings so im not really sure what I am doing. My assignment is to write and test a function, deblank, that takes a sting output and a sting input argument and returns a copy of the input argument with a blanks removed.
I started out by just trying to see if I can create a string and print it out. But I am having problems even doing that. I can build it but when I try to debug it I get an error in the middle of debugging it. Any suggestions will be appreciated.
Code:// Strings.cpp : Defines the entry point for the console application. // // distance.cpp #include<stdio.h> #include<stdafx.h> #include"conio.h" #include"string.h" int main() {char string_one[11] = "string_one"; sprintf("Topic: %s/n", string_one); getch(); return(0); }