Beginners - April 2012 (Page 17)

String comparison
 
Hey guys I'm having some trouble with this program that I'm making, it's a rather large program (for me at least). Currently it's at ~130 lines of code, and at ...
[1 reply] : I guess that item1 is a std::string. Do you mean if item1 is one o... (by coder777)
by xW0ot
How to compare every element of the array?
 
Hello there C++ forum. I am i need of your assistance. I have to code an app where the user inputs values in 2 different arrays,and compare the values.If the va...
[1 reply] : You may use the following algorithm template <typename InputIterator... (by vlad from moscow)
copying values from an array to an array in a function.
 
Is it possible for me to copy an array of string values which is declared in my main method to a function which is located in a class file?
[3 replies] Last: That error is due to the the ; on line 4. Although assigning thing to ... (by hamsterman)
What does this error mean?
 
I have encountered a following error, may i know what does it mean? pointTwoD.h:14: note: candidates are: pointTwoD& pointTwoD::operator=(const pointTwoD&) ...
[4 replies] Last: hmm, i see. Then how do i go about for the assignment to solve this is... (by CLearner88)
Why does operator+= only have one parameter?
 
Here is an example I was given of a different type of code with the operator+= : String& String:: operator+= (const String& s) { int newlen = strlen(info_) +...
[1 reply] : I'm not sure, but it sounds like you answered your own question. Is t... (by Disch)
Corrupted stack around declared array of char (i.e., letter grades)
 
What's wrong with this: char arrGrade ; that's not wrong with this: string arrNames ; double arrAverageScore ; Just don't know why it doesn't like doin...
[1 reply] : corrupted stack error usually means array-out-of-bounds-access issues ... (by guestgulkan)
by Lebron
C++ please somebody help..
 
Re-write your Squares program so that it uses the following functions. int getInput(void); //function prototype This function prompts the us...
[19 replies] Last: Almost.. So far, you have not made arr equal strn , with the for loop... (by whitenite1)
help please
 
i need help with this assignment assignment 3 the function printGrade in example 5-10 is written as a void function to compute and output the course grade the c...
[2 replies] Last: okay first i know proper grammar i didnt use it second i have to use w... (by megawolf15)
return the dang array! ...please?
 
i have created a function that will get data out of a file and put it into an array... the only problem is returning the dam thing. Because an array is of type...
[8 replies] Last: nah that's alright. I decided to revamp the whole dam thing. Took 5 ... (by IWishIKnew)
get() put() read and write functions from online source
 
I am stumped. MAJORLY. Here is the assignment for this particular function, I have already finished 9 other functions(one with help from here :D), but this one ...
[4 replies] Last: ok so the countWords(enormous); doubleToSingleSpace(enormous); sumA... (by HydroKr0n1k)
Adapting an initializer for arrays
 
Hi, I am trying to adapt my initializer template to arrays. This is my working template: template <class T> void fnInitialize(T& v1) { v1 = T(); ...
[5 replies] Last: Thank you, that helped all but the multi-dim array. I keep 'hosing' my... (by erandall)
Unresolved external symbol help
 
My code is set up like this facilities.h which is pre-written the error is: 1>my.obj : error LNK2001: unresolved external symbol "int foo" (?foo@@3HA) 1>c:\...
[2 replies] Last: Oh I see, I thought using extern meant that foo would be shared everyw... (by MJP4110)
Passing structure as argument help
 
I'm extremely new to structures and have a book that has this problem in it. I'm simply trying to pass the structure to a function to output what was assigned t...
[5 replies] Last: And now I am oh so gratefully receiving errors under "<<" in my functi... (by Jepickle)
Graph using map(STL)
 
I need to create a graph using the map class. Apparently It should have strings as keys and sets as values. I've never used maps or sets. Here is a line of t...
[no replies]
checking if iterator is at the end of my list?
 
I am working on an operator+ method so that I can add two lists of chars together and overall create a class that can manage "integers" of any size. It works be...
[no replies]
Overloading operators
 
Hi I need to overload the +,- and * operators to use with matrices. i have attempted to overload the + operator (at the end of the Matirx.cpp) but im no...
[2 replies] Last: so i made a few changes and im still stumped as to why its not working... (by Omar Alamy)
Convert an Int to a Char array
 
I need a way to Convert an Int to a Char array.
[4 replies] Last: You could do it the lazy way, char letter = "0" for(int x = 0; x < n... (by GRex2595)
by wd40
If If else statment
 
Can anyone look at my code and explain what I could be doing wrong with this if else statement. No matter how I configure the order I continue to get an error t...
[5 replies] Last: tolower only works for chars. Use #include <algorithm> and transform(... (by GRex2595)
Whats wrong with my code?
 
I have written this simple code to measure the time duration it takes for a user to input the data for calculation. Please help me and correct this program. I s...
[7 replies] Last: Ok. . . (by GRex2595)
by findme
moving mouse pointer in c++
 
How do I tell c++ to move the mouse in place x? for example, I run a c++ program and the mouse moves to the top left corner of my screen. How do I go abo...
[2 replies] Last: Can I put that code into my console program or does it have to be a wi... (by findme)
April 2012 Pages: 1... 1516171819... 66
  Archived months: [mar2012] [may2012]

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