Beginners - April 2014 (Page 57)

set_bit want work
 
Hello. I try to set a bit in a constant variable. My inline function want set the bit. If I do the...
[3 replies] Last: Thanks (by drumanart)
Define numbers in a .txt file
 
Hi, I read a .txt file by using <fstream> library. How can I define the number in the content of th...
[5 replies] Last: oh, thanks so much :) (by bathach95)
read a file .txt with numbers and words as a array to calcule max, min, average
 
i want read this file and write as array to calculate average of age, classification: "name age cla...
[3 replies] Last: i made this: double name ; double age ; double class ; ifstream ... (by bbaixinho)
by niko
iam stuck at output :(
 
i want to formate the output of this program but iam failed plzz someone help me iam trying to get ...
[2 replies] Last: @aciex i tried Iomainp but iam failed.. #include <iostream> #includ... (by niko)
Linker error
 
Hi everyone I'm not only new to C++, I'm new to VS 2013 Pro. I wrote this trivial program just t...
[2 replies] Last: Thank you for your answer. I changed the int main() and everything ... (by Polairis)
Memberwise assignment
 
I have a few questions about memberwise assignment. First of all, what exactly is a memberwise assig...
[3 replies] Last: #include <iostream> #include <string> struct member { member( co... (by JLBorges)
Cannot write to file.
 
Hi guys. The for loop runs 100% perfectly except its not writing the values to the file.(Yes I know ...
[4 replies] Last: #include <iostream> #include <vector> #include <fstream> #include <cs... (by Hercules)
Validate
 
I'm having trouble validating this string function in this format "Jones Brokers" The string can be...
[1 reply] : #include <iostream> #include <string> #include <regex> using namespa... (by Yanson)
by iluv41
"strstr" question
 
I'm trying to do a substitution cipher, but I cannot get it to output the translated code. This is w...
[no replies]
character array
 
Hi forum, I have a character array defined as follows: static const char * fs_source = ...
[1 reply] : you mean like : std::string str1( *fs_souces[ N ] ); (by nvrmnd)
LINE NUMBERS IN SOURCE CODE
 
Write your question here. I am using Microsoft VS Express 2013 for Desktops. How do I get line num...
[3 replies] Last: no problem! hope i can be of more assistance in the future :) (by Little Bobby Tables)
Vigenere chiper
 
can anyone help me in looping the encryption #include <iostream> #include <string> #includ...
[no replies]
Header and .cpp Files issues :/ HELP
 
I don't know whats going on, I am new on using header and cpp files I always did it in one file, it ...
[3 replies] Last: data.h #ifndef DATA_H #define DATA_H extern int arr ; void funct... (by nvrmnd)
value of the variable "historyLength" keeps changing
 
All the variables used are declared in predictor.h. When i execute this code(I didn't mention the w...
[no replies]
Get the average from ifstream of void function
 
These are the codes that the prof gives us, I find out I could not get any value from the text,in th...
[no replies]
Cartesian class
 
I am having difficulty completing my code for a Cartesian class. It is supposed to allow for the inp...
[6 replies] Last: Okay so I fixed that but now I'm getting this error In function `main... (by lizardqueen)
error with getline() function.
 
I am trying to use the getline() function and nothing is working I've tried doing fin.getline(name),...
[1 reply] : While I am not 100% sure, but, my guess is you need to flush out the b... (by kingkong200)
USE OF CHAR STRING POINTER
 
Write your question here. How do I put something into the character string array s? // testSt...
[6 replies] Last: You can also use str directly for that: for (int i = 0, n = strlen(... (by long double main)
Mean, median, and mode
 
Create a program that prompts the user for ten integer numbers in any order between zero and nine. T...
[1 reply] : Create a program that prompts the user for ten integer numbers in any... (by kingkong200)
by bgmnk
Formatting
 
Recently I have been told that the formatting of my coding is bad (making it difficult to leave). I ...
[1 reply] : No need to make a new thread, feel free to ask any questions you have ... (by Hippogriff)
April 2014 Pages: 1... 5556575859... 67
  Archived months: [mar2014] [may2014]

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