Beginners - November 2013 (Page 45)

How to Create a Tic-Tat-Toe Game
 
Im currently a college student, Im majoring in Computer Science. My professor request us to make a program in C++. So my idea was to make a Tic-Tat-Toe game, bu...
[3 replies] Last: AI is pretty advanced topic, it requires a lot of thinking and it co... (by Justin505)
Graphics
 
Hello dear programmers, I am using the <windows.h> library in C with Code::Blocks 10.05 to draw small Boxes with ASCII extended characters. I am making use ...
[no replies]
by Ch1156
How to use threading + questions
 
Ok so i tried copying the threading example to code blocks and it didnt work, i checked the 2 boxes in the build options for using c++11 but it still doesnt wor...
[3 replies] Last: ok so can i update my gcc version? (by Ch1156)
int main
 
Code and error are given below: int sc_main(int argc, char* argv ) { tb_top t_top("tb_top"); sc_start(1000,SC_NS); //start simulation ...
[7 replies] Last: thanks helios and Duoas, Its solved, it was } missing in other file t... (by amitk3553)
Functions - Variables
 
UPDATE: Thank you to user long double main for helping previously to this topic on Segmentation Fault! Hi there, I'm taking an introductory course in Comp...
[2 replies] Last: Thanks for your help!! It worked and I appreciate it! (by the209er)
Using getline for multiple cstrings?
 
I'm trying to extract lines from a text file. Because multiple lines make up one "set" of data, I need to have multiple variables to represent each line for pr...
[2 replies] Last: This: inFile.getline(name, 31, '/n'); The newline character is '\n... (by long double main)
by Garion
Overloaded Operators
 
I was working my way through this websites tutorial and I reached the section on overloaded operators. I can make the code work there is just one part I'm no...
[1 reply] : You are right about the word parameter. It can be any word. Some folks... (by norm b)
Input validation problem
 
Hello all, I have been working on this project for a while now and am having trouble with my input validation function. ---PROBLEM:: My input validati...
[3 replies] Last: Thank you! I was thinking of this is the wrong way. Appreciate your in... (by Parasin)
Parrallel Arrays
 
I'm having to write a program where we have an input file and we are suppose to store the date into 3 parallel arrays. Example here: Sample input file (p1.tx...
[1 reply] : Three parallel arrays... as in 3 different arrays with the data in the... (by yulingo)
fixing getline from returning nothing and crazy numbers?
 
I've been doing an input output exercise that I believe I've gotten pretty much done. But I have a significant problem. When I try to read the data it'll do thr...
[2 replies] Last: Would I be right in thinking that cin.ignore() would fix it? kinda, ... (by Yanson)
by Nancio
Write String to Memory address using WriteProcessMemory
 
Hello, as my title says I try to write a string to a certain memory address. When i do it with a DWORD value its working fine, but not with a string. ...
[3 replies] Last: Well the data you're writing to memory has to match whatever format th... (by Disch)
Airplane Problem
 
Hey guys, im currently working on this project for class and am really stuck. Here is what the code should do: Write a program to assign passengers seats in...
[1 reply] : Line 13: First dimension of display needs a size. i.e. 7 Line 14: ch... (by AbstractionAnon)
Overloading arithmetic operators as member funtions
 
Help! I was studying operator overloading these days. I was able to overload +, -, * and / for a complex number class I wrote as friend and non-member functions...
[8 replies] Last: Thanks to all of you, sirs! (by tcollar89)
Calculates the cost of lumber
 
Write your question here. I’m new at this and we are studding Scope, Lifetime, and More on Functions the program should give the total for all the orders. Min...
[6 replies] Last: I am new at writing code this is my eighth program so I don't know whe... (by millerr8172)
Simple Method
 
I created a method and for some reason, i get attacked by red squiggly lines under the test on line 1 and 2. double displaySeats(char test){ for (int...
[3 replies] Last: I also changed my "double" displaySeats to "void" displaySeats(char ar... (by drzazga)
by skgruz
C++ Primer compiler (1,2)
 
I am new to c++ and recently purchased the C++ Primer 5th Ed book. It advises they use the GNU Compiler 4.7.0. I have a computer with windows Vista on it. Wo...
[20 replies] Last: I found this helpful here for using codeblocks http://wiki.codeblocks... (by Garion)
declaring unkown type
 
I am not sure exactly how to do this in c++. This is my thought process: std::vector<std::string> lines = open("test.txt"); for (auto line:lines){ ...
[no replies]
Help with code.
 
I built a program to find some values of arrays (stocks). There are a few things i need to fix with it tho and im asking for some assistance. I need to display ...
[3 replies] Last: Ah YES! that makes a lot of sense, i dont know how i missed that! than... (by drzazga)
Cant solve this PLEASE HELP
 
Write your question here. Hey guys I really need help writing this code…I don't even know where to start…so if you could please help me I would be very h...
[1 reply] : Oh, this is a fun one. So for starters, go read the tutorial or the d... (by yulingo)
by mgehad
Dynamic Array
 
Can I delete an element in Dynamic Array ? if so how to do ?
[2 replies] Last: Just use a vector, dynamic pointers are evil. (Well, not really, but t... (by closed account N36fSL3A)
November 2013 Pages: 1... 4344454647... 80
  Archived months: [oct2013] [dec2013]

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