Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 09-17-2004, 04:53 PM   #1
Beta Member
taicoown's Avatar
Join Date: Jul 2004
Posts: 2
Talking help with C++ code 2 errors. TAICOOWN

Plz help me with this code the errors in the Dev 4 compiler was:

parse error befor (

parse error befor else

The whol code:

#include <stdlib.h>

#include <iostream>

#include <string>

#include <fstream>

#include <windows.h>

using namespace std;

int main()



ifstream fin;

string szLine = "";




goto start;


fin.seekg(NULL, ios::beg);

while getline(szLine) //Error Here

if(szLine = "helo");


cout << "" << endl;


return 0;


else //Error Here


goto start;




return 0;


taicoown is offline   Reply With Quote
Old 09-18-2004, 05:30 AM   #2
Baseband Member
gelpogi's Avatar
Join Date: Sep 2004
Posts: 23

The use for your getline statement is wrong.
Your else is not properly connected with any if-statement. Try to change else with if statement.
gelpogi is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 10:58 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0