Beginners - March 2014 (Page 43)

Adding large numbers - dynamic variables
 
I'm trying to add numbers that are larger than the max value for an int. So I'm storing the numbers in arrays, however, it isn't even letting me type numbers in...
[4 replies] Last: Oh, I hadn't realized this was an assignment. Ignore what I said, sorr... (by xismn)
error with std::reverse
 
Here is my function, taking an integer as an argument, then reversing it and comparing the original to see if the number is a palindrome. bool isPalindrome...
[2 replies] Last: It worked. Thanks! (by heyyouyesyouiloveyou)
How do I install ncurses on Mac OSX?
 
Can someone help me? I have looked online but I cannot figure it out.
[no replies]
Array problem (1,2)
 
Please tell me that how to store values in an array? E.g #include <iostream> #include <iostream> using namespace std; int main() { int x;...
[20 replies] Last: for (person=1; person <= 10; person++) { cout << "Ente... (by giblit)
display width and height allegro
 
what is the difference between doing using namespace std; cout << "bla bla bla"; and std::cout << "bla bla bla"; and why do people say that std:: is better...
[2 replies] Last: ok now i am just posting for the sake of posting. am i on the right t... (by Antone333)
Check array for equality
 
I have this excercise Write a program to compare two arrays for equality, write a similar one with vectors What does it mean by equality? Size? Value of elem...
[3 replies] Last: Okay once on PC I will upload the code and to see if it is right. Edi... (by closed account EwCjE3v7)
first allegro program
 
the program runs just fine everything goes as it should but i get a warning in my messages. it says this... passing NULL used for non-pointer converting 6 of...
[2 replies] Last: cool. thanks a lot. changed it to 0 and the warning went away. :) (by Antone333)
CALENDAR with One PrintF Function
 
i am making one month calned with ONE PrintF Command Here is The code #include <stdio.h> #include <conio.h> int main(void) { printf("\n**************...
[2 replies] Last: Thank you so much;; (by Ahmed50)
by enemy
change value in class using set?
 
HELLO! Please, could someone help me how to change price of book in that program using method set2? Many thanks if it is possible #include<iostream> ...
[2 replies] Last: Hello! I have set price of the toy to 11.22 andnow I woull like to cha... (by enemy)
Little help for include guards if possible...
 
image1: http://prntscr.com/30i7z0 image2: http://prntscr.com/30i8tj how can i prevent including windows h and color h in main? they are included once in mo...
[3 replies] Last: Really? I wasn't aware, cheers :) Though I must say this convention se... (by fafner)
Problems with while loop
 
Hey guys. Could you tell my what I'm doing wrong. While loop show me one extra line. #include <iostream> #include <fstream> #include <iomanip> #include <s...
[1 reply] : while (fd.good()){ fd >> n; while (fd >> n){ (by MiiNiPaa)
by enemy
double in class?
 
Hel)lo! Please, why is that program not outputting price (typ double )? #include<iostream> using namespace std; class product { ...
[1 reply] : because you declare price as string ,change it to double and see (by closed account 28poGNh0)
Complete Noob SFML classes question.
 
Hi, I'm new here. I have seen these forums before and they always seem extreemly friendly. I learnt C++ using this website. I have been using SFML for a little...
[7 replies] Last: Not really... you've basically just moved main into the constructor. ... (by Disch)
by enemy
How to multiply with another variable in class?
 
Hello! Please, I wish to cound second ID for the products objects of the class. WHERE should I declare 2( int m)? What if I want to change the value of it in ea...
[3 replies] Last: You can assing it in your constructor product::product(int a, strin... (by closed account 28poGNh0)
Dynamic Arrays & Pointers
 
I'm trying to add numbers that are larger than the max value for an int. So I'm storing the numbers in arrays, however, it isn't even letting me type numbers in...
[1 reply] : Are you sure check again # include <iostream> using namespace std; ... (by closed account 28poGNh0)
Multiple Source files?
 
Hey guys! I just figured out that I may missed a important point in C++ or programming itself. Actually I'm already pretty far with basic stuff - I understoo...
[2 replies] Last: Well since I didn't had that much of a tutorial for "inline" (going t... (by Falke88)
Can't I use a header file in another?
 
Hey Guys! I'm using two headers in my program. One is called Screen_output.h and Controls.h In my function list of Screen_output.h I want to use a func...
[10 replies] Last: Ha....wow...simple as that as it seems :) thx bro think the other one... (by Falke88)
pointer
 
I don't know why the output is 4 2 4 because I don't understand line 7 #include <iostream> using namespace std; int main(void) { int x = 5, y...
[2 replies] Last: int x = 5; int y; int* px; int* py = &y; // py points to y px = &x ;... (by nvrmnd)
Look for a data structure like sets in Pascal
 
In Pascal, I can write a boolean expression like ch in ['Y', 'y', 'N', 'n'] to find whether the character ch is one of the characters in the Pascal set I...
[7 replies] Last: You need to write these helper function once. Put them into header fil... (by MiiNiPaa)
Hi i have strange problem im new in c++
 
when i compile this program its only show me the C why?!?? #include <iostream> using namespace std; int main () { int a,b,c,max; a=2; b...
[4 replies] Last: thanks pal :)) (by raminlich)
March 2014 Pages: 1... 4142434445... 79
  Archived months: [feb2014] [apr2014]

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