General C++ Programming - October 2015 (Page 21)

Help with a for loop segmentation fault in my code.
 
Write your question here. I'm writing a program in c++ which reads an outside weather file with 365 lines (one for each day) in 3 columns. the data is sorted i...
[1 reply] : Line 25: hottest_index is not initialized. Hint: It contains garbag... (by AbstractionAnon)
by belop
help with myn program!!!
 
Write a program in C++ which adds, subtracts, multiplies, divides and perform exponentiation on two specific numbers. The two numbers should be entered by the ...
[1 reply] : What's the problem you are facing , hope it is displyed what you enter... (by new1)
Having some difficulty understanding file io
 
An interactive C++ program whose input is a series of 12 temperatures from the user. It should write out on file tempdata.dat each temperature as well as the di...
[5 replies] Last: This is more updated code this actually runs and subtracts the program... (by edjohnson35)
by css416
Functions with Arrays
 
SAMPLE DIALOGUE: Type a string: abcde ojkl Encrypted: *bcd# +jkl Task is to replace all letter A with *,all letter E with #, and all letter O with + by u...
[3 replies] Last: What about arrays? Have you discussed arrays yet? Some professors talk... (by YFGHNG)
C++ "compiler" speed enhancements
 
Hi, it would be great to have a tool that enhances C++ compilation time, breaking it down to functions instead of libraries for Linux (VB.Net supports sth sim...
[2 replies] Last: interesting. Did not know about Ch. It seems to be a good tool to get ... (by gregorsch)
by JLGo
Matrix 2D array
 
Hi all, I have trouble in display my matrix program. All the data entry are displayed in line.. How do i display in like this 2 2 2 2 2 2 2 2 2
[1 reply] : http://mathbits.com/MathBits/CompSci/looping/nested.htm (by mutexe)
Needs help with validation
 
Hi guys, I need help with this programming assignment!! #include <iostream> #include <stdlib.h> #include <limits> #include <ctime> #include <stdio.h> using n...
[5 replies] Last: I provided you with a link on how to do it. That page includes an exa... (by AbstractionAnon)
help with importing into multiple arrays
 
I'm working on creating a program that will read a file with three lines of data. The lines are a string, int, int. They represent weather on a certain day of t...
[1 reply] : firstly, use code formatting (<> to the right of the edit box) The fo... (by Jaybob66)
error C2678
 
EDIT: DELETED
[6 replies] Last: Why did you delete your post? You've basically destroyed any possibil... (by MikeyBoy)
When there is nothing to return from a value-returning function!
 
Consider this, guys.
[16 replies] Last: An exception should never be thrown and caught in the same scope, that... (by LB)
arrays
 
Hey y'all, I need some help I am supposed to count the number of words and letter in the array and display the average amount of letters, but my program is co...
[7 replies] Last: Yes please use code tags when posting codes. If your input isn't guar... (by arzhon)
by BH11
Storing user input
 
I understand the concept to make a code to ask a user to input variables, but how would i go about taking the information the user inputs and storing it all in ...
[1 reply] : Vector, array, or list. Take your pick. Or if you wanna be fancy schma... (by YFGHNG)
by keeep
CCC Othello Problem
 
Been stuck trying to complete the 2006 problem 5 for 3 days, so i decide to suck in my pride look at the key, I tried the key multiple times and requires me to ...
[no replies]
float, double
 
for the number "3" are floats always denoted by 3.0 (plus) f .... = 3.0f are doubles always denoted by a single zero to the right of the decimal? 3.0 ...
[1 reply] : The type of a floating literal is double unless explicitly specifie... (by JLBorges)
header and math.h file
 
I've been experimenting with namespaces. Everything has gone well, and in the process a problem jumped out: when I try to get the foo namespace function to work...
[6 replies] Last: OMG I thought for whatever reason it was 4 * 50 sorry... pow(4,50)= ... (by technologist)
How to declare a function
 
Hi! I'm new at C++ programming. I'm trying to declare a new function in my program, but I can't solve it Someone can give to me any advice? * Sorry, i have...
[1 reply] : Possible answers: int main(){ int NiterMax=10000; // numero ite... (by sergiofevr)
matrix multiplication
 
I have 2 arrays a & b. They are the same length. I want to multiply one array by the other. I have a script/code block that does this anyway. I want to know are...
[5 replies] Last: not with x , the characters to overload are limited. (by Ericool)
Returning char array
 
I have a class which contains these private members: char firstName ; char lastName ; and a member function: const char *getfirstName(); When I cre...
[1 reply] : char* getfirstname() const{return firstname;} (by Ericool)
Xcode shows MAX as an undeclared identifier
 
Hello, VS 13 in Windows can run the following program without any error message whereas Xcode in Mac shows "use of undeclared identifier 'MAX' " at line 43 in ...
[5 replies] Last: Some header included somewhere defined the symbol 'MAX'. Probably a Wi... (by helios)
Transfering Value Between Functions (Begginer question)
 
Hello! I'm working on my first big project (big for me) and I have an issue. How can I transfer the value from a function to another one? I'll give you an exa...
[4 replies] Last: 2 Questions. Would the address of the integer variable be where you de... (by Generalbiiff)
October 2015 Pages: 1... 1920212223... 27
  Archived months: [sep2015] [nov2015]

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