Beginners - March 2012 (Page 10)

fuction not working
 
after i was able to get my other program to run with everyone's input I decided to try a different one to get a better understanding of function programming. I ...
[8 replies] Last: Swap the red for Jack and I'll join ya! (by MrHutch)
by jcat4
Errors in Script
 
Hello I am new to scripting (very new) and I am encountering many issues that I am having trouble identiying. The script is as follows: #include <iostream> #i...
[4 replies] Last: also, the point of the "verifyin" function is to check if what is ente... (by jcat4)
by rome
Functions
 
Hi there I have another question which I think i am on the right track with, but i just want to make sure, if anyone is willing to share some knowledge. I...
[4 replies] Last: I don't know does anyone solved problem but i try to give my solution ... (by eraggo)
SFML won't run, unresolved external symbol?
 
So I've been trying to work on SFML, and have got the following output: 1>------ Build started: Project: Pong, Configuration: Debug Win32 ------ 1> main.cpp...
[1 reply] : Check these: Did you link the static libraries in build options? Deb... (by Need4Sleep)
Find the lowest positive value from an array (1,2)
 
Hello guys. Can anyone help me with this problem. I need to find the lowest positive value from an array for example lowest (minimal) positive value from thi...
[21 replies] Last: The bottom line is that you have to change the code to have the functi... (by cire)
replace specific values in a vector but keep order?
 
hello! i have a vector with some values (3, 3, 6, 4, 9, 6, 1, 4, 6, 6, 7, 3) and i want to replace each 3 with a 54 or each 6 with a 1, for example and so ...
[4 replies] Last: In general replacing a value of an element does not change the order o... (by vlad from moscow)
by tebza
use of loops
 
How do I create a program with even numbers ranging from 2 to 100. The only example i have in my book is of integers 0 to 100 #include<iostream> using names...
[2 replies] Last: you wanna add numbers from 2 to 100 ? 2+4+6+8+...+100. if so, here's ... (by Agonche)
Timeclock
 
Can anyone help with this, how would I write a c++ program that would run a workplace timeclock? It must use strings, arrays and functions, read in the employee...
[no replies]
Comma Removal
 
How can the atof read 1000 as 1,000 instead of 1
[1 reply] : Maybe this could help http://www.cplusplus.com/forum/beginner/5657/ (by Peter87)
WTH is this kinda "file.L" do in c++?
 
When I am reading the source code, something like this "file.L" appears. 1.How does it work for a program? 2.How to load it in program.C? 3.How can I know ...
[1 reply] : If you mean that "file.L" is actually inside quotes that means that it... (by Peter87)
Need answers of this questions.
 
Prototype of a function include: (a) definition. (b) declaration. (c) return type. (d) none of this. whats the answer...?
[2 replies] Last: yep. you are right. (by time to c)
Arrays as Function Arguments
 
Could someone please explain this concept to me and/or give me a link to a video tutorial with this information. I have looked on this site and other places, bu...
[1 reply] : Really? What keyword(s) have you tried? I just ran this in Google: ... (by webJose)
Store python returned array in c++ array
 
Hi guys, I'm writing a c++ code to call a python function and the returned array from the python function will be store in an array in c++.I'm able to call t...
[no replies]
File I/O with Xcode 3.0 for Mac
 
I have an issue getting my code to work. The following code shown is the function I am using to calculate the RMS of data I have collected from a CFD simulatio...
[no replies]
Read in only text from file not numbers
 
Here's the code. I'm reading in a menu from a .txt file. The "getdat" function is supposed to read in just text not numbers. any ideas? Show menu isn't needed i...
[1 reply] : What do you want the function getdat to do vs getdata? What output do ... (by histrungalot)
c++ error
 
Can anyone give me a hand with this error? #include <iostream> using namespace std; int main() { char lang; char type; char accoun...
[1 reply] : in lines 18, 25, and 29 you need ' ' around your char literals. for e... (by k0t4)
by Rhys64
Help!
 
I am in a C++ class in college and i need some help with a project It's a "guess the number game". i got it to work but the teacher said that it needs to be di...
[3 replies] Last: have a cout function, input function, calculation function, and a fina... (by ui uiho)
by hm8
Racing Game Help (Arrays)
 
Hi. I'm trying to create a racing game (this is an assignment for school). Here is the assignment: http://www.umich.edu/~engr101/Bielajew/a6.pdf The thing I'm...
[2 replies] Last: I'm not sure what you're suggesting. I kinda get that I have to "go ba... (by hm8)
'SEGMENTATION FAULT!' and arrays[char wtf]
 
well... WTF? I have looked over my code many-a-time and found absolutely no reason that it should overflow the arrays, insert an invalid character, or otherwis...
[8 replies] Last: NVM. I figured it out when i just started making inputs of the entire... (by IWishIKnew)
by hvigil
fraction addition ,subtaction, muiltiplication and division
 
The program im working on needs takes in user input like this: Enter Problem: 1/8 + 4/8 and outputs it like this result: 5/8 How do ...
[6 replies] Last: in theory yes, cin ignores whitespace so that should work. (by ui uiho)
March 2012 Pages: 1... 89101112... 71
  Archived months: [feb2012] [apr2012]

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