Beginners - April 2014 (Page 23)

Trouble linking files
 
In my programming course, we are using cygwin with gcc compiler. I understand that I have to compile each source before I can compile the driver program. I hav...
[1 reply] : you need to use the `-c' option to stop at compilation and do not try ... (by ne555)
No. of Comparisons
 
hello guys, I'm trying to find the number of comparisons a particular program makes. So i decided to make a separate function for comparison but i'm not sure...
[9 replies] Last: Computergeek01 Rethinking and changing the program flow a bit worked... (by Void life)
Reading from a file
 
Can I have help writing the read function for my code? Not sure what to do, and I know what I have now just isn't working. I want to start over with some h...
[2 replies] Last: Well, I don't think I'm allowed to use those, it would defeat the purp... (by sierranm)
Eight Queens, More arrays
 
Ok. I've always had trouble with the Eight Queens problems that I've been given. Yet again another one appears. This one is supposed to see if eight queens are ...
[5 replies] Last: I didn't really give you any code to put anywhere. I outlined the log... (by Disch)
Writing and Reading text files
 
I've written a code where certain operations occur on a set of matrices but i need it so this code is displayed on the screen and written into a text file. M...
[3 replies] Last: but i'm not sure how to make it how i need it to be. Could you clar... (by Chervil)
Transpose File
 
I dont know how to transpose the file then write it in the output file #include<iostream> #include<fstream> #include<cstdlib> #include<string> #include<...
[3 replies] Last: No I have to transpose it (by Darbear02)
Addition in a linked list?
 
I am creating a linked list and I am confused about how to operator overload the addition of a linked list. this is my .cpp file and the portion im confused abo...
[1 reply] : If this is a singly-linked list, I might be able to help. For future r... (by PrivateRyan)
NEED HELP
 
Hey Guys this is my question but im having problems with the code it compiles but doesnt run correctly just gives me infinite "Please enter a number". Tell th...
[4 replies] Last: If you want to execute the process of the user entering an integer val... (by PrivateRyan)
Array of char not changing values
 
If you look at the Winner function, and than go to the for loop at the bottom, it changed the value of the array that is defined in the main function and has a ...
[6 replies] Last: Yep - there's the char/int discrepancy there. Line 95 - do you mean ... (by wildblue)
Searching text-document for a specific sentence (1,2)
 
I'm unsure of how to search a text-document using fstream for a whole sentence, without actually searching for that whole sentence, for example. Home |Welcom...
[25 replies] Last: Ah, yeah, don't know why I did that! (by closed account 3R5fjE8b)
by adrien
Need help
 
Need help with this question: -Given that n = 5000, write a program that shall prompt the user to enter zero or negative integer value continuously. If the u...
[7 replies] Last: #include <iostream> using namespace std; int main() { int n = 5000... (by adrien)
Program stops running on simple array assignment
 
Hello, This has been driving me crazy all afternoon. Program runs great until I add a simple two dimensional array assignment to this function (transTable = ...
[15 replies] Last: Thanks- really appreciate it. I am just getting started with C++ and ... (by tdeluce)
C++ number of components
 
Hey guys i have a problem with function number of components, i need to count them but i have no idea how, can somebody help me? this is my code so far #incl...
[no replies]
Menu Function not working
 
Hey everyone. I was wondering if I could get some help with this program. I'm trying to get the "get_menu_choice" function to.. well, get the user's menu ch...
[5 replies] Last: int d, s, n; seats = '-'; d, s and n have uninitialized values w... (by wildblue)
how to make a calculator for beginners
 
#include<iostream> using namespace std; void calc() { int a; int b; string opp; cout << "enter value of a"; cin >> a; cout << "enter v...
[2 replies] Last: b=0 (by ResidentBiscuit)
Pointer or reference to a whole array
 
Hello there, so I would like to know if you can make a pointer or reference to a whole array. I`m using the pointer or reference in a function and that needs to...
[5 replies] Last: > I would like to know if you can make a pointer or reference to a who... (by JLBorges)
by shyy
Help with Recursive Function
 
Hi I am trying to fill up an area from a rectangle. I have operator overloading function that returns this number. Question is how do I create a recursive fun...
[7 replies] Last: In which case your function should take two arguments, AreaOfRectagle ... (by Lachlan Easton)
C++ RPG Start tips please
 
Yo is this good code because im pretty proud on the start system i made for it but any ideas to improve? #include <iostream> #include <stdlib.h> #include...
[6 replies] Last: I am by means NO expert, but I am also in the process of developing a ... (by closed account 3R5fjE8b)
Pass by Value Program
 
Can anyone help me with this code? I try to compile it but it gives the errors message: cannot convert 'double (*)(double, double)' to 'double' for argument '3...
[14 replies] Last: Thanks... I will edit the code... (by bardson)
by xerx25
My program is outputting out of range numbers
 
I was creating a similar, but not exact, program to the 3n + 1 problem on programming challenges, The function takes two integers a and b . if integer a is ev...
[5 replies] Last: I will use the debugger, thanks guys for all your help. I didn't reali... (by xerx25)
April 2014 Pages: 1... 2122232425... 67
  Archived months: [mar2014] [may2014]

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