So. I just don't know. I can't get it to even run. Every time I try tweaking this program, I just get more issues. Here are my error codes as is:
And here is my program:
Any help is very much appreciated.
1>Backward_String_N.obj : error LNK2001: unresolved external symbol "void __cdecl makeBackward(char *)" (?makeBackward@@YAXPAD@Z) 1>c:\users\owner\documents\visual studio 2010\Projects\Backward_String_N\Debug\Backward_String_N.exe : fatal error LNK1120: 1 unresolved externals
And here is my program:
// Backward_String_N.cpp : Defines the entry point for the console application.
// This program belongs to NM.
#include "stdafx.h"
#include <iostream>
using namespace std;
// Function prototype.
void makeBackward (char *);
int main()
{
const int size = 51;
char word[size];
char *wo;
wo = &word[size];
// Get string.
cout << "Enter a word, name, or phrase: ";
cin.getline(word, size);
// Function call.
makeBackward(wo);
return 0;
}
// Function header.
void makeBakward(char *wo)
{
int c;
cout << "Here is what you entered, but backward: ";
for (c = 0; c >= 0; c--)
{
cout << wo[c];
}
}
Any help is very much appreciated.