General C++ Programming (Page 7)

by kais2
Bubblesort with a class
Hello i have to write Bubble-sort with 3 functions in a class: 1. a function to implement the sort....
[9 replies] Last: In "void bubsort :: sort()" why do you use cout inside the scope of th... (by Nico)
Changing a struct to a class, using public and private variables.
So basically I worked really hard on this code in my CS150 class and now I need to change it to a cl...
[4 replies] Last: OP: I am not sure whether to call this multiple posting or not ... ;) ... (by gunnerfunner)
by Rikasi
a database for games played by a program
Firstly should I read/write to files using c++? I'm starting to learn SQL but I haven't reached a...
[1 reply] : Firstly should I read/write to files using c++? Yes, C++ is a lower... (by Golden Lizard)
Input error crashes process
I'm working on a console hack of mine everything seem good but when I press enter twice it crashes t...
[3 replies] Last: To try and diagnose what's going on I've stripped out the intervening ... (by gunnerfunner)
by kais2
Bubblesort (1,2)
Hallo i have to wrie Bubblesort with 3 funktions in a class a funktion to impelement the sort ,a fun...
[25 replies] Last: but im not sure if i have to do with sort::sort (by kais2)
by melika
Chess Game Board Question
Hi everyone, beginner in C++ but I'm surviving. For my final project, I'm programming a chess game, ...
[3 replies] Last: Yes, but if you are a beginner you may just use System("clear") or clr... (by Golden Lizard)
by KMS
#include<iostream.h> #include<conio.h> void main() { clrscr(); int mark , i, a,b,c,d,e; flo...
[1 reply] : (by kemort)
by ryard
urgent. please answer
I had a problem in understanding the algorithm of this program.Can you tell how this program is work...
[1 reply] : The first thing to notice is that function fungsi() receives three p... (by Chervil)
Make program into executable file
How do I make the compiler compile my program into an .exe file? My intention is: I am making a p...
[2 replies] Last: Standard C++ does not have any GUI functions. You can use the Win32 AP... (by boost lexical cast)
Prime Numbers
Could anyone please help refer me to a site that uses a fairly complex method to determine prime num...
[5 replies] Last: @ncampbell16 If you want to use use threads (which you do), then you ... (by boost lexical cast)
Important numbers by Monte Carlo Simulation
The code below (should) produce some decent approximations to certain mathematical numbers by Monte ...
[8 replies] Last: cire - That's a good point. Certainly if you allowed theta to range ov... (by lastchance)
Cards against Humanity code.
I'm currently taking a CS100 course in my freshman year and I've been given a project which is to cr...
[1 reply] : readfile >> s; s is a string, so it will only read up until it hi... (by alex067)
by Joafie
I'm getting a segfault when I output the contents of a structure, but only when the iterator is 1 or higher
I'm new to pointers and still a bit confused by them, so any suggestions would be super helpful. Bas...
[2 replies] Last: Wow. Thank you so much for helping me. I didn't copy the code, but I ... (by Joafie)
by cmisip
Template parameter with variadics and shared_ptr (1,2)
How come the commented out code does not work?. I am trying to come up with a way to pass multiple ...
[28 replies] Last: > Due to the non trivial copy constructor and move constructor which a... (by JLBorges)
hi guys, I am looking for C++ code for the game: (The Tomb of the Blind Dead) its a zombie game...
[no replies]
I need to change this program I wrote, from a struct format to a class
So basically I worked really hard on this code in my CS150 class and now I need to change it to a cl...
[no replies]
flagging data
Vector Program This file contains data from an instrument th...
[1 reply] : That's not hard to start, just open the file then input the values int... (by Golden Lizard)
c++ inheritance expected class name before token
Halo guys i have error message expected-class name before "{" token here is my code /////////////...
[2 replies] Last: thx you sir its work now (by mustain5)
puzzle search
So, I need to write a program that will find all of the words in a crossword, including reversed and...
[no replies]
Project Euler Challenges
Hi my names john i am extremely new to coding but iv decided to try to complete 1 challenge a day fr...
[1 reply] : Please do not. You gain access to a forum on that site where you may ... (by cire)
Pages: 1... 56789... 27
  Archived months: [oct2016]

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