General C++ Programming - February 2017 (Page 11)

Simulating offset operator in a c++ class
 
I have recently learned how to overload operators in c++ classes, but I can't come up with a way to ...
[2 replies] Last: Thank you very much, I have to study these tutorials further. (by niktitanik)
filling a 2D array with 'o' at random locations
 
How does one fill a 2D array with 'o' at random locations when the original 30 by 30 array is full o...
[5 replies] Last: ah, missed that, cool. yes, using standard language names as variabl... (by jonnin)
finding letters in a word
 
I wanted to input a word and have it match another word and print out the miss matched letters in ...
[4 replies] Last: thanks a million gunnerfunner. that's all i need to know... keep up th... (by badboy1245)
2D Arrays
 
Is there any particular way to use a something like a getline function to for each of on a 2D array?...
[5 replies] Last: you have to test to see if you are on an edge OR you can cheat and al... (by jonnin)
how to initialize char array
 
hi, I'm writing a program that shows a point value based from a grade that the user input i.e if th...
[2 replies] Last: actually "a" is 2 characters, {'a', 0} 'a' is one char. you can't... (by jonnin)
Programming Assignment (1,2)
 
Hey guys I'm currently a freshman in college and I really really need help doing this particular cod...
[33 replies] Last: When iterating over the board, you shouldn't be using MAX_BOARD as the... (by dhayden)
by FlareM
Cat and mouse Problem
 
Hi, I've been trying to do this program for a while now but i have a problem for some reason. I am s...
[3 replies] Last: You could look at: http://www.cplusplus.com/doc/tutorial/structures/ (by keskiverto)
by rrush1
Trying to read data from a file display it and the write it into a new txt file.
 
Been running at this problem all day, have a programming assignment due tomorrow night. The program ...
[6 replies] Last: Glad to help, but in the future you might get quicker answers in the b... (by newbieg)
problem with a c++ project
 
basically i need a way for the the dice to be counted as the spot e.g. if i roll a 5 it moves to spo...
[2 replies] Last: @Bdanielz i wish i could reach through the screen and hi5 you (by nostalgiaultra)
Help with finding # of rows.
 
How do you read in just the quantity of rows from the first column of a .txt file? I got the # of c...
[4 replies] Last: You have to open the file and count the number of lines, you can then ... (by SamuelAdams)
by MojoJo
Using a loop to convert integer to asterisk
 
Hey everyone, I kind of hit a wall with my program that requires me to take these two fake videos: ...
[4 replies] Last: I just want to look at your code really quick, just to give suggestion... (by newbieg)
How many digits are in a number?
 
This might sound like a simple question, but I can't think of a reasonable answer. Suppose you make ...
[4 replies] Last: Yea, what they said... if you handle the garbage and don't allow leadi... (by jonnin)
by polklk
Simple hash algorithm
 
Hi guys, I'm trying to create a hash algorithm (a very simple one) for homework exercise. I ba...
[17 replies] Last: you are not an idiot, we all went thru our learning period. Glad to h... (by jonnin)
help me with Source code
 
Write a C++ program (using function overloaded) to sort 10 integer values, or 10 long values, or 10...
[3 replies] Last: Than research the problem. Use common sense instead of wasting peop... (by mbozzi)
Help me with Ordering Number problem
 
I have final exams and I have to submit my assignment tomorrow please anyone can help?? question ...
[8 replies] Last: THANKS @troaat very much u must be genius with codings haha it was a... (by hemantkhadka)
8 way puzzle
 
I'm trying to solve an 8 way puzzle that allows the user to input a state of the puzzle and it lists...
[no replies]
"Abort trap" error in c++
 
I have an array of size 8, and I send only the second half of the array to my insertion sort. It suc...
[2 replies] Last: you almost certainly ran off your array somewhere. Do you have any a... (by jonnin)
Writing to a binary file and displaying its contents
 
This is my program. It takes the necessary inputs but doesn't give the required output: //Binar...
[1 reply] : Never use gets(), this dangerous C function can never be used safely. ... (by jlb)
counting number of "*" around a apoint in matrix
 
the problem is to find the number of astriks around a point in c++ im getting this as an answer ...
[2 replies] Last: OMG im such an idiot how did i miss that .. thanks a lot saved my day ... (by zeroblank)
How to display the difference between two sets?
 
My intent is to display the difference between two sets,using arrays, in two different objects in my...
[2 replies] Last: for(int i=0;i<itemCount;i++){ for(int j=0;j<bag.getCurrentSize();++j... (by gunnerfunner)
February 2017 Pages: 1... 910111213... 16
  Archived months: [jan2017] [mar2017]

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