General C++ Programming - September 2014 (Page 22)

Please Help Stuck
 
This Problem Im stuck on anyone know how to do this? Using a loop with error trapping/validation, ask user for a number between 10-15. Allocate an array with ...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
Count the number of distinct edges using set based algo
 
So I have this set 1 3 1 4 2 4 3 1 6 2 3 5 3 6 4 2 1 3 4 4 6 2 now using sba or Set Based Algorithm I have to pair it out and towards the end find the size of...
[1 reply] : Are you basically asking how to read input? http://www.cplusplus.com/d... (by keskiverto)
Inheritance Problem
 
I have two classes that utilize an overloaded stream insertion operator, as follows: class BankAccount { private: ... protected: ... ...
[4 replies] Last: Okie dokie :) (by Aaron Vienneau)
An unusual data type... what do I use?
 
I have an unusual situation in which I want to use a basic (raw/built in) data type that hides some of its value. Let me explain what I mean. Basically the ty...
[15 replies] Last: > What does 'elide' mean though? In English, 'elide' means 'omit'; p... (by JLBorges)
Design question?
 
Hi, I am wondering if this is a good design for my player class class Player : public GameObject, public Stats, public Talkable { void process() ...
[1 reply] : No. You'll find multiple inheritance of implementation will be an ong... (by kbw)
Calling all reverse engineers
 
Hi everybody, I wrote a encryption algorithm (uses a single password to encrypt and decrypt) and would really like to test how it stands up to people who knows ...
[7 replies] Last: If I should add or change anything, please tell me... I'm really eager... (by Cube777)
Using Quad-Dual core cpus?
 
whats the easiest way of speeding my program by using more than a single core?!
[9 replies] Last: thanks all :) Krisando , that looks awesome, now that's enough for mos... (by kam hagh)
Turbo C++ Basic Loop Statement Errors & Warning
 
hey guys, i got an errors and 1 warning, how could i correct my codes, i need your help thanks, i am new to this forum btw. code used: #include <iostream.h> ...
[2 replies] Last: can i used Dev C++ sir? anyway let me try the guide you suggest sir... (by Expelunker)
Card Game War
 
I have spent way too much time trying to get my first assignment correct for my C++ programming class. I have put in a ton of work, but haven't successfully go...
[6 replies] Last: Thanks for the pointers on this Yay295 and JLBorges. I made sure I fi... (by zachariah535)
Find the errors in this programming...
 
#include<iostream.h> #include<conio.h> class add { int num1,num2,sum; public: add() { cout<<"\n Constructor without parameters"; num1='\0'; num2='\0';...
[6 replies] Last: Your code: add add::addition() { add a(5,6); sum = num1 + num2 + ... (by keskiverto)
help file handling
 
I'm abhishek, I'm new here! I'm writing a programme for writing data to the file. This is my code: #include<iostream.h> #include<fstream.h> #include<coni...
[3 replies] Last: Thank you, sir. I tried to run it mannualy and it worked. (by janjalkar)
PROBLEM WITH PROGRAM in C++
 
Hello Everyone ! Can anyone help me with my program? When I assign a value to rate throught the function input_num(int&,int) and when I display the values of ra...
[1 reply] : You never set the value of itemno. (by Yay295)
by judo11
How to trap using while loop.
 
If the item to be entered is smaller (in value) compared to the last item, the input will be disregarded as it is considered invalid entry. Here's my code......
[1 reply] : I don't see a queue. Though while(num/10000<=0||num/10000>=10) can ... (by Yay295)
Newbie need help!
 
What kind of code should i use for sorting numbers in both ascending and descending order? I don't know how to use bubble sorting either, is there another easy ...
[3 replies] Last: Thanks! i think i can learn a lot from these. (by vampirenelf)
i need help with c++
 
i have two project for my college class and i need help with the code and need to know what to do if anyone can help me i would like that. project one: Writ...
[3 replies] Last: The user is only entering one number - you don't need 26 different var... (by wildblue)
by JScpp
Is this the best way to do this?
 
I plan to use a (not std) linked list in a 3d game to list game object entities. The way this would work is the program would go through each game object node a...
[1 reply] : No, I think it's safe to say that you should never used a linked lis... (by Avilius)
c++ help
 
i have two project for my college class and i need help with the code and need to know what to do if anyone can help me i would like that. project one: Writ...
[no replies]
by Fringe
Total sum of arrays
 
I have two user defined arrays and am trying to sum all of their elements together. Here is the function I must adhere to. int sum_of_all (int data1 , int da...
[2 replies] Last: Array indecies start at zero, so your for loop condition should look l... (by Lowest0ne)
C++ cout not displayed after while loop
 
Am having a problem with the following program not displaying the cout after the while loop, it doesn't ask if I want to enter another employee but just prompts...
[1 reply] : Remove the stray semi-colon at the end of the while statement. Aceix. (by Aceix)
by WAKS
Draw the same sprite multiple times (SDL)?
 
Hello! I have a question about SDL and drawing sprites (SDL surfaces). My idea is that the user can create a wall of separate sprites by create one sprite each...
[3 replies] Last: You have to change the dst_rect parameter, obviously. (by helios)
September 2014 Pages: 1... 2021222324... 28
  Archived months: [aug2014] [oct2014]

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