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

by nz881
Having trouble determining the winner of tic tac toe game c++
 
Hi,so i have made a game of tic tac toe where the user plays against the computer. And so far everything works except, i cant end the game because i am having t...
[no replies]
Output Array to CSV
 
So I have an array portfolio where i and j are determined by inputs by the user. I can get the code to fill the array with the correct values; however, I can...
[1 reply] : You do not want to reopen the file each time you loop. IIRC the file i... (by maeriden)
<FSTREAM>
 
Hello, i'm having a problem. the text does not is written. i don't know how to solve. so please, help me. void PutFrag(int kills, int misses, string name, ...
[1 reply] : http://stackoverflow.com/a/15673510/3410396 it's also worth noting th... (by MiiNiPaa)
by bebu
Empty Output Array file
 
I am writing this program that is supposed to read a file, put the data into an array, alphabetize, count how many times each word appears and print to an outpu...
[3 replies] Last: That's a good sign. Can you explain to me: bool displayDataArray(co... (by cire)
Error Code 139
 
Hello, I am implementing a Hash Table based on a given function. I have coded most of it, but whenever I try to add something to the hash table, I get an error...
[6 replies] Last: Cool. I kept the HashTab as a pointer and made my Element array out o... (by iamtpage)
by sidei
Trouble with array and calculation
 
How can the program pick the number automatically from the array after i enter an answer for it and show which number it picked for it? #define _USE_MAT...
[no replies]
URGENT HELP NEEDED !!
 
1. if f(n)=O(n), what is the running time of the following recursive function? function Recurse(A[1..n]) f1(n) t1 <-- Recurse(A[1..(n-1)]) t2 <-- Recurs...
[1 reply] : Infinity for both functions. Also, the functions are ill-typed. (by helios)
How do I use a .h file for a class?
 
I wrote a simple date class and could not get it to work until I put all the code in main(). Then it worked like a charm. I have not been able to create a separ...
[2 replies] Last: header: //myClass.h #ifndef MY_CLASS_H #define MY_CLASS_H class my... (by JayhawkZombie)
by csharp
Struct Array Report
 
Hello, I don't know why this code is crashing and not running, although the text files are placed in correct directory #include <iostream> #include <fs...
[3 replies] Last: I tried most the very basic things and there is no indications of any ... (by csharp)
Trouble with searching through array in Templated class
 
Hi All! I'm working on a program where I have to alter an Add function in a class. In my main.cpp file, I have to add integers to an array like such: #...
[2 replies] Last: Thank you, MiiNiPaa. Works like a charm! (by Macalay7777)
by wade1
best language to learn before C++?
 
Can anyone who is experiences with C++ recommend a language to learn BEFORE taking on C++? I am a total newbie who eventually wants to learn C++ I was just want...
[1 reply] : I went through HTML CSS JavaScript and PHP before taking on C++. (yes ... (by Homberto)
class template question
 
Hi! I'm wondering what should be the syntax for this: #include "functions.h" #include "enums.h" enum direction { southeast = 1, east = 2, northea...
[no replies]
How to add different label for different columns?
 
Hello, everybody! I am trying to add labels to the data. I have data in a file divided by space: 1 2 3 4 5 6 7 8 9 10 11 12 I need it to look like th...
[1 reply] : hi, if i understand the algorithm that labeling will be for is : label... (by ARWA)
C++ Website Blocker
 
How would I go about making a Website Blocker in C++?
[5 replies] Last: [quote=Stewbond]Of course it's possible, but it's more about your netw... (by TheUnholy)
c - how read binary files?
 
i'm trying read a binary file, but i'm getting problems :( a binary files is contitued with bytes(ascci characters). and the 1st position is the position 0(zer...
[13 replies] Last: finally i put it to work like i need.. the problem was the DrawIcon() ... (by Cambalinho)
Turtle Graphics
 
I have the most of this program set up but I do not know how to set it up in two classes like I need to for the project. The Logo language which is popular...
[no replies]
Qt issues
 
Tried to run a main.cpp with a qt creator 2.0.1 but the compile output was 'could not find make command: make in the build environment Error while building pr...
[1 reply] : Maybe you only installed QT Creator, or didn't install MinGW/VS. Go he... (by S G H)
Error in calculation of time. Pls help! urgent!
 
This is for an assignment given by our teacher. The question is to write a program to add two time objects. Here's what I did: #include<iostream.h> #inclu...
[5 replies] Last: I am asking you about single line: cout<<Sum.seconds<<" : "<<Sum.minu... (by MiiNiPaa)
no valid kits found
 
I tried to create a new project with Qt creator, but after choosing the type of project, location, component set, a third menu called kits appears with a msg: '...
[1 reply] : Please go to Tools->Options->Build & Run->Kits and set up one kit to u... (by zxrp)
by nz881
C++ tic tac toe problem
 
HI, i am trying to make a tic tac toe 2d array game.The game that i am making is actually human vs computer, so this is where the problem arises. I can't seem t...
[1 reply] : please make sure to add every new detail in the main function,please ... (by closed account 48T7M4Gy)
September 2014 Pages: 1... 7891011... 28
  Archived months: [aug2014] [oct2014]

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