General C++ Programming (Page 49)

by niuxe
The gussing game
 
Hi, I've just started c++, and I've tried to code the guissing game, but I ran into some truble when...
[no replies]
How to round to the nearest odd? C++
 
I want to make any decimal point in even to go to odd and any decimal point in odd stay as odd in C+...
[2 replies] Last: Using <cmath>... //Pseudocode If(floor(x) / 2 != 0) //If the number... (by Mats)
C++ Class Assignment, Need Assistance ASAP
 
Ok, so my assignment is to write a program that computes how many feet an object falls in 1 second, ...
[1 reply] : 1) Please use code tags when posting code, to make it readable: http... (by MikeyBoy)
by quayda
Sentinel not working....
 
I'm not sure why this isn't working, but this is my error message: Error] no match for 'operator!=...
[2 replies] Last: Yeah, that was the problem I was able to fix that, but now I'm struggl... (by quayda)
Matrix Multiplication
 
Hello, I have a program matrix multiplication but it work not for big arrays. I dont understood ...
[6 replies] Last: how can ı write as a matrix : double* x = new double[n*n]; for (int... (by candidate)
game timer suggestions
 
I am making a maze type of game and I was wondering, how would I create a background timer that keep...
[2 replies] Last: > code example would be a big help. #include <iostream> #include <fu... (by JLBorges)
Tic-Tac-Toe
 
Hello, I've been working on an AI program that has two AIs going against each other in tic-tac-toe. ...
[1 reply] : AIPlayer.hpp #ifndef AIPLAYER_HPP_INCLUDED #define AIPLAYER_HPP_INCL... (by crimsonzero2)
How to make random letters with a vector
 
Hi, everyone. Thanks in advance for helping. I have read the related topics to mine, but none of t...
[2 replies] Last: #include <iostream> #include <vector> #include <string> #include <alg... (by JLBorges)
DFS
 
Hai i am new to the world of competetive programming...I have just started to learn data structures....
[no replies]
use of double or float in array
 
Can you use data type double or float for an array? ie double n ; or float a; float m ; ...
[4 replies] Last: You can have an array of any data type. The offset must be a signed or... (by giblit)
Rounding to nearest half?
 
******EXTREMELY NEW TO C++***** C++ Question: How do I round to the nearest half integer? ...
[4 replies] Last: #include <iostream> #include <cmath> int main() { double a = {... (by JLBorges)
Static member/function errors.
 
What am I doing wrong with static members and methods here? compiler errors: 1>test.obj : error ...
[4 replies] Last: Thanks, L B and long double main (I obviously just missed your reply b... (by trainbike)
by kok23
ASSISTANCE NEEDED: Incremental Program Development, Vectors/Arrays, Loops, Output formatting
 
**I have a project that, unfortunately, the professor has not taught the class how to do. We use Dev...
[no replies]
If function is false, the else works. If true, segfault.
 
I have this function: bool login(const string& username, const string& password) { ...
[6 replies] Last: Haha, I got a broken gdb or anything like that. I'll test your code. (by iQChange)
fstream and replace question
 
Hello, I'm supposed to be able to replace a word within an input file (and in this case my input fil...
[1 reply] : ¿do you know what else means? look at how the lines were replaced ... (by ne555)
How is writing this question??
 
Write a program that calculates for an employee the gross pay and net pay , given the number of hour...
[7 replies] Last: The overtime rate needs to multiply whatever was entered for the hourl... (by wildblue)
by lapoza
Need help storing a byte, then retrieving it
 
Hello all. I have very basic level understanding of programming, i can do easy things, but i ...
[no replies]
VOCE (Voice Recognition API) C++
 
i am trying to compile it in C++ the Voce but the Voce: Open Source Speech Interaction is giving ...
[no replies]
by fxj
Sort by vector object members
 
I have these classes for a start: Name ( string fName, string lName) Student (Name name, int age...
[8 replies] Last: That is good. If you did add those comparison functions to Student, t... (by keskiverto)
need help with function
 
#ifndef MYSTRING_H #define MYSTRING_H #include <iostream> #include <cstring> using namespace st...
[5 replies] Last: No, just saying thanks is enough! (by NT3)
Pages: 1... 4748495051... 58
  Archived months: [feb2014]

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