General C++ Programming (Page 7)

The 3n + 1 Problem From UVa Online Judge - Help Needed in Understanding It
Here's the link to the problem's page on the online judge site:
[13 replies] Last: For the one integer field thing, I was talking about this: Create an ... (by DragonOsman)
If a class Derived inherits publicly from a class Base, is it always true that C style cast is going to work?
Hi, Yes, I know C style casts are bad news, but I am trying to pinpoint the only places where they ...
[3 replies] Last: Yes, I know C style casts are bad news, but I am trying to pinpoint t... (by jlb)
Finding the Mean and Average of a Set of Temperatures
In Stroustrup's intro C++ book, Proggramming: Principles and Practice Using C++ 2nd Edition, there's...
[3 replies] Last: Working? Lets see, I have two temperatures. The temps.size() is t... (by keskiverto)
by Wabush
Comparison of doubles and problems associated with it
Hello ! First of all, my apologies for the horrible formatting, I wasn't able to make it work no mat...
[6 replies] Last: Thank you for your answers, I'll keep searching on my side and just ma... (by Wabush)
Newline strangely persists
Hi everyone, I wrote a small menu which is accessed from a string a user is prompted to type. Aft...
[1 reply] : What you type goes into a buffer. Your program removes some things fr... (by Moschops)
by lnp657
Error storing objects of a class in a linked list
Confused on why I'm getting an error when I try to store information into a node of type Student (th...
[8 replies] Last: It shouldn't compile because on line 26 of LinkedList.h you promise to... (by Moschops)
by king16
Calculates julian day-of-year
fds dsf ds
[2 replies] Last: This might help with a visual clue (by SamuelAdams)
by DTM256
Standard Abbreviations - clock_t?
Hey guys, I want my code to be easily readable by all who needs to read it. Therefore, I want to ...
[8 replies] Last: What you're calling "speed" is the inverse of speed. In this case, com... (by Moschops)
by Scuffz
adding two seperate arrays into one is displaying garbage
I'm trying to obtain a large integer (20 characters long) get it from a string then put it into an i...
[1 reply] : // if operator is + int sum ; //uninitialized if(operation == "+") ... (by ne555)
by Scuffz
cout an array and its displaying "-48"
I'm trying to obtain a large integer (20 characters long) get it from a string then put it into an i...
[2 replies] Last: thanks! (by Scuffz)
by d3v4l1
What did I miss? (Templates, Classes, Linking)
Hey guys. I'm stuck with a linked list class I was aiming to make generic after writing it successfu...
[10 replies] Last: No. ListNode<T> const *iter = head; is semantically equivalent to... (by mbozzi)
by king16
TotalUp Array
Hey, guys, I got this code written but I don't know how to following things: a. Total up the numbers...
[9 replies] Last: Here is what I did but still not printing the total of row, column, o... (by integralfx)
I/O files program
I am given two files to work with. One lists popular baby names that are ranked by their popularity,...
[1 reply] : Well that's a good start congrats ! It seems to me you need to start ... (by SamuelAdams)
This is homework but if you don't help me I will fail
So unless anyone wants to see my fail my programming class. HELP ME!!!!!!!!!!! 1) Create two new Ve...
[5 replies] Last: Yes, I should. Vector ()? (by Pecardo Hofley)
Pairing User Input to a 2-D Array
I'm having trouble finding information on this specific issue. I have a function that takes an input...
[2 replies] Last: Thanks for the reply man. The CharType() function is supposed to sele... (by Iggles88)
Using OOP(class & method) C++. Write program full name.
#include <iostream> using namespace std; class FName { private:
[no replies]
Reading Pixel Data from Image
I'm currently using stb_image for loading images in my little game. The problem I'm running into is ...
[2 replies] Last: Thanks Moschops, I was going to post back an answer that helped me as ... (by hashbrown)
counting using can.get(ch)
What is the output of the following code fragment? (Assume all headers files are included) int...
[1 reply] : Answer: 15 #include<iostream> #include<string> int main(){ std::co... (by gunnerfunner)
Code::Blocks and global variables
I have a library that I want to #include <myheader.h> instead of #include "path/myheader.h". If I...
[2 replies] Last: You're right. I simply assumed that's not possible..for some reason. A... (by zoran404)
All posibilities question
Hi, i need for an project all posibilities of some numbers, rules are: 1)there's 3 diferent numbers...
[4 replies] Last: Yes, it worked, thanks, i didnt need it as a program but it solved my ... (by CosminPerRam)
Pages: 1... 56789... 36
  Archived months: [aug2016]

Cannot post in this page. To post a new message, go to the first page.