General C++ Programming (Page 31)

Put the whole value into char
I need to put the whole integral value into char from ifstream. (In this concrete meaning char is 1...
[1 reply] : You could override operator >>: std::ifstream& operator >> (std::ifst... (by fcantoro)
Lo Shu Magic Square C Programming.
'• The grid contains the numbers 1 through 9 exactly. • The sum of each row, each column, and e...
[3 replies] Last: Firstly, is there any reason you're making SUM a macro, rather than ... (by MikeyBoy)
Call by reference
This program is supposed to be scoring goals. The first two, eichel and kane are different from the ...
[3 replies] Last: I'm not sure you do understand what it means. If you did, you'd under... (by MikeyBoy)
by a7867
Programming help
I need to write a program that reads all the numbers:12 32 43 21 15 45 and displays them on screen a...
[4 replies] Last: You may find useful. I'm... (by MikeyBoy)
Recording specific data
I am running a continuous programme using an accelerometer and an mbed. So as not to overload the mb...
[no replies]
by Winsu
I have got this exercise to do...It's in a website that has a lot of exercises to do ,whoever want t...
[12 replies] Last: Hi, Sorry my idea wasn't of any help, I guess it all depended on the ... (by TheIdeasMan)
Calling functions assistance please:)
Calling functions in main are getting errors saying too few arguments in call please help. #incl...
[5 replies] Last: #include <iostream> using namespace std; const int CUPS_IN_A_PINT = ... (by kemort)
next step for C++
hi I can say that I have pretty learnt most essential concepts of C++. a) What should I learn ...
[no replies]
im having problems in arrays
lets say u have int x how to make all the 13 x equal to one value example x = 2 x ...
[3 replies] Last: do int x ={1}; Ah, no. That will only initialize x with 1, all oth... (by jlb)
by guru23
Printing 10 numbers per line
Hello everyone, I thought about something last night. I want to print 200 random odd integers wi...
[2 replies] Last: Great way to put it, I've never thought of it that way. Thanks a lot ... (by guru23)
How to test for new line when reading from file char by char
Exactly as the title states. I am trying to read in a file char by char but at the same time keep tr...
[1 reply] : if (ch == '\n') (by cire)
cannot call member function
Hey folks, I am getting the following errors when I try and compile this program. prog.cpp: In...
[2 replies] Last: Thanks a ton mutexe :) (by dorklowski)
Need Help
Hi guys i am very interested what is Static Variables ? :/ can you give me a definition and example ...
[3 replies] Last: You mean the more comments then better? Amount and quality of commen... (by MiiNiPaa)
by bee309
I want to write a program that prints the calendar for any inputted month of any year. But somewhere...
[5 replies] Last: (year - 1901)%4; it should be (year - 1901)/4; ... (by MiiNiPaa)
struct: persists in memory if changed in main not function
IN the code snippet below: Change add_change_total(Change change) . . . change.nickels=+2000;...
[15 replies] Last: is there any way to use the scope operator:: ? If you want to refer ... (by AbstractionAnon)
by jsfq
Drywall program using functions
I am trying to write a program using functions. I am having trouble with two of the functions. one...
[8 replies] Last: A few comments: Line 14: A function prototype for calculate_sheets ... (by AbstractionAnon)
initializing vector of char * s
Hello, I am trying to solve this puzzle: to do that, I want...
[3 replies] Last: @MiiNiPaa thanks for the reply. I used std::string instead of char* a... (by istemihan)
Unwanted output from file
Hi, I am taking 101 data from a file and directly printing it on screen and expecting output like t...
[8 replies] Last: Thanks.... How do you know so many cool stuff?? (by programmer007)
can´t see outputs
Can't see the fail in splines method #include "mn_aritmeticas.h" #include "mn_interpolacion.h"...
[1 reply] : what are you trying to do ? what is the exact problem ? is this the fu... (by leryss)
Need help C++ if and else
How would you write this as an if and else statement? #include <stdio.h> void swap(int *a, int ...
[2 replies] Last: So this is the 4th topic about this same subject . (by TheIdeasMan)
Pages: 1... 2930313233... 50
  Archived months: [sep2015]

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