We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,737 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

too many decimal points in number

So Ive googled this error but I cant find an explanation of why this is happening in my code..

Error:

g++ -o code code.cpp
code.cpp:8:17: error: too many decimal points in number
code.cpp:8:43: error: too many decimal points in number
code.cpp:1:1: error: expected unqualified-id before '<' token
make: *** [code] Error 1

My code:

//Includes
#include <stdlib.h> 

using namespace std;
//Other Functions

//Main function
void signalEnd();
 int main(int argc, char** argv) {
  //main code here


  signalEnd(); 
}

void signalEnd() 
{
    system("./done.sh");
}

I know usually you declare a function above the main to use it but in my current way I construct this file this is not possible.

So the line with the error is my forward declaration. I have no idea what is wrong.

I would appreciate any tips or help on this.

Thank you

2
Contributors
1
Reply
1 Hour
Discussion Span
7 Months Ago
Last Updated
2
Views
Peppercat101
Light Poster
25 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

You should post all of your code the way it actually appears so we can check it out. A misspelling or a missed ";" can give weird errors.

MandrewP
Junior Poster
143 posts since Nov 2009
Reputation Points: 60
Solved Threads: 23
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0554 seconds using 2.65MB