General C++ Programming (Page 7)

by zxrp
Function to find sum of certain word in text file:
 
Hi everyone, I've written a function that has to receive a word as parameter, and then has to find t...
[1 reply] : if (temp ==wrd ) You're comparing characterrs, not strings. And that... (by kbw)
by zxrp
Problem finding words in text file
 
Hi everyone, I was given a task where we were instructed to find words in a text file via functions ...
[2 replies] Last: Thank you, clearing the error flag fixed the second function. However... (by zxrp)
finding maximum value in a map
 
Hi. Suppose that a map is defined thus: map<sttring, int> mymap; I wanna find k maximum value...
[1 reply] : You can follow this approach if k is very small with respect to N (the... (by abhishekm71)
my property problems
 
i did these class property: /*properties - how use create 1 property with macro: PROPE...
[no replies]
Bakery Billing Program
 
So, the point of this program is to make simple billing program for a bakery. The program starts by ...
[7 replies] Last: I meant calcPrice(), but here it is: #include <iostream> #include... (by jesslich)
Reading One digit at a time
 
Ok, So I want to do the following, Please help me out. I want to input 150 1 digit integers, from 0...
[2 replies] Last: Thank you! (by newbie456)
game array help!
 
'm making a game, and currently i'm making a class to help with creating the map for the game, but w...
[2 replies] Last: The compiler doesn't know what townstartlimit will be, so you have to ... (by joe7)
by janky
help! voting program.
 
a) Table Q2 is a list of favourite football players in the recent World cup 2014. Write a program ...
[1 reply] : Remember String arrays and normal arrays start at 0, not 1. Your men... (by Softrix)
How can I use MySQL in C++?
 
I am using VS2013 and I can't find anything that I can actually use in my C++ program that will work...
[19 replies] Last: This is almost funny. error C1010: unexpected end of file while look... (by kbw)
by talya7
Printing a created file
 
My program is suppose to read an input file and print it contents which it does and then it is suppo...
[no replies]
Program enters if statement even though requirements aren't met
 
My program gets user input and compares it against an array of characters (guessLetters ) to decide ...
[2 replies] Last: Don't i feel ridiculous.....thank you very much (by ValdoIan)
by hobo
Keep the rhythm with the count
 
#include "stdafx.h" #include <iostream> #include <cmath> using namespace std; int _tmain(in...
[4 replies] Last: Thank you lsk & Chervil. That did the trick, gotta love the little n... (by hobo)
Bubble Sorting
 
I having a bit of an issue with this bit of code below #include "stdafx.h" #include <iostream...
[3 replies] Last: Not quite lsk, doing that seems to lead to more issues. I changed th... (by galaxyfoe)
thread:no such file or directory whyyyy?
 
when ı write a code in c++ includes thread library it says "thread:no such file or directory" Can ...
[4 replies] Last: Orwell DevC++ does support C++11. (by Chervil)
Questions about how a Structure works
 
Code First, will be easier to explain later. //Battle with Samer #include <iostream> #include <st...
[4 replies] Last: Excellent. Thank you for all of your help!!! (by cavendert)
Understanding Stringstream using getline
 
Hello All, I am practicing using strings in C++ and the example provided uses getline. I noticed ...
[no replies]
Help me generalize this function please?
 
I'm trying to generalize the Person::insert<T> function to all T values. Note: it uses pointers to ...
[6 replies] Last: > But I'm really overwhelmed by the size of the library Boost is not... (by JLBorges)
char * ptr = "My String" //where does memory come from
 
A short question. I know for: char mystring ; memory comes from stack For malloc(5 * sizeof(char...
[16 replies] Last: Thankyou all of you I learned much but after some days/weeks practice ... (by danicpp)
Error compiling DLL
 
Hi, I'm having a constant error in my DLL regarding one simple function: I get the error: do...
[7 replies] Last: Different problem. Sounds like you have a declaration for _utc_to_jd,... (by AbstractionAnon)
Newbie, in need of help.
 
Hey everyone. I know alot of you guys don't like giving direct answers, and that's perfectly ok. If ...
[8 replies] Last: Thanks guys! I'm glad I got verification on this! I did end up changin... (by cavendert)
Pages: 1... 56789... 27
  Archived months: [jun2014]

Cannot post in this page. To post a new message, go to the first page.