General C++ Programming (Page 6)

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)
output of the following program mcq
What will be the output of the following program? (Assume all the header files are declared) ...
[no replies]
output of the following program mcq
#include<iostream.h> void main() { char a ={"Examination"}, b ={"my"}; int i ,j; for( j= 2 ,...
[no replies]
Problem with IF/ELSE Project!
Having trouble with a project I'm working on. Here are the project details.. Problem: DESIGN and CO...
[2 replies] Last: // Storing user's grade for exam 1 cout << "Please enter score for E... (by integralfx)
how to create one program consisting four program inside
how to make a program that has ( for loop, while, do while, array ) on it. example when you press...
[9 replies] Last: thank you so much everyone! :)) (by mariaaab)
Pages: 1... 45678... 35
  Archived months: [aug2016]

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