I live in Greece and study Informatics at the Technological Educational Institute of Athens.
- Interests
- Music, Web Design, Design, Movies
|
Re:
Hello I have downloaded a source code written in C. There I found a Makefile file . Can you tell me how to run that "makefile" file from command line ? thank you |
Re:
Hello all, I am not sure what's wrong my code but, when I run my program it keeps going to my default switch statement. I would like my program to keep looping the menu until I put in the quit function. Can someone please tell me what I'm doing wrong? … |
|
Re:
Use onMouseover to change the background color of your webpage. Can be applied to change other things like images and so on. |
|
Re:
I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage |
|
[INDENT][B]Hello, everyone[/B][/INDENT], nice to feel so welcomed here! My name is John and I study Informatics in Athens, Greece. I'm using the nickname mikrosfoititis which could be translated as "young student". I'm into C++, C, HTML, CSS, and basics of MIPS Assembly, PHP and JAVA. I would really love to … |
|
Re:
Okay ...Ive learnt Iterations and If Functions Arrays (1 dim and 2 dim) Structures ...In C++ as of now ...(Im still in school learning) I know that a good game would require "classes"....but i dont currently know how they work... So is there any way I can come up with … |
|
Re:
Well I just want to know, how to give variable size for an array(Particularly, second subscript). For example, like this [CODE]#include<iostream> using namespace std; int main() { int a,b; cout<<"Enter the size for the 2D array"<<endl; cin>>a>>b; int*A=new int[a][b];[/CODE] for a its ok, But how to make it work for … |
|
Re:
For some reason, my program will not let the user enter his/her row number. Here's the code: [CODE]#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int a=0,A=0,b=1,B=1,c=2,C=2,d=3,D=3,e=4,E=4,f=5,F=5; void ticketchoices(); void displaychartfirst(char firstclass[2][6],int ticketnumselection); void displaychartbus(char busiclass[5][6],int ticketnumselection); void displaycharteco(char ecoclass[6][6],int ticketnumselection); int main(int argc, char *argv[]) { char X; … |
|
Re:
Okay so for my beginners c++ class we have to make game for our final project. The game is a simple shooter type game with ascii chars and stuff for the player and the enemy. We covered up to 2d arrays in class and then the teacher gave us the … |
|
Re:
Dear all, I have a quick question about if-else-if control flow (you'd think by now these questions would be unnecessary, but here I am): If I was told to rewrite a function that looked like this (this is an exam question so I am not asking the exact question in … |
|
Re:
I've Just finished a program and it's taking various errors. Can you show me Where its wrong? [CODE]/******************************************************************** * Autor: Antônio Airton Cabral Neto * * Compilador: BC 3.1 Borland * * Ambiente: Tela de scroll do DOS * * Modelo de memoria: Small * * Data: 12/09 e 14/09 … |
|
Re:
yet again i have become very confused on this program. This program is suppose to have the user be able to put numbers in from a keyboard or they have the choose of choosing a file with numbers in it. the program is suppose to acknowledge all the numbers in … |
|
Re:
[CODE]void insert() { counter++; char id [12]; string title; string author; int year; char num_id[12]; borrow *newptr,*p,*q;//declare p = head; q = NULL; //counter++; newptr = new borrow;//declare cout<<"\nEnter your ID: "; cin>>newptr->id; cout<<"\nTitle of the book: "; cin>>newptr->title; getline (cin, newptr->title); cout<<"\nAuthor: "; cin>>newptr->author; getline (cin, newptr->author); cout<<"\nYear: "; … |
|
Re:
I have created a program without using sqrt and the pwr function but instead have used logs and exponent. The professor said that math.h is not allowed. I am aware that this library is important for computation, but how do I compute the math without using the math.h? Would I … |
|
Re:
hi everyone!i'm working on a project and i'm getting two errors of the type mentioned in the title. here's the part of the code that generates the problem: [CODE] #include "Instance.h" //default constructor Instance::Instance(unsigned features) { num_of_features = features; fileName = "-"; category = true; keywords = new string[num_of_features]; featureID … |
|
Re:
[CODE]#include<stdio.h> #include<conio.h> struct egde { int nodeno; struct edge*next; }; struct node { int nodeno; struct node *next; struct edge *link; }; struct node*graph=NULL; typedef struct node node; typedef struct egde edge; node*find(int); void insert_egde(); void insert_node(); void display(); int main() { int ch,i,j; do{ printf("\ninsert node"); printf("\ninsert edge"); printf("\ndisplay"); … |
|
Re:
I'm trying to make a thermometer that can show when the temperature goes out of the range of 17 and 24 degrees, when it goes below 17 degrees i want it to count how many times it goes below 17 degrees and how may times it goes above 24 degrees … |
|
Re:
hi i am new here and i registered because i couldn't find the answer in google search my problem is that i could not find max and min of two arrays and the average too [CODE]#include<iostream> using namespace std; int array1[]={0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; … |
|
Re:
I haven't coded something this complex in C++ before and I haven't had time to really review. I'm making a game (well, foundations for a game anyway), with an external game library, Allegro. But I think the problems I'm having is more fundamental to C++ in general. Included is a … |
|
Re:
Hi all, Sorry if this is a stupid question. Assume I have a code like this. [CODE] char *temp = "poiuytrewq"; std::cout<<*temp<<std::endl; //should print p function(temp); std::cout<<*temp<<std::endl; //should print i [/CODE] Basically my function() in the above snippet increments the pointer twice so that temp point to 'i' now. I … |
|
Re:
hi! can someone help debug my codes? getline() works properly in my main() but if i'm putting it to another function, it ignores the first getline() w/o entering any words and goes to the 2nd getline. my program works like this: i have a menu() that lets the user to … |
|
Re:
Hi there i am trying to make a program that takes multiple files from the command line. I think i have got my my word count working right, but my question is how do i get it to read multiple files on the command line. Like when i do ./a.out … |
|
Re:
Hi, main.cpp vector<Employee>e; e.push_back(Employee("Hawaii",100)); cout<<endl; e.push_back(Employee("Scotland",20)); cout<<endl; e.push_back(Person("Saga",30)); cout<<endl; Employee e1; //created an object sort(e.begin(),e.end()); e1.show(e); Employee.h bool operator<(const Employee& e1,const Employee& e2); Employee.cpp bool operator<(const Employee& e1,const Employee& e2) { return e1.getName() < e2.getName(); } With this code it is just sorting only the first 2 objects and displaying … |
|
Re:
Hi, I am running an application and wish to add random outputs when the user answers correctly. example 1 + 1 = 2 cout << " great"; I wish to randomly cout << excellent or very good or fantastic as well. Thanks! This is my code: #include <iostream> #include <cmath> … |
|
Re:
This is what the question is stating: Write a program that inputs a line of text using function fgets() into a char array s[90], then it outputs the line converted to uppercase. For function [ICODE]fgets[/ICODE] to be used, am i correct if I understand that the user doesn't have to … |
|
Re:
Consider there is a string [COLOR="Red"]"hai welcome..."[/COLOR] I need to [COLOR="red"]print the string [/COLOR]as such [COLOR="red"]leaving the first three characters..[/COLOR] I should not use in-built functions or others... It should b [COLOR="red"]done in a single printf statement [/COLOR]by [COLOR="red"]changing the control string pattern..[/COLOR] |
|
Re:
I've looked on the site and I've Google'd this for the past couple days to no avail. Either this is just completely obvious and I'm terrible at programming(I'm new, so this is possible). Anyway, the assignment is to accept two whole numbers that are 512 digits or less. Then we … |
|
|
Re:
Hello people I have a 2 dimension array that contains only 0 and 1 values. I want to represent all the 0 elements in a tree: how can I do that ? Thank you for any help |
Re:
I am trying to make an expression calculator and it works ok, but only for single digit numbers. I take in the expression in infix notation and then convert it to postfix notation. I just am not sure how to allow it calculate the correct answer with double digits. I … |
|
Re:
[CODE] #include <iostream> #include <string> #include <cctype> #include <iomanip> #define N 36 using namespace std; string EraseWhiteSpaces(string &str_nospaces) { int i; for (int i=0;i<str_nospaces.length();i++) { if (str_nospaces[i]==' '||(str_nospaces[i]=='\t')) { str_nospaces.erase(i,1); i--; } } return str_nospaces; } string ConvertToLowerCase(string &str_lowercase) { int i; for (i=0;i<str_lowercase.length();i++) str_lowercase[i]=tolower(str_lowercase[i]); return str_lowercase; } void SortedFrequences(int … |