Beginners - January 2014 (Page 32)

Multidimensional Array From Data File
 
It compiles just fine, but when I run it, the output shows "The tallest female is 0x22febc" and "The...
[8 replies] Last: So should I just delete 18 from the data file? (by Architect343)
by lekha
greater than 100
 
i used if statements and i would like to know is there any other way to create a program that finds ...
[1 reply] : Sure there is. But this one is simple enough. But what's the point of ... (by MatthewRock)
Pointers & new
 
Hey guys , please see the code int array {1,2,3,4,5,6,7,8,9,10}; int *ptr= new int ; ptr=...
[8 replies] Last: thank you guys. (by Cutefriendzoned)
by Nata
Write starts corresplondingly to numbers entered
 
Hello. I have just began to study arrays and I am trying to write a program, which prints same numbe...
[2 replies] Last: hahaha That is exactly what I wanted that you very much I now get what... (by Nata)
using sub-classes as fake template typedef. Bad practice?
 
Dear all, I find myself dealing with very long typenames, e.g. std::set<boost::shared_ptr<Abstra...
[4 replies] Last: @thumper: anyway, which is better: C++03 or C++11? from the speed, eff... (by chipp)
File is not being created (very simple code)
 
#include <iostream> #include <fstream> using namespace std; int main() { fstream ta...
[4 replies] Last: Also of interest, you can use fstream the other way afterwards to read... (by CplusplusAcolyte)
by DELB
IntelliSense: a reference of type (not const-qualified) cannot be initialized with a value of type "const char [4]"
 
// Reverse String.cpp : main project file. #include "stdafx.h" #include <string> #include <i...
[3 replies] Last: [code firstline=7] std::string reverse( const std::string& s) { VS ... (by Duthomhas)
installing gcc 4.8.2 for eclipse juno on windows 7
 
hi there, my name is arillious alyas and im having some trouble with installing gcc 4.8.2. ive wri...
[1 reply] : If you want to, you can download microsoft visual c++ 2010, it comes w... (by closed account iAk3T05o)
by binf
Need your help
 
I want to write a program that is going to read 3 marks of n students and then it will find out how ...
[3 replies] Last: Right, there is one more issue: sum is int and 3 is int litera... (by JockX)
by DELB
Locale Question
 
#include <locale> std::string toUpper(const std::string& s) { std::string result; ...
[no replies]
by Mishu
question on binary search
 
kindly guide me through the errors in the following code #include <iostream> using namespac...
[1 reply] : Firstly you need to ensure that the elements are sorted. Secondly, I w... (by Script Coder)
by alsade
array of strings into array of integers issue
 
why does the array score doesnt get only the integers from the string array line? string...
[3 replies] Last: the input file look like this: Register Teams Hapoel Ramat-Gan Irron... (by alsade)
Getting first name from string
 
Input file looks like this Ray, apple, stewart Kandi, Ryan Albert Steve, Jobs The format of t...
[1 reply] : I'm assuming that the first line in your input file is incorrect becau... (by Smac89)
Access data in an Array
 
How to access a data in an Array?
[5 replies] Last: Did you try to google this first? http://goo.gl/zAuVig (by Smac89)
Binary Search for 2D vector
 
I am trying to write code for Binary search program on a 2D vector. I tried code. But I can't unders...
[1 reply] : your going to have to forgive my lack of knowledge but if there is one... (by closed account Dy7SLyTq)
Is private member declaration necessary in a Class?
 
I dont know if im mistaken but classes automatically set their members to private, as in only object...
[5 replies] Last: ah i got protected and private mixed up there, i had forgotten private... (by Penanito)
Color and blinking
 
Alright so I done most of this, i need to Put the output in color and it should be in color. And whe...
[1 reply] : I've achieved color output easily enough, and can make text blink by a... (by CplusplusAcolyte)
Leap Year Calculations
 
My code is to tell the user whether they entered a leap year or not. I'm not sure how to determine i...
[4 replies] Last: Thank you very much!! (by BrookeP)
by GGG
Copy data from file.txt to an array
 
Hello everyone ! I have to make a program where I have to take data from a .txt file and put that i...
[1 reply] : std::ifstream fin("myfile.txt"); std::string line; int arr , size = 0... (by Stewbond)
Unit Testing for CheckForTextNumber in C++
 
We need a function called checkForTextNumber that finds numbers like the following: one million tw...
[1 reply] : As a begginer myself I would love to have it explained. Is it even C++... (by JockX)
January 2014 Pages: 1... 3031323334... 44
  Archived months: [dec2013] [feb2014]

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