Beginners - May 2015 (Page 24)

by Aye
Help asap please!
Urgent I have an assignment, i think the error is in passing the counter, the question is that i should pass it as reference, it doesnt output the number of co...
May 12, 2015 at 6:27pm
[5 replies] Last: Thank you so much all appreciate it.. And i solved it (by Aye)
by hmlwin
Frustrated! Issues with calling on functions, that need to use arrays?
Ok, so here are the 2 functions i needed to write for my code. However i'm not sure what to return, or how to do the input??? And i'm having trouble calling on ...
May 12, 2015 at 6:20pm
[5 replies] Last: Yeah, I just realised that error. You would have to either allocate an... (by Tom56785)
Simple code to run music in a program
Hi there! :D Is there any way that doesn't require much code to run sound files on a C++ program? I've already search the matter, but the code I've fond isn'...
May 12, 2015 at 5:09pm
[no replies]
Need your help Pls
I downloaded code::blocks (open source IDE)onto my newly acquired windows 7 OS (64 bit). when I try to comply my program, I get this message (The program can...
May 12, 2015 at 3:58pm
[3 replies] Last: mentioning that in your post might have helped :) Have a read of that... (by mutexe)
getting error when erasing element from vector
It says that vector erase iterator outside range Battle.cpp #include "Battle.h" #include "SetUp.h" Battle::Battle(){ SetUp _setUp; ...
May 12, 2015 at 3:48pm
[8 replies] Last: Fixed!!!!! I didnt even have to erase anything, because I already had ... (by AmazingBKaiser)
need help debugging these
I'm trying to debug these code, and the first one gives me a segmentation fault. I feel like there might be... Types of Errors to Find/Correct/Match  Off by...
May 12, 2015 at 3:29pm
[9 replies] Last: "nowhere, actually" Wrong! The user-given value is used as index to d... (by keskiverto)
How to make a make file?
Hi, I don't understand these makefile things but now I finally have a code that requires one since there's 10+ files in my program so I guess it's time to learn...
May 12, 2015 at 2:21pm
[1 reply] : Hi, try this: all: obj g++ -Wall -o exec *.o obj: g++ -Wall -c *... (by minomic)
by csharp
Reversing a string input
Hello, I am trying to have an input statement inside a loop to input a string and when it sees a period in the end it breaks and display the string in reve...
May 12, 2015 at 2:17pm
[7 replies] Last: Printing in reverse is an entirely separate task. Think, why you do u... (by keskiverto)
C# question
Good morning everyone. I know this forum is for C++ but, I have a quick C# question for you. If, you have multiple windows open in a C# program is there a sim...
May 12, 2015 at 12:51pm
[1 reply] : Can't you just call Exit() on the main application object? and yes, t... (by mutexe)
Find MIN, MAX, and Average PLEASE HELP!
For our homework assignment we have to write a program that asks the user for a list of 20 integer numbers. The program should output the maximum and minimum v...
May 12, 2015 at 10:43am
[3 replies] Last: First set sum to 0. Then sum+=data; I would also suggest you change... (by Arslan7041)
Need help to modify this code
when user does not enter any value in the stack, and ties to get the top most elements, then a garbage value is displayed. Here, you need to handle this excepti...
May 12, 2015 at 8:40am
[1 reply] : Line 80 you declare j in the For loop, then declare it again on line ... (by Codermik)
Trouble with undefined references
Ok I'm getting these errors: /tmp/ccNvtehj.o: In function `tool::tool()': tool.cpp:(.text+0xf): undefined reference to `vtable for tool' /tmp/ccNvtehj.o...
May 12, 2015 at 6:55am
[1 reply] : "undefined reference" means the compiler can't find the definition of ... (by Peter87)
Inquiry
Hey everyone, can anyone help me in understanding this question Write a C++ program that takes an array of integers A and its length N as parameters and ret...
May 12, 2015 at 6:22am
[8 replies] Last: thanks helpbooradley60 & AbstractionAnon for your help, i really appre... (by asdfgh4600)
Void Function
Hi guys. So, I'm really new at this programming thing. I'm taking a class right now and in one of the assignments, we are supposed to create a void function tha...
May 12, 2015 at 4:27am
[6 replies] Last: You guys are life savers! It worked, thanks! (by victorml)
C-string unable to display
Hello, I was working on a question and I seemed to be unable to get this part working properly. else if (m == 'c') { std::cout << "Enter the numb...
May 12, 2015 at 3:30am
[2 replies] Last: Do you have any idea how to I go about solving this problem? If I'd g... (by Drakonaut)
Why is colon used for this function?
I was looking at code for converting string into lower case. I bumped into this piece of code online where transform function is used std::string s("hello")...
May 12, 2015 at 1:35am
[6 replies] Last: Oh Wow, awesome explanation. Thanks @JLBorges (by funprogrammer)
by tloki
Project array & void
I need to do: 1) {Add family membership for $60} 2) Add the code to write new membership accounts to the file "members.txt" 3) {Add choice to view member acc...
May 12, 2015 at 1:26am
[no replies]
Output the binary tree
The tree: 60 30 80 20 40 Desired Output: __________60 ________/____\ ______30______80 _____/_______/ ____20______40 #include<iostream> using name...
May 12, 2015 at 1:19am
[1 reply] : I did this and it does not work void print(int num) { int temp; tem... (by Vandalism)
Accepting integer and character input
Hello, I'm wanting to write a program that reads in two integers at a time and prints them out. Simple enough but I also want to make it so that if you input a...
May 12, 2015 at 1:00am
[8 replies] Last: Awesome, thanks for your help and insight. (by farmerdwight)
Three function prototypes
I am not sure I understand the question. I am being asked to write my initials using *, but each letter has to be in a different function prototype. I know ther...
May 12, 2015 at 12:29am
[1 reply] : What is the question and do you have any code so far? (by closed account 2LzbRXSz)
May 2015 Pages: 1... 2223242526... 40
  Archived months: [apr2015] [jun2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.