Search Results

Showing results 1 to 15 of 15
Search took 0.02 seconds.
Search: Posts Made By: Sci@phy
Forum: C++ Oct 24th, 2008
Replies: 2
Views: 631
Posted By Sci@phy
You should check your microphone. It can sometimes be a problem (conflicts with compiler for c++)
Forum: C++ Oct 19th, 2008
Replies: 2
Solved: Syntax Error
Views: 312
Posted By Sci@phy
while( chioce != 'n' );}
should actually be:
} while( chioce != 'n' );

Have a nice coding :)
Forum: C++ Oct 19th, 2008
Replies: 5
Views: 628
Posted By Sci@phy
I tried to count lines to see which one is line 39, and I managed it, but for future:
[code=cplusplus] please, not just [code]!!!

case 'I' : case 'i ' :
Notice that second 'i ', do you see a...
Forum: C++ Oct 19th, 2008
Replies: 2
Views: 570
Posted By Sci@phy
Reason is that sstr is set to false AFTER trying to read after EOF. So first you read last item, it's ok, when while sees no error, continues, but you can't read more, so x is assigned to last good...
Forum: C Oct 18th, 2008
Replies: 4
Views: 620
Posted By Sci@phy
First you write code in some text editor. It doesn't matter what editor, it could even be notepad.
Then you have to compile that code.
Compilation refers to the processing of source code files (.c,...
Forum: C++ Oct 16th, 2008
Replies: 9
Views: 732
Posted By Sci@phy
THIS compiled ok on dev-cpp:

int main()
{
DWORD dwThreadId;
HANDLE myThread;
void *ptr=NULL;

myThread = CreateThread(
NULL,
Forum: C++ Oct 15th, 2008
Replies: 11
Views: 791
Posted By Sci@phy
The while loop won't work properly, eof is unsafe to use in looping.
This is better:

while (getline(locationtemp, line)){
numbers[x++] = strtod(line);
}
Forum: C Oct 14th, 2008
Replies: 7
Poll: program in c
Views: 691
Posted By Sci@phy
The first one is "passing arguments to pointers". In that way, you can change original variable!
Second one is "passing arguments as references".
You cannot do that in C, C always passes arguments...
Forum: C++ Oct 12th, 2008
Replies: 4
Views: 460
Posted By Sci@phy
while(soldiers.size()==1)
This while statement is ill
Forum: C++ Oct 11th, 2008
Replies: 11
Views: 1,445
Posted By Sci@phy
Are you sure this code works:
ll = queue.ll;
'll' is under private section, right? I'm not sure if you can access it.
Here's my code example if it helps:

//operators
//=
Complex&...
Forum: C++ Oct 9th, 2008
Replies: 3
Views: 606
Posted By Sci@phy
>void Montecarlo(void);
>{

What's that semicolon doing there? :)
Forum: C++ Oct 6th, 2008
Replies: 2
Views: 373
Posted By Sci@phy
I made slight adjustment:

sky.erase(sky.begin()+x);


More on: http://www.cplusplus.com/reference/string/string/erase.html

EDIT: oh yes, x <= sky.size() is wrong, should be x < sky.size()
Forum: C++ Sep 27th, 2008
Replies: 11
Views: 1,213
Posted By Sci@phy
I don't see why there should be any difference. When you write:

void MyClass Func (const MyClass f)
//or even simply:
const MyClass f(some_MyClass_obj);

And let's say we call Func:
...
Forum: C++ Sep 23rd, 2008
Replies: 6
Views: 1,048
Posted By Sci@phy
If you want to be able to write

something = 4 + var;


You have to overload once more operator+.

First, declare it as friend of class, and then write it like:

Array<T> operator+ (const...
Forum: C++ Sep 19th, 2008
Replies: 3
Views: 585
Posted By Sci@phy
It's a long shot, but maybe while optimizing compiler got rid of unneeded functions and code in library?
Showing results 1 to 15 of 15

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC