Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2004, 09:20 AM
maaltan
Fire Beetle
 
Join Date: May 2004
Posts: 9
Default

hrm .. i think i remember something in the rules about not helping people learn how to code in this forum, maybe a moderator can move this thread to misc or something...


anyway. Im using vc++. i got several compile errors. this is pretty normal. Your code might be fine but vc++ is insane i think .. couple of quick things you might try though

first change your include to :

#include <iostream.h>

and remove the std:: from the stream access commands

so just put:

cin >> blah;

cout << "this is blabhblablabh";

again im rusty when using the iostreams so this might not be correct.

also, i don't think you can use printf formatting keys with the streams. you have to piece together a fully formated string (using sprintf maybe) and pass it to cout. I might be wrong on this .

-------

ok i am editing my post. I just checked out cout

your statement :

cout << " %f\n\n",result; // prints the result

should read:

cout << result << "\n\n"; // prints the result

that makes it work.
Reply With Quote
Reply


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

Forum Jump

   

All times are GMT -4. The time now is 07:03 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3