Search Results

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: onemanclapping
Forum: C 15 Days Ago
Replies: 0
Views: 205
Posted By onemanclapping
Hi,

I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function.

Can someone help me?

I need ideas for how to read...
Forum: Java Apr 19th, 2009
Replies: 2
Views: 298
Posted By onemanclapping
thank you very much! problem solved.
Forum: Java Apr 17th, 2009
Replies: 2
Views: 298
Posted By onemanclapping
hi,

I have to do a program that generates 'n' different combinations of 7 different numbers between 1 and 49, so I did this:
import java.util.*;
public class Totoloto {

public static void...
Forum: C++ Oct 8th, 2008
Replies: 5
Views: 508
Posted By onemanclapping
actually I didn't :P
I modified my primary algorithm and now I don't need to do that anymore :)

thanks for all your help, though!
Forum: C++ Oct 8th, 2008
Replies: 5
Views: 508
Posted By onemanclapping
that's good! I just need to declare it as public and then include "Liga.h" in "Equipa.h", right?

as for declaring Equipa a friend of Liga, how can I do that?

thanks again!
Forum: C++ Oct 7th, 2008
Replies: 5
Views: 508
Posted By onemanclapping
Hi,

I'm doing a program that has a class called Liga. That class has a vector with 'Equipa's.

Liga has a vector called 'pessoas' which I want to access inside a function in each Equipa, is this...
Forum: C++ Oct 2nd, 2008
Replies: 19
Views: 2,993
Posted By onemanclapping
Thanks for your help. Which library do you suggest? Because just printing empty lines won't really work, as this way the program contents will always apeear at the bottom of the screen and that's no...
Forum: C++ Oct 2nd, 2008
Replies: 19
Views: 2,993
Posted By onemanclapping
what do you mean by "create the makefiles for each os"? sorry, I'm a bit of a noob :/

I did:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;

void clearScreen()
{
Forum: C++ Oct 1st, 2008
Replies: 19
Views: 2,993
Posted By onemanclapping
Once again, thank you very much for your help in another thread of mine!
so you think this should work?
void clearScreen()
{
#ifdef _WIN32
system("cls");
#elif defined(_UNIX)...
Forum: C++ Oct 1st, 2008
Replies: 19
Views: 2,993
Posted By onemanclapping
oh, ok, no problem.
how can my program tell if the windows function has failed? because if "clr" works and then I call "clear", there will be an output error message.
Forum: C++ Oct 1st, 2008
Replies: 19
Views: 2,993
Posted By onemanclapping
hello. I'm doing a program in c++ and I need to use a system call to "clear" my screen.
for linux I use system("clear") but in windows the same is system("clr").
is there some way to find which OS...
Forum: C++ Oct 1st, 2008
Replies: 3
Views: 986
Posted By onemanclapping
oooh! that's it! thank you very much :) it's working fine now!

best regards!
Forum: C++ Sep 30th, 2008
Replies: 3
Views: 986
Posted By onemanclapping
hi, I'm a Computer Engineering student from Portugal in the 2Âșterm.

Last class' job was for us to use class and sub-class systems, creating a info system for vehicle types.

I thought I was...
Forum: C++ Sep 1st, 2008
Replies: 8
Views: 700
Posted By onemanclapping
Oh! Don't be sorry at all, you've been very kind for explaining me all this...

The new code works perfectly! Thank you for your precious help!

Best regards,
André
Forum: C++ Sep 1st, 2008
Replies: 8
Views: 700
Posted By onemanclapping
Thank you very much for your help in explaining me this problem! It's now very clear why it happens.

The only problem is that the code you gave me for helping me count characters does not work :(...
Forum: C++ Sep 1st, 2008
Replies: 8
Views: 700
Posted By onemanclapping
the code is irrelevant, I think, as my question applies to any code calling this function, but here it is:
void geraMenu(string titulo,string versao)
{
int numEstrelas = titulo.size() + 40;...
Forum: C++ Sep 1st, 2008
Replies: 8
Views: 700
Posted By onemanclapping
hi,

when I try string.size on accentuated words, the result is bigger than it was "supposed" to be, as accentuated characters count as 2 size units instead of one.

how can I count them as one?...
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
PROBLEM SOLVED :D

the problem was with the g++ version I had installed...I reinstalled it and voila! it started working.

thank you all for your kind help...I guess I'll be around here a lot...
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
my teacher also sugests me Eclipse...both for windows and linux...but I'm new to this application and have know idea where the problem is...

I guess on that Run menu, where they ask for the "C++...
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
it seems not to have a linux(ubuntu) version :(

can you or anyone else recommend me another program that works on ubuntu?
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
that's what I imagined...but where can I compile it under eclipse? is it the "build" option? I've already selected it but it seems not to create any kind of executable file
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
where can I download code::blocks? the main site seems not to have anything to download: http://www.codeblocks.org/downloads/15

I'd really prefer a program that would compile itself as it would be...
Forum: C++ Feb 24th, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
now it says "Program is not a recognized executable." selecting the program as you told me (/home/omc/workspace/teste/src/atum.cpp)
Forum: C++ Feb 23rd, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
I tried all that but nothing worked... btw, the source file is not in the .settings folder:

http://img262.imageshack.us/img262/3318/screenshotfy0.png

I changed the extension to "cpp", it that...
Forum: C++ Feb 22nd, 2008
Replies: 19
Views: 3,302
Posted By onemanclapping
hi,

I'm beginning to learn how to program in C++ and though it is teached in my university, it seems noone cares about Linux users, so no one there can help me here (though I think the problem has...
Showing results 1 to 25 of 25

 


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

©2003 - 2009 DaniWeb® LLC