[Solved] Alphabetically sorting the words
This statement if(words[j+1].(int)name[0]<words[j].(int)name[0]){ is syntactically invalid. The correct statement will look the following way if( ( int )words[j+1].name[0]<( int )words[j].name[0]){ However there is no any sense to make such a record because (the C++ Standard) The usual arithmetic conversions are performed on operands of arithmetic or enumeration type On the other hand if type char … Read more