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 same in my "main" function the code works. What is my erro...
[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 this file ? example: I want to count how may numbers in a .txt...
[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 classificacion at school john 21 10 maria 25 ...
[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 output like this but i can't :( Data: Manager...
[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 to see if I could get it to compile and I'm getting the follo...
[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 assignment? Also, what is the syntax for it?
[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 its meant to be 'outfile' but im writing out to two differen...
[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 less 15 and there must be a space between Jones and Brokers...
[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 what I have right now but I am wondering if I could use strst...
[no replies]
character array
 
Hi forum, I have a character array defined as follows: static const char * fs_source = { "#version 420 core ...
[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 numbers displayed in my source code?
[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> #include <stdio.h> #include <ctype.h> #include <fstream> #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 works in 1 .cpp file, however when I write it in diferent fi...
[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 whole code) the first time I print the value of 'historyLengt...
[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 the void InputGrades and CalculateStatistics. Therefore, I can...
[no replies]
Cartesian class
 
I am having difficulty completing my code for a Cartesian class. It is supposed to allow for the input and display of an object's x and y values, but I can't fi...
[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), and I get an error of "no instance of overloaded function m...
[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? // testStrings and Pointers #include <cstdio> #include <iostream> ...
[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. The numbers should be stored in an array. The program should ...
[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 am fairly new and am self taught, so I just write my code so...
[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.