Beginners - August 2014 (Page 12)

Guessing Number in sequence
 
Hello everyone, I must reduce the number of iterations it takes the computer to guess my number. In this case, then number must be >= 1 and <= 100. I must...
[2 replies] Last: What I would do is ask if the number is less than or higher than. Then... (by giblit)
Linked list. Accessing data in element inside node.
 
1) In my class Car. I have this ID Model Driver 1 Car John If im using the default print() function from the Linked List, it will show all of em ID...
[3 replies] Last: See http://www.cplusplus.com/reference/forward_list/forward_list/front... (by keskiverto)
by shekhu
Friend Class
 
Is it possible to access the private or public variables of a class within another class using friend class.If so, how? I am a beginner at c++ programming, s...
[2 replies] Last: Thanks a lot !!! (by shekhu)
by LA101
Point Sorting with Vectors
 
Hey guys, I'm trying to write a program which reads a sequence of pairs of coordinates from a text file and stores it in a vector of points. Before readin...
[10 replies] Last: Hi @keskiverto, So I've tweaked the first loop's algorithm with the ... (by LA101)
Two dimensional arrays
 
Hello all, can someone please help me get the function disparray to compile. //Simpe code on passing arrays into other functions for modification #incl...
[7 replies] Last: I really recommend you think about using std::vector, it'll be much cl... (by jlb)
by Nison
Pointers and char
 
I want to know how to get the address of a character from a char array. If i do this.. char man = "Lock"; char *charpointer = &man ; cout << cha...
[2 replies] Last: Thank you! Now i get it, i think. Although i don't understand exactly ... (by Nison)
by zooto
Allegro 5 and Visual Studio 2013
 
Hallo, i'm at the very beginning with c++ programming. I'm working with Visual Studio 2013 Express. I wanted to set Allegro 5 libraries and start working...
[1 reply] : Did you build allegro with VS2013? (by naraku9333)
by ephekt
Overloaded + operator error
 
Hello all it has been a long time since I have asked a question on here, but I am having trouble with this overloaded + operator. I am trying to combine the two...
[10 replies] Last: It fails meaning I do not get a new object with the length of s1 + s... (by SuperStrange)
by h4ever
Linker error
 
Hi, can you help me to remove this error? I created new project A configured dependencies as so: opengl32.lib;glu32.lib;olepro32.lib;%(AdditionalDependencies);C...
[2 replies] Last: Thanks for your answer. When I have started new Console project, the V... (by h4ever)
Can any one tell me how will working this program?
 
Write your question here. #include<iostream.h> #include<conio.h> class distance { int feet,inches; public: void distance_assign(int f,int i) { f...
[1 reply] : @r 4 raja // Distances.cpp : main project file. #include<iostream>... (by whitenite1)
by Nezar
What does this syntax mean ?
 
Hi, i found this piece of code in folly's source, and i want to know what it means. my best guess was template specialization but i'm not sure. template<...
[3 replies] Last: The DEF_TYPE(bool, "boolean", dynamic::BOOL); thus means: template<... (by keskiverto)
Logic error
 
Hi, I'm having a problem with my code, no error, it's just the logic that is wrong program asks for a char and then proceeds to ask for a phrase, it will coun...
[2 replies] Last: Thank you, it works fine now. (by JustAGuyHere)
by ptyn
Help to fix a code.
 
Hello im a beginner in C++ trying to make a simple ASCII game but i cant get this work, i want to display my position on screen and change it after a key press ...
[4 replies] Last: Thanks again works (by ptyn)
by nasser
power function
 
i want to write a code that calculate 1^1+2^2+3^3....10^10 but it gives a weird answer #include<iostream> using namespace std; int main() { int ...
[3 replies] Last: Oh that's due to overflow errors. int or long isn't guaranteed to be e... (by Ganado)
by cpm14
asm in c++
 
hi can anybody help me with this program #include "iostream" using namespace std; int main() { asm { mov ah,2h mov cx,41 int 21h } return 0; }
[4 replies] Last: no it's not for online compiler because i get the exact error too. (by cpm14)
by bonho
Is there a convinient way to format a double into a string?
 
Basically I would like to have the format as "0.###" which means it shows up to 3 decimals if they are all non-zero. Otherwise it won't display the decimal ...
[2 replies] Last: Use a stringstream, then carry out additional manipulation of the resu... (by Chervil)
Isn't it a mistake?
 
Hi, I've seen this problem already on other forums, but I still haven't found concrete answer or it's sollution. This is exercise 32, chapter 10, from "Thinking...
[5 replies] Last: Thank you guys, I was trapped with this exercise, but no I can go on r... (by SuperStrange)
by bonho
funny syntax
 
I found an unintended ambiguity when I override the following operators in the class class MyClass { public: operator long() const; MyClass& operator...
[1 reply] : When x and y are respectively an integer and a pointer, x is equivale... (by helios)
by cpm14
size of int
 
i think that in c++ every int takes 2 Bytes of the ram. but in this program output shows 4 Bytes i'll be thankful if someone help #include "iostream" #inc...
[3 replies] Last: thank you i got it (by cpm14)
Create Folder Help
 
Hello, I was wondering how I would make a code that could make a folder then add it to a specific directory? Thank you for any help.
[no replies]
August 2014 Pages: 1... 1011121314... 40
  Archived months: [jul2014] [sep2014]

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