Beginners - April 2014 (Page 61)

CSV file to array/map - Urgent Plz
 
Hello, I am new to programming and I am trying to open up a .csv file that is a large set of data with many values seperated each by a semi-colon. I would li...
[4 replies] Last: both a map and array can store 2d data correct? You can create 2d... (by AbstractionAnon)
Integer divsion
 
Hi, I'm kind of new here. The thing is I want it when I (for example) enter 5 as x to get stars to equal 2, but the problem is I get 1. (I don't want it to b...
[6 replies] Last: If you're only worried about getting it to work when you divide by t... (by oRiinzu)
by ac7nj
Help compiles but dosen't work??
 
well after several days researching I managed to get this to compile but I have a problem it doesn’t work. It is my first effort with a string so that is wher...
[2 replies] Last: Thank you (by ac7nj)
by vgarza
Invalid operands
 
I am having trouble figuring out what the error is in the following code cout << "There once was a person named " + name; The error message I receive s...
[4 replies] Last: Thank all of you for your responses - they have been quiet helpful and... (by vgarza)
by angelk
split in c++
 
(5,4) (1,01) (10,110) (29,13) (15,29) (19,22) (520,20) (91,41) (15,29) (20,1) Hello everyone, I have this sequence of strings. I would take the whole line e...
[3 replies] Last: You could parse straight into a vector of pairs of integers with boost... (by Cubbi)
How to work with an array within a do while loop?
 
I'm working with a much longer code, but shortened it so you would see my problem. The problem is the { while ( NUMbers != 99) cout << " Program end...
[4 replies] Last: I got a compiler error that index was an undeclared identifier. In y... (by AbstractionAnon)
Homework Help -- Undefined symbols for x86_64 architecture
 
Homework help, building a personal namespace. I have the namespace file coded and am trying to compile. From reading for the last 3 hours, it seems like I have ...
[1 reply] : Compile each *.cpp to separate object file. Linker combines the object... (by keskiverto)
I don't know why it doesn't make the (+)
 
I don't know why it doesn't make the (+) #include <iostream> using namespace std; void main() { cout<< "\t\t***PEDIR DATOS***\n\n\n"; int numfrac; cout...
[8 replies] Last: jaja Thanks keskiverto because of the solution, and because of the sar... (by jonanderdiez)
what does this means
 
hi i am reading this book about SDL and I encounter this line of code that I dont know what is it or what it will do. the book didnt tell anything. here is t...
[3 replies] Last: @keskiverto oh, i see, i know the std thing cuz i read somewhere that... (by hacknayan)
Edited to: Checking input
 
I have a simple program like this: #include <iostream> using namespace std; int main () { int n; do { cout << "Enter number of players: "; ...
[4 replies] Last: Oops. Thanks. (by dleanjeanz)
Need help with Dev C++ Unicode
 
Hello, first of all i'm an absolute beginner. And also sorry for my bad english. I'm trying to output some unicoe letters. In this case "ü" and "Ö". But...
[4 replies] Last: How do I get the right numbers? Using cout<<"\u0081" I'm getting an... (by OnkelSepp)
Energy per hour
 
Hi I need to be able to output two columns into a file. One is for hour and one is for total energy used during that hour interval. The problem I am having is I...
[1 reply] : while(hours.at(index) < (hours.at(index) + 1) || index != 24) I bel... (by Daleth)
Error with erasing a vector entry
 
Hey guys, So I'm basically writing an inventory program that allows the user to interact with it. The code seems to work but I'm having a problem removing spec...
[6 replies] Last: Thanks Giblit, makes sense actually. :D (by Sausage)
by heston
display vector with struct
 
To start off, I have a menu system. I have a struct, which I put in a vector. I add name and age to to vector. That works fine. In a seperate function, I wa...
[3 replies] Last: I went back using your code as a example and tried to keep it close to... (by BHX)
HELP ! Expecting ')'
 
Hey guys, first time poster. I'm currently working on a class assignment and i ws going pretty well except i ran into this syntax error.. "expecting a ')' " Whi...
[1 reply] : On line 47, what you meant to do was call the function findLowest(), b... (by xismn)
Constructors?
 
Hi! My assignment is essentially to get the constructor to return N^x, where N is the input and x is how many times the constructor is called. Right now I'm jus...
[6 replies] Last: Oh, I see. Whoops Yes, I meant returning from operator() (by ECEsasha)
OPEN .DAT is s key
 
Write your question here. i need open file .dat please HELP is my email...mishaaltamirano@hotmail.com alguien que hable español?
[2 replies] Last: Filenames and their extensions are totally arbitrary. You have to kno... (by keskiverto)
by iluv41
nevermind
 
. nevermind
[no replies]
Help with undeclared identifier
 
I have to make a connect four game. When i am trying to declare the board, which has to be a 6x7 string matrix, i get that it is undeclared. Please any help is ...
[2 replies] Last: You'll need to check the dropChecker function alongside making the cha... (by Codermik)
by Keppit
Need help with implementation of Virtual & Overloading
 
Need to write a program for a C++ class. The professor wants us to implement Virtual functions, virtual classes, and operator overloading, but I don't understan...
[1 reply] : It looks to me like it could be made easier with functions. But maybe ... (by MatthewRock)
April 2014 Pages: 1... 5960616263... 67
  Archived months: [mar2014] [may2014]

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