General C++ Programming - October 2015 (Page 12)

by rayb20
"Error 1 error C2228: left of '.size' must have class/struct/union"
 
Doing a sorting algorithm project and I am currently running into an error that I cannot fix. I have only attempted to implement one of the sorting algorithms ...
[7 replies] Last: ah, simple mistake, got it, Thank you ericool (by rayb20)
Printing Employee Details Having Maximum Salary
 
#include<iostream> using namespace std; /*Employee class declaration*/ class Employee { int id; char name ; float sal; public: void input(); voi...
[no replies]
I need help with my C++ Program loop.
 
So I have this assignment and I am totally lost. I have coded just about everything. What the program does is plays a game of high-low, or Acey-Ducey. My profes...
[4 replies] Last: The numbers the user will enter will be 0-51. Unfortunately, the only ... (by CEmert10)
Do while not working inside switch statement
 
NEED SAMPLE PROGRAM
[1 reply] : ¿why did you open a brace after case 'f': ? > resolve the logical ... (by ne555)
how can i check if one number is smaller than other table ?
 
I have to insert a number a that appears how many bread we have . after we want the diameter of the bread and the diameter for the base of the bread for each br...
[1 reply] : http://www.cplusplus.com/forum/beginner/176482/ (by closed account 48T7M4Gy)
by n1k170
two-dimensional array. Index
 
Hello, please if possible to help me with an assignment for school ... Program which is defined two-dimensional array of real elements with double precision. T...
[1 reply] : What you're asking now is not for help, but for us to do the assignmen... (by TarikNeaj)
Stack class constructor
 
StackX: :StackX () { pArr = new double ; maxSize = 10; top = -1; } May I know one disadvantage of having the above constructor. What is missing in it?...
[4 replies] Last: Oh okay thankyou! (by char123)
Can't get class to print or run at all!
 
It's supposed to ask the user for input and the switch decides what it does but when I compile and run it's just an infinite loop. It's first supposed to displ...
[10 replies] Last: One advice, you shouldn't put too many things on main(). you can creat... (by zhengakers)
Need help (Counting Instances of letters )
 
I have a problem, We are not allowed to use ARRAYS: Heres a sample output: How many iterations do you want?: 5 Enter a letter: a Enter a letter: z Enter a lett...
[14 replies] Last: @servers09 string letter=""; is the string variable that's going to... (by whitenite1)
When will a thread terminate?
 
In C++ 11, we can do a simple multi-thread program like: #include <iostream> #include <thread> void hello() { std::cout<<"Hello Concurrent World\n"; } ...
[3 replies] Last: Because in order for the program to end, you'd have to destroy the st... (by LB)
Problems with XOR Encryption
 
I've been messing around with XOR encryption, one-time pads etc. and it's working fine with reading simple one line text files. The problem is with multi line t...
[2 replies] Last: I've re-coded the encryption program from scratch and it works perfect... (by integralfx)
by yj1214
change condition in if statement
 
bool x = false; if(!x){ x = true; }else{ printf("Hello!"); } Shouldn't this program print "Hello!"? This works fine, bool x = false; if(!x)...
[3 replies] Last: yeah (by zhengakers)
by Ozzy69
Help me with ShellExecute
 
Hello, i want make login and password in facebook with a program in c++. Help me!!! Look my code: #include <iostream> #include <string> #include <windows.h> ...
[1 reply] : It can't be done like this. I don't believe there are any browsers tha... (by helios)
by Ozzy69
Help me with a string
 
Hello, help with errer of the code: #include <iostream> #include <stdlib.h> #include <stdio.h> #include <Windows.h> #include <string> #include <strin...
[6 replies] Last: thanks!!!! (by Ozzy69)
by ct180
Constructor Error
 
I'm having a bit of trouble getting this constructor to cooperate. The constructor is supposed to create a linked list from the given array but I can;t even get...
[11 replies] Last: Wow! Thank you guys so much! Everything works smooth now! :D I can't t... (by ct180)
queue
 
Please someone it's very urgent! Can you tell me how to reverse a queue? I mean I have two queues and I have to make a third one so that the first queue was the...
[4 replies] Last: thanks :) I have figured out another way too . It's by using recursio... (by The suffocated)
Degrees rather than radians
 
Hello C++ forums! This is my first post. I am currently programming a flight simulator for a school project, it is going excellently. I am currently configur...
[8 replies] Last: @Lavaguava TheIdeasMan is generaly the best way since trigonometry cal... (by Ericool)
by Trix
string problem
 
hello im writing a function to change nouns to plurals every condition is working great except words ending with y it should work like input : fly output :fl...
[2 replies] Last: Have you considered interpreter design pattern. What if you decide to ... (by Ericool)
Help me choose the best container
 
I have about 10 billion records (x86-64). Size of every record is 16 bytes. Every hour I have to add about 1 million new records and remove about 1 million old...
[2 replies] Last: other suggestion : Did you calculate the memory it will requires ? I g... (by Ericool)
Can't run debugger saying, "Unable to start program..."
 
I am using Visual Studio Professional 2013 and it won't let me run the debugger after building it successfully. Whenever I try to debug it, a message pops up t...
[2 replies] Last: did you implement the method in the cpp ? (by Ericool)
October 2015 Pages: 1... 1011121314... 27
  Archived months: [sep2015] [nov2015]

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