General C++ Programming - April 2014 (Page 21)

Where's the problem in my simple code?
 
My compiler tells me there's an error in the 24th line: "invalid suffix on "x" on integer constant". I don't know what that means. #include <iostream> us...
[2 replies] Last: 5x is incorrect in this context, you need to specify multiplication op... (by anmol2701)
Can someone take a look at my code.. I am getting some crazy numbers
 
#include "pointType.h" #include "circleType.h" #include "cylinderType.h" #include <iostream> using namespace std; int main() { pointType point; ...
[14 replies] Last: yeah i didnt want people to just copy it (by whoovian11)
istream_iterator
 
this is my program,i just define the in ,haven't use it,but,after compiled,i execute the result, the program ask me input something. i have no idea...who can ...
[5 replies] Last: Ah, that makes sense. I forgot the semantics of peek . (by LB)
Dealing with Objects
 
The program is supposed to read a formatted .txt file and store the data into their respective Members. It will then output the data collected onto screen. ...
[6 replies] Last: Solved all my problems. Thanks once again for all your help. Keep do... (by dman951753)
Help me write my program!
 
I need help writing this, it is due very soon and I'm very confused! An image is represented as a two-dimensional array of characters. Elements of the ar...
[3 replies] Last: thank you! (by d4irtY2O)
writing to 2-d array of pipes in child process
 
I am writing a program that is supposed to open a directory as a command line argument, read that directory, open each file and count a number of occurrences of...
[5 replies] Last: Thanks (by bruceda)
Game implement
 
Hi Am trying to implement a game where in I have a deck of 52 cards. I need to draw 2 cards from it and search for the highest. Here's the ranking of suits...
[14 replies] Last: To be honest, if you've never used vectors before, it is going to be a... (by Mats)
Looping a statement
 
Is there an easier way to write code so that it doesnt have a huge block of code that repeats over and over?
[5 replies] Last: You could have another function to calculate the average. You could pa... (by wildblue)
by Prax
Accessing class variables in main
 
Hi I am not able to access the class variable noof_vertex in the function merge , the error is the variable is private below is the code #include <iostream...
[1 reply] : You accidentally declared all the variables in the body of your constr... (by LB)
Overload assignment operator with void *
 
Hi guys I'm trying to build a memory management class in C++ but I'm stuck in a problem. One of the features of this module will be automatically deleting...
[6 replies] Last: > Dog* c1 = new Dog(); just in case you don't know, you can create o... (by ne555)
Help me completing this program
 
Hi all, I am trying to study for classes and objects and I want help doing this program, I would use it as a study guide to review from later on. //never min...
[5 replies] Last: my friend Joe can u write this program for me please please please i r... (by nihaal)
array help.
 
I am trying to make a program that goes thro a data sheet that has a students id and there test answers (20 answers per student) then goes through another data ...
[3 replies] Last: ok so the simulation is that I am a teachers assistant and I need to m... (by greatsoccerman)
Can I some how link/connect the two?
 
I have been looking around and trying to create a maze but I cannot figure out how to link/connect the movement of gameboard to the 'X' in the maze. Is th...
[no replies]
reverse array elements
 
Hello, I am trying to write a program that reverses the elements of an array by using an function 'myreverse'. The function should reverse original array and r...
[5 replies] Last: @wildblue Thank you, i found my mistake. cout statements can be helpf... (by deepaAR)
getting values from an xml file
 
Hello everyone! I'm a programmer on my high schools FIRST Robotics team. to give a bit of backstory if you don't know, we use C++ to program a 120 lb robot ...
[3 replies] Last: XML is quickly being replaced by JSON, so you may want to consider swi... (by LB)
Unresolved externals;
 
These are the errors I am getting: Error 3 error LNK2019: unresolved external symbol "public: __thiscall StudentTestScores::StudentTestScores(void)" (??0Studen...
[4 replies] Last: Thx for the help figuring it out, that part of the code now works corr... (by dman951753)
dealing with 2d array inside a function
 
hello everybody , i have a problem with pointer array, i passed a 2d array to a function but then i dont know how to make operations on it !!! #include <ios...
[2 replies] Last: thanks alot LB :) (by andriac)
stuck at getline()
 
my code is not moving past the line below...actually i am making a quiz and this piece of code id checking whether the entered answer is correct, from a file. ...
[9 replies] Last: thnx too (by alfredokang)
function in a class returning junk
 
this is a piece of code from my program for a game of quiz...this class is supposed to manage the marks of a player. i am passing marks for a question depending...
[6 replies] Last: i made this code and found the mistake in the other one as this piece ... (by praneshiitm)
a problem with arrays
 
Description Given an integer array of n elements, and a set of indices that point to elements in this array, and assuming that some elements have been removed f...
[1 reply] : What have you written so far? (by LB)
April 2014 Pages: 1... 1920212223... 41
  Archived months: [mar2014] [may2014]

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