General C++ Programming - October 2014 (Page 16)

string functions
 
need help implementing these duties : s – search This option will allow the user to search for a specified string in the worked-on string. If the string i...
[5 replies] Last: for this assignment i have to stick to c strings. here is what i hav... (by NicoFlowProductions)
Dice Game help
 
I have a really simple issue and I can't seem to get it. My only issue is getting it to print out an error if they enter 0 for a bet, or executing the last few...
[no replies]
please anyone just tell me how to right this litttle function??!!
 
function next_garde to generates 20 random exam grades (between 20 and 100 , and 60 is the passing grade). For each failing student, the program calls a functi...
[8 replies] Last: When there is an operating system (which is most cases), where does a ... (by pheininger)
Using virtual functions in base classes
 
I recall when I first started playing with C++ I was told that you should never use virtual functions unless you absolutely cannot think of a better way to do w...
[9 replies] Last: By the way, another thing that changed since the 90s is the amount of ... (by Cubbi)
basic polymorphism help
 
I am making a very basic parent/child class based program that shows polymorphism. It does not compile due to a few syntax errors reading "function call missing...
[4 replies] Last: Pretty much sums it all up. Thanks poteto. (by dub1987)
Please help me with this function!!!!
 
I've been trying to make a sorted list with x random numbers (the user chooses how many random numbers), print the random numbers, then sort those numbers by ma...
[no replies]
Best up to date C++ compiler
 
What are a few. I am currently using a very outdated version called dev c++
[5 replies] Last: giblit , I assumed he was talking about ide's, since he mentioned dev... (by zoran404)
question went to another post
 
i moved the question to another post with the same code...
[8 replies] Last: yeah i know ... but we didn`t learn that yet!! i`m still a beginner !!... (by deepestblue)
Posting parts of a code on vectors. Cant understand whats going on.
 
#include <iostream> 9 #include <vector> 10 class A { 11 public: 12 A(); // Default constructor 13 A(int); // Non-Default Constructor 14 A(const A&); // A...
[1 reply] : And what your question is? Note: ~A() NOT called. Why not? Because a... (by MiiNiPaa)
new programmer
 
I have an assignment to create a code in my programming class. I will try to explain it the best that I can. I use Microsoft visual 2013. Here is the code I f...
[6 replies] Last: Ok thanks (by tannaj2)
by mmess
Invalid conversion from int* to int
 
I keep getting this error! int *newarr(int, int, int&); //prototype // initializing argument 1 of 'int* newarr(int, int, int&)' [-//fpermissive] arr...
[4 replies] Last: Your prototype did not match your function definition int *newarr(in... (by Esslercuffi)
function calls ,functions prototype
 
so this is my question.>> Write program that uses a function digit that generates a random number between 100 and 999 and calls a function printWords print it...
[7 replies] Last: so here is the solution code for the questio,, sorry for being late:) ... (by deepestblue)
please help... i`m new with some of c++ programs
 
i need to evaluate y= 1 - x + (x^2/2)- (x^3/6) + (x^4/24)+...+(-1)^n.x^n/n! to put in my function call.. but i don`t know how to write ..! i`m new with...
[5 replies] Last: so here is the solution to my question,, thanks to whom helped!!:) an... (by deepestblue)
by tmason
Sort in Decending Order using Lambda + std::sort ...
 
Hello, So I have the following code snippet; what I want to do is sort the std::vector using a custom sort in descending order: std::sort(CurrentObject...
[2 replies] Last: > I would like the sorting algorithm to set up the vector such that >... (by JLBorges)
by yo2xia
Image of singular matrix in C++ Eigen using FullPivLU
 
here is the code I run in C++ using Eigen library FullPivLU decomposition, and I want to get the image of singular matrix including the first column of constant...
[6 replies] Last: @Ispil Anyway, thanks for your help. (by yo2xia)
Regex
 
i want to find the position of the first string in input.txt that matches a regex // Input.txt [A-Z]o Hello everyone, i am John It is rainy today // Her...
[5 replies] Last: Thank you!!!! it->position() <- we have the first position!!! great!... (by nightmaregiba)
Undeclared Identifer?
 
Alright I know this says general C++ but I am working with win32 api, it should be the same concept because the error I don't think has anything to do with the ...
[2 replies] Last: Wow.. I would of never noticed that. Thank you I was about to go insan... (by MoonEmbers)
Doubly Linked list with head node
 
Hello i am trying to develop a doubly linked list class. I became stuck at a few of the functions as well as the main.cpp file. i have to insert a character sen...
[1 reply] : Hello fellow ECE 304 classmate, I see that you are trying to receive... (by closed account jivRfSEw)
operator definitions, modulus remainder calculation
 
where are operators defined in C/C++? in headers or compiled code? looking for the definition of how % modulus is calulated
[19 replies] Last: giblit's equation works if: (a / b) is rounded down to nearest intege... (by closed account 1CfG1hU5)
c string program
 
my assignment is : Please use C type strings ( array representation of strings). Write a program that will ask the user to enter a string. It will then rega...
[4 replies] Last: how do i implement this with what i currently have ? i am still having... (by NicoFlowProductions)
October 2014 Pages: 1... 1415161718... 38
  Archived months: [sep2014] [nov2014]

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