Beginners - June 2015 (Page 28)

by d1729
C++11 File input output
 
I am trying to solve the usaco gift1 problem(greedy gift covers) but I am getting all the answers as...
[1 reply] : You should check whether the files could be opened, othewise you get b... (by coder777)
Checking a Linked List in another Class
 
I have on class that represents a Linked List of template<class Object> and another class IntList wh...
[1 reply] : Make a function inside your IntList class that compares the current In... (by Smac89)
adding items to get a total price of a computer.
 
So the code that I have done so far is below, basically I need to build a program that will allow a ...
[1 reply] : Hint: Try a loop of some sort based on user input. (by closed account 48T7M4Gy)
Conquest Dicom Open Source Project
 
I have been trying to compile the open source dicom/pacs implementation available at http://ingenium...
[no replies]
Dynamically allocating class object
 
Continuing off post I made earlier in this forum I'm trying to implement a program where the user ca...
[4 replies] Last: Ohh... I was under the impression that pointers always needed to be of... (by Extreme112)
Calculating months difference (Age Calculator)
 
Hello everyone! I've recently just started a new project to create an Age calculator in c++. I have ...
[4 replies] Last: If your question is how many days then you continue the calculation. H... (by closed account 48T7M4Gy)
using functions
 
I am trying to create a program using Functions that will read a list of names and grades from a tex...
[2 replies] Last: Ran your code and your function GetHighest has a g unfinished which yo... (by OmegaZero69)
Experience Programmers
 
Below is C code for the merge sort algorithm. Programmers it is your job to produce a main.c tha...
[1 reply] : Smells like homework. Programmers it is your job ... I do assume tha... (by keskiverto)
How do I make my number show as 1.0 instead of 1
 
#include <iostream> #include <iomanip> using namespace std; int main() { float membership = ...
[3 replies] Last: When floatfield is set to fixed, floating-point values are written us... (by closed account EwCjE3v7)
by pravi
C output different
 
Why is the output different in C? <#include<stdio.h> #include<conio.h> void main() {float a=1...
[2 replies] Last: A float is typically a 32 single precision value with only about 7 dig... (by dhayden)
Regex question
 
Hello. How do I modify this pattern so that regex_search would find ONLY "\w{4}"? int main() ...
[7 replies] Last: To match previously matched text again, use a backreference. http://ww... (by JLBorges)
Multimap problem
 
Hello. I get "error C2664: 'bool NameCompare::operator ()(Product &,Product &)' : cannot convert arg...
[2 replies] Last: Thanks. But since multimap has value_compare member I could do it diff... (by mighty asker)
Input test
 
Hello everyone, I'm very new to programming and taking an intro course for fun. I have a project du...
[3 replies] Last: Dupe post!!! Here... And there... Input test http://www.cplusplus.c... (by andywestken)
Using cpp code in python and R
 
Hello! I have a following task to do. Lets say I have a simple function written in c++: doubl...
[1 reply] : Google says for " call c++ from python ": https://docs.python.org/2/ex... (by keskiverto)
Need help with an error I'm getting!
 
The error I'm getting is converting to 'long long int' from 'double'. I'm not sure why I'm gettin...
[2 replies] Last: Line 37: // firstTerm = pow(termOne, 1.5); // *** error: 'firstTerm'... (by JLBorges)
by pravi
Different output in C
 
Why is the output different in C? <#include #include void main() { clrscr(); char a ="lk";...
[4 replies] Last: I think you both missed the point. The OP es expecting "lk" as output... (by AbstractionAnon)
Pointers, Structures, and Dynamic Allocation of Memory
 
Hello! I know I have been posting a lot but I have been learning so much from this community! So tha...
[2 replies] Last: softrix has posted a very nice example that is very close to what yo... (by AbstractionAnon)
by Smokey
Please Help
 
Write a program that creates an array with 34 integers like this: 0, 3, 6, 9, 12, 15, ..., 99 ...
[5 replies] Last: http://stackoverflow.com/questions/700241/what-is-the-difference-betwe... (by booradley60)
Weird Arrays
 
When I allocate the correct number of arrays, the program goes all weird. But when I allocate one ex...
[7 replies] Last: @mutexe @andywestken Okay. I see where the problem is. Thank you so ... (by jhykima)
by pravi
C output
 
Why are the ouputs different? <#include<stdio.h> void main() { int a=010; printf("\na=%d",...
[3 replies] Last: Thanks to all for your useful answers. I somewhat get it. But, I would... (by pravi)
June 2015 Pages: 1... 2627282930... 32
  Archived months: [may2015] [jul2015]

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