Beginners - October 2010 (Page 40)

Friend problem (overloading >>/<<)
 
Hiya. Trying to overload the stream insertion/extraction operators, but apparently my friend functions aren't being recognized. It's about rectangles. Here's...
[3 replies] Last: Kind of an embarrassing error, but I pretty much had to post it. Not ... (by Erdrigard)
Question on displaying text at screen coordinates
 
I need help on how to display text in screen coordinates and not rely in \t control characters. Thanks
[1 reply] : Solution for Windows: void gotoxy( int column, int line ) { ... (by Null)
by khris
header and implementation files...
 
Hello everyone, I need a bit of help with this program. It's a simple program I am coding to practice making header and implementation files. The program is n...
[13 replies] Last: Thanks gcampton, I'm glad I learned this sooner than later..I was wond... (by khris)
Structs in Classes (program flow)
 
I need to parse a large amount of command line arguments. I was thinking the way I could do this from main was to have a class that dealt with this, but then I ...
[5 replies] Last: Better way: (because I finally read my lecture notes, and found it) ... (by gcampton)
Double Constant???
 
Why do some parameter values have two "Constant" symbols on them... Example: void Function( constant int number constant){ ~~~~~~~~ ~~~~~ ~~~~ } ...
[5 replies] Last: The const before the * means that you can't modify the object pointed ... (by Galik)
Pointer sign on Function
 
Why would you.. put a pointer sign on a function.. For example.. int *Function( int, int); same for reference.. why would you put a reference sign ...
[3 replies] Last: Return a pointer? A pointer to a c-string, of course. Return a refere... (by LB)
while loop
 
Hi, I'm in a beginning class in C++ and we need to make an assignment that inputs a file, prints it to the screen, and then prints it to the screen again with a...
[2 replies] Last: hm. That is strange. it is a .txt blank text file. I'm sorry, I dont q... (by angeltinka)
Compare and combine two different text files
 
hai guys... i'm facing a problem on how to compare and then combine back the two different files (text files) i have 2 text files which i stored them in 2...
[3 replies] Last: Well then I think the code snipit I posted should work. Although the ... (by gcampton)
Must output an Error Message if any of the input is inappropriate
 
Hello; I need help trying to figure out how to output an error message if any of my input is inappropriate. If any of the entries is >100, then it should d...
[2 replies] Last: Thank you :) (by SweetLen)
URGHH!!! (1,2)
 
Hello iam new to using c++, it is a rather fasicanting program but it is really annoying.Iam was watching a tutorial on youtube.As far as i know i typed everyth...
[22 replies] Last: it works now(after reinstalling) (by sailornaruto39)
Dev-C++ not creating .exe files
 
I am in a introduction to programming class at my school and we need a compiler at home to work on. I downloaded Dev-C++, which we use at school, and tried to d...
[3 replies] Last: Thank you, SealCodes! CodeBlocks works perfectly! To answer m4ster ... (by Nathan Drayke)
by Maerle
Struct
 
What's missing in this program? i'm with some details problems. I think there's something wrong in the return of the function, but i don't know how to correct....
[4 replies] Last: char *name = {"Janeiro", "Fevereiro", "Marco", "Abril", "Maio", ... (by Tamao)
Check for Prime number
 
#include <iostream> #include <cmath> using namespace std; int main() { int n; cout<<"Enter a number: "; cin>>n; bool is_prime = true; ...
[2 replies] Last: I think that you may have trouble with div <= sqrt(n) , because of ro... (by ne555)
by Citis
FILE* c,d; doesn't work!
 
FILE* c,d; c=fopen("C:\\chara.txt","r"); d=fopen("C:\\inta.txt","w"); FILE* c; c=fopen("C:\\chara.txt","r"); FILE* d; d=fopen("C:\\inta.txt","w"); ...
[6 replies] Last: Thank you! (by Citis)
Vector of Structs
 
Ok, so let's say I have a struct made up of 4 elements and then I send a series of these structs to a vector and now I want to loop the vector through to print ...
[3 replies] Last: Oh, I see my problem now, my index is in the wrong spot instead of ite... (by akunselm)
by mwmnj
My first C++ program!
 
Here is the first program we were to make for my intro to programming class. It is to calculate the area and perimeter of a rectangle. It works but I am not su...
[2 replies] Last: I believe in this case you want to use float calculate(float length, ... (by kaduuk)
Standard Deviation
 
Hello again! Can anyone provide me with an algorithm calculating standard deviation of a data??? (I mean ordinary standard deviation assumed normal distribut...
[2 replies] Last: Can u help me on my second question? see it 4 topics down please-call... (by tsotne1990)
What is wrong with my code?
 
Hello. I wrote a code to test some basic operations, but when I enter my name (Introduzca su nombre) it closes. Why happens it? I wrote the cout lines in ...
[12 replies] Last: @paradoxa I wasn't trying to be mean (guessing you referred to me),... (by kaduuk)
Compilation error
 
Hi guys! Can anyone help me? Im a new to this site and C++ environment. Im running a Microsoft Visual C++ express 2010 and I write a code in 3 separate file...
[2 replies] Last: Thanks for attention! But I have copied all the files in one directory... (by tsotne1990)
file manipulation
 
i'm having problems with my function: edit. when i enter a name eventhough it exists, it always prints "File not found". #include<iostream.h> #inclu...
[4 replies] Last: even linked list wasn't discussed thoroughly.. thanks for the strc... (by silvertooth07)
October 2010 Pages: 1... 3839404142
  Archived months: [sep2010] [nov2010]

This is an archived page. To post a new message, go to the current page.