Beginners - September 2013 (Page 59)

by haterz
Sample program SFML library
 
Im just a beginer in c++.. I find difficult to write program using SFML library.. I want to look th...
[3 replies] Last: I side pretty much with Disch. With the caveat that it might be best ... (by andywestken)
Require the user to enter an integer
 
Part of the program I am working on requires the user to enter how many passengers will be in a carp...
[6 replies] Last: > How do I add a second condition, which prevents them from entering s... (by JLBorges)
Compare two strings input by the user.
 
#pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> #include <iostre...
[6 replies] Last: I never used or use c-strings though I am a little more than a begin... (by Superdude)
by Tystuh
Help with pointing arrays (simple...)
 
In the temp array the first box represents the days and the second is the hour of the day. I need t...
[5 replies] Last: Int k = day1 is not an int fix: // k= day 1 int k = 1 (by Gkneeus)
Help with manipulating arrays (also reading from file)
 
Hi! I am developing a neural network in C++ (prior experience in Matlab) and I am having trouble ...
[1 reply] : Why do you need a 2D array? Also, please be more specific about your p... (by Josue Molina)
by BC300
Error Message for Variables for Program (1,2)
 
The test data I have for the program has listed width has a double variable, but when I try to compi...
[21 replies] Last: and that's why http://www.cplusplus.com/forum/beginner/1988/ (by closed account 28poGNh0)
by Codeez
istream / osteam objects
 
In my book, I've come across this: istream &read(istream &is, Sales_data &item) { double pric...
[2 replies] Last: Thanks for that. I've only used cin for input so I understand now. S... (by Codeez)
by Ch1156
Am i better off doing this...
 
Ok so in my code i use cin.clear(); cin.ignore(numeric_limits<streamsize>::max(), '\n'); pretty mu...
[1 reply] : I really don't see anything stopping you from doing that function. (by Tertius Kgatla)
use of static in variable and class
 
What does the meaning of static when we use this in front of variable or class like static int a...
[11 replies] Last: In addition, when static is applied to a variable or function at file... (by andywestken)
looping
 
Hello, I really can't figure this out. A much needed insight is appreciated. So, I want to create a...
[8 replies] Last: break wouldn't solve it, if you don't want something to appear multipl... (by manudude03)
Rvalues and constructor calls (1,2)
 
I wrote a small program to see how rvalue reference overloads (of the copy constructor and the assig...
[20 replies] Last: [quote=andywestken]Constructor called [0, init, -1, mottoA] length #2 ... (by coder777)
by rsg
I can't get it to compile (using OpenCV libraries)
 
I'm trying to run code called squares.cpp (from https://code.ros.org/trac/opencv/browser/trunk/openc...
[3 replies] Last: CV_AA is a macro defined in `opercv2/core/core_c.h' To copy you may us... (by ne555)
counting
 
Hello, I am havig a problem counting certain characters ina string. What I want is to count the numb...
[5 replies] Last: I think @giblit 's code does not work for you ,because you dont have t... (by closed account 28poGNh0)
by Noct
Help how do I declare variable correctly?
 
Also what's the difference between string and int? #include <iostream> using namespace std; in...
[2 replies] Last: Noct, Start here: http://www.cplusplus.com/doc/tutorial/variables/ (by closed account z05DSL3A)
by Noct
Do I always need to put "int" when declaring a variable?
 
In c++ is it always needed to use int when declaring a variable? unlike python you just type any cha...
[2 replies] Last: However, there's a very interesting project lying around, which attemp... (by m4ster r0shi)
OR operator
 
How would you use an OR operator, I tried to use it | ...
[5 replies] Last: Instead of void Main() you hace to write int main() (by vlad from moscow)
Please, I need help with the C++ libraries
 
Halp! #include <iostream> //Basic input output for interaction with user #include <Windows.h>...
[5 replies] Last: Changed int main worked after I compiled it a second time. Thanks (by Code Apperentice)
callback
 
please brief me the meaning of callback in C with some example
[3 replies] Last: Customizable behaviour. man atexit: NAME atexit - registe... (by keskiverto)
Event generation and sensitivity
 
i have two cases. in first i have to notify an event after completing certain task and in 2nd case ...
[6 replies] Last: Unless you are using threads, they do not need to wait for another eve... (by Superdude)
C String strncmp difficulty (1,2,3)
 
The following code is designed to create a simple exit condition. If the user types 'exit', the prog...
[50 replies] Last: Late reply Disch, part of the point I was making is that since you ... (by Disch)
September 2013 Pages: 1... 5758596061... 64
  Archived months: [aug2013] [oct2013]

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