General C++ Programming - December 2015 (Page 17)

Checking diagonals in an array
 
I need to find all diagonals rows, and columns, in a multi dimensional dynamic array that share a common charector. tic tac toe essentially the user inputs ...
[1 reply] : So you are looking for three in a row. Take any particular cell an... (by closed account 48T7M4Gy)
college assignment,text file~
 
i can read the first customer detail only,others cant read....how it work to read all customer? here my code~ void main() { system("color 8a"); SYSTEMTIME t;...
[1 reply] : Hi, You should use code tags to make your code easier to read : http... (by aquavillan)
How can I continue my question until the user enter the valid input?
 
Hello, I am writing a code in c++ and I need to ask the user to enter the number between 0-4 0= quit 1-4=do something so at first I use do and while ...
[3 replies] Last: No problem selflearner , treat it as a redirect for anyone planning t... (by closed account 48T7M4Gy)
Expression Tree
 
Hello! I am going over a study guide in preparation for an exam and wanted to make sure that I was doing this problem correctly because my teacher is not giving...
[2 replies] Last: Tinypic sucks I'm sorry. Sometimes you have to refresh the page a coup... (by coolioschmoolio)
Why does this code return "3, 5" when the array is not called by reference?
 
#include <iostream> using namespace std; int searchlist(int list ,int n,int value, int foundIndices ) { int index = -1; for(int k...
[2 replies] Last: Array is passed by reference into the function, because a pointer is ... (by closed account 48T7M4Gy)
by Anony
PLease help, grade depends on this.
 
int main(){ // Bubble Grader Main Driver program created by Bob Bradley for CSCI 221 Program 4 Fall 2015. // Use the code below as is. You can comment out ...
[no replies]
My pointer argument won't accept a byref to a pointer
 
I can't compile my code. Hey guys, I'm a little overwhelmed so I will try and break it down. See, I have 3 classes that have a hierchy like this. ___________...
[5 replies] Last: GameObject doesn't have a default constructor but it looks like class ... (by dhayden)
Binary search tree not printing
 
Hello, I am trying to print a binary search tree. By debugging i know that root remains equal to 'nullptr' every time it enters the function. void BSTree::...
[4 replies] Last: > Isn't a pointer an address itself. When I am passing a address, shou... (by ne555)
Magic Square
 
Magic Square -Write a program will accept 9 input values. -The program will accept 1-9 values. -The program will not accept duplicate entry. -The program wi...
[3 replies] Last: Is that the definition of magic square? I thought it was just another ... (by Shadowwolf)
Entrance to randomly generated maze
 
Hello i made program that randomly generate maze with # walls and . as path But how do i define entrance to the maze to be top left and exit bottom right? How ...
[3 replies] Last: You should give your already existing code so help can be given. (by Kartoffel)
Bytes in multidimensional arrays
 
Hey, i'm wondering how you find out how many bytes are used in multidimensional arrays. I've been looking in my book, but I can't find it. I was thinking that y...
[3 replies] Last: Okay thanks guys that's how i thought it was done. (by Blybarger7)
Error "string" is undefined
 
VS 2013 keeps saying that "String" is undefined, but I ain't sure what the problem is. #include "MyForm.h" #include "String" using namespace System::Windows:...
[3 replies] Last: The CLI String is in the namespace System. int main(array<System::St... (by Thomas1965)
Biased random generation
 
I'm trying to make map generator. I'm using Perlin noise to make a height map(using 8 octaves and zoom level 75, persistence 0.5) and I'm also using Perlin nois...
[no replies]
by Leance
selection using arrow keys
 
Can someone help or tell me where the problem for this? i can't find the error i'm not send all the code, but it's error when i'm trying to use arrow selectio...
[2 replies] Last: thanks (by Leance)
Segmentation Fault
 
Hi, Someone can help me to solve the problem with segmentation fault ? This is code below, error apears on the line with RegQueryValueExW. In debugger v...
[3 replies] Last: At the beggining in almost empty project my code also appeared to w... (by cire)
by Molly
Snake game using graphics.h and 2D arrays
 
As I'm a starter , I've been trying to make snake game by using arrays and graphics.h library (Well yes it's old , but I must use them to practice for my c++ cl...
[3 replies] Last: Hi Molly, To store the location of a circle you can use a struct like... (by Thomas1965)
Can my code cause a memory leak with STL Linked List?
 
Suppose I have the following class and I implement the following logic. list<Dock*> myDockPtrs; myDockPtrs.push_front(new Dock(12, 24, "MyFirstDock")); // ...
[4 replies] Last: Thank you! (by keanedawg)
How to add ub before each vowel in c++?
 
Hello, I am writing a program that need to translate in ubbi dbbi translator. However, I am not sure how to write the code to add ub before each vowel for a w...
[5 replies] Last: You seem to have the code down pretty pat. Looking at it, you already ... (by YFGHNG)
pointer ambiguity
 
I understand why array_size is relevant, but I don't understand why array_size doesn't cover array (array_size + array).Afterall array_size implies full inclusi...
[3 replies] Last: Hi, My question is why add array_size + my_array? Why not just array... (by TheIdeasMan)
Housing Market
 
i want to create a programm oa a Housing Market (need address, #of Bed, # of bath, sqfeet, price) that show: show the 2 bed houses, average house price on th...
[1 reply] : Well you better get started then :) Goodluck! (by TarikNeaj)
December 2015 Pages: 1... 1516171819... 22
  Archived months: [nov2015] [jan2016]

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