General C++ Programming - July 2015 (Page 4)

Overloading
 
Can some one help with this assignment, new to C++ AND NEED to improve my code below to overload the addition operator, the is equal to operator, the equal to o...
[1 reply] : Take a look at this: http://www.cprogramming.com/tutorial/operator_ov... (by coder777)
by fluppe
threads
 
Hi, i have a simple program, that shall use multithreading ... smth like (modified for simplicity ...maybe syntax errors) #include <thread> #include <...
[6 replies] Last: Hi again, ... well probably i have to ... i'll try that. But anyway, ... (by fluppe)
Linked List
 
Im struggling finding anything on linked list, in tutorial for C++. Is there a anything in tutorial for linking list. Im referring to liking structs/classes. It...
[7 replies] Last: Anytime! :) (by Little Captain)
Creating an object within a member function
 
Hello everyone! I have an assignment that states that I have to create a new object using operator overloading, I feel like I might have misinterpret the instr...
[6 replies] Last: Yes. I'm not sure how you even would create "another one" ;) (by LB)
Creating your own GUI library in C/C++
 
I wanted to make a GUI based program in C++ but i found everything too simple,non-standard C++ or i just didn't like it.I am also bored and need some huge proje...
[4 replies] Last: I guess his biggest problem is how to draw something since he has got ... (by Gamer2015)
The String Class
 
Alright so I've been programming in C++ for almost a year now. And I've decided to learn how to use a debugger. So after learning the basics of debugging, I de...
[5 replies] Last: Ok I see. Thanks!!! (by ForTheReallys)
Can't trouble shoot this!
 
#include <iostream> #include <string> using namespace std; string password = "yes"; //what is going to be overridden. string input; void start(){ cout<<"P...
[1 reply] : password == "password"; // equality comparison (this is what you di... (by JLBorges)
C++ reversi
 
Hello everyone, This is my first post in this website and I hope its as good as I heard :). Anyhow, I am sort of new to C++ but I have been learning it qu...
[7 replies] Last: Start by thinking about checking in one direction. For example, if r ... (by dhayden)
magic numbers
 
Hello, I am trying to write a program to compute magic squares. The output is supposed to look like this: 11 18 25 2 9 10 12 19 21 3 4 6 13 20 22 ...
[4 replies] Last: Yes, Gamer2015 is right. Just change the direction of the loops what y... (by Won)
3D mesh surface
 
I am trying to draw a 3D mesh surface on a GDI canvas. I have found some sample code written in Delphi but I can not convert it to C++. Is there any sample C++ ...
[no replies]
Functions and parameters
 
I'm currently taking an online C++ class so i really don't have as much access to my instructor as i would like. I read the chapter on functions and i watched y...
[13 replies] Last: You've already been asked once - can you please use code tags to make ... (by MikeyBoy)
by Beezy
C++ Simple Looping Program Problem
 
Prompt. Input ints, non-# to quit. ( Output the following 4 values: smallest # second-smallest # second-largest # largest # You may assume without chec...
[1 reply] : Please use code tags! (inc. going back an editing you opening post, s... (by mnm71)
by yj1214
Does anyone know how to compile STK on Windows?
 
I'm using MinGW on Windows and I can't figure out how to compile my STK project with MinGW. It gives me undefined reference errors but the library itself doesn'...
[1 reply] : SOLVED. I had to link few object files that STK provided... (by yj1214)
my .exe doesnt work
 
when I run my program in the compiler it works without a problem but when I try to run the .exe file it just goes into "not responding" and then stops altogethe...
[3 replies] Last: "not responding" is Windows's way of telling you that your application... (by Duthomhas)
Random Positions in 2d array
 
Hi. How do generate 15 random positions in a 2d array and store 'F'. Example: #include<iostream> #include<stdlib.h> #include<time.h> using namespace...
[1 reply] : This is one way: #include <iostream> #include <numeric> #include <it... (by JLBorges)
SDL Cannot open or find the PDB File
 
Hello Everyone, I have a extremely frustrating problem right now. I have written a simple sdl program and it builds with no errors. But when I run the program i...
[2 replies] Last: Solved, apparently my bmp file wasn't a bmp file. Mind == BLOWN (by CpluspProgrammer)
Alternatives to System(Title) or other system functions
 
I want to make my project work for any O.S. I need a general purpose alternative to System("any") functions. Example for System("PAUSE") i can use voi...
[2 replies] Last: You want the Curses library. NCurses on *nixen. PDCurses on Windo... (by Duthomhas)
Program on link list to structs due in 30/45 min and stuck
 
I suppose to write a program using link list to link structs of an address book. I keep getting errors on the pointer dereferencers that refer to the pointer in...
[5 replies] Last: In your program , i don't see you use the link list . In order to deb... (by yuzhengtian)
Binary search
 
Hello, I`m doing the exercises of the C programming language and the question is as follows: Our binary search makes two tests inside the loop, when one w...
[1 reply] : What's the purpose of lines 58,59,65? If you comment those out, the ou... (by ats15)
Reaction game
 
So i have been making a game that uses a reaction tester. It tells the player to get ready then after 4 - 6 seconds it prints the word go and you have to press ...
[no replies]
July 2015 Pages: 123456... 15
  Archived months: [jun2015] [aug2015]

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