Search Results

Showing results 1 to 13 of 13
Search took 0.00 seconds.
Search: Posts Made By: Sci@phy ; Forum: C++ and child forums
Forum: C++ Oct 24th, 2008
Replies: 2
Views: 624
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: 311
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: 615
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: 569
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 16th, 2008
Replies: 9
Views: 729
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: 786
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 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,437
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: 602
Posted By Sci@phy
>void Montecarlo(void);
>{

What's that semicolon doing there? :)
Forum: C++ Oct 6th, 2008
Replies: 2
Views: 370
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,198
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,031
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: 582
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 13 of 13

 


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

©2003 - 2009 DaniWeb® LLC