No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 is being used at the moment of execution so the program … |
|
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 a file system! How can I list directories (to a string or … |
|
hi, I have to do a program that generates 'n' different combinations of 7 different numbers between 1 and 49, so I did this: [CODE]import java.util.*; public class Totoloto { public static void main(String[] args) { System.out.print("Quantas apostas?"); Scanner s = new Scanner(System.in); int n=s.nextInt(); int[][] apostas = geraApostas(n); for(int … |
|
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 possible? for example: Liga.h [CODE]... vector<Pessoa*> pessoas; ...[/CODE] Equipa.cpp [CODE]... void Equipa::mostraStaff() { … |
|
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 finished, but when I did the main file, the compiler shouted loads of errors that didn't … |
|
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? cheers |
|
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 nothing to do with my OS, but with the version of … |