Beginners - May 2014 (Page 46)

[Linked Error] Unresolved external '_Form2' referenced
 
Hi, I am a beginner in Borland C++ builder. I want to create a project with numerous forms. However, I must create every form separately. Now I am having a prob...
[2 replies] Last: How could I include the implementation of Form2 in the project? For eg... (by Whit Ney)
I need help with mcd or gcd
 
I need to place the prime numbers (used in Greatest common divisor)in a txt file. I mean if a=42 and b=56 show in the file (2 and 7) how can i do that?
[7 replies] Last: Muy bien, oye tienes cuenta de correo? si haces click en mi nombre de ... (by eyenrique)
recursive template sum of an array
 
Hey guys I'm having trouble figuring out this function. Hopefully you can tell me my mistake. My teacher wants us to do a recursive function to sum the elements...
[5 replies] Last: Thanks JLBorges (by JBIRD304)
by bern69
Cannot access an object into a class
 
Hello, I have a problem to use the function writeErrorMsg in errorMsg.h because of the use of the parameter MainForm in it. I don't why I can't use it like tha...
[4 replies] Last: This sounds to me like you are trying to copy a QMainWindow somewhere.... (by CodeGazer)
How to write vector data into a file.
 
I need to write the contents of 4 vectors into a file. I need each vector written into a new line. For instance I have a code vector, a description, a vector f...
[2 replies] Last: I had that before, and I was messing around with turning them to strin... (by ltorres)
Umpire's assistant
 
Hello all, I am having an issues with my code and a question. This is an assignment for class and I do not want the answer given to me. I have to write a cod...
[6 replies] Last: It seems that the if statement on line 125 is not running when 'n' o... (by AbstractionAnon)
Removing the head node of a LinkedList efficiently.
 
Hello all, I'm quite a novice at C++ and have been working on this assignment. I am able to insert integers into the linklist I've made (where the skeleton of ...
[4 replies] Last: "works fine"? As in, "this will print the list three times": somethin... (by keskiverto)
Operator loading
 
Hi guys! I am learning c++ and trying to test different features of the language but facing problem in understanding operator overloading... The following co...
[6 replies] Last: main.cpp line 8: second output operator should be << not <, Note t... (by AbstractionAnon)
A Logic/Loops Testing Document
 
After changing and debugging and re-editing this, I am unable to find a solution to the problem. #include <stdio.h> #include <math.h> /*This Program Fi...
[2 replies] Last: Thank you, My program works now. (by exeloar)
Help with creating functions
 
After recently learning how to make a new function, I cannot get it to run properly. #include <stdio.h> #include <math.h> int thirdside(double a, double...
[7 replies] Last: Thank You, My program now functions properly. (by exeloar)
this is a weird error
 
I am coming up with this error in my code and I dont know why. Can anyone help me and let me know whats going on? #include<iostream> #include<cmath> #...
[3 replies] Last: Thank you I just figured it out as you posted this. :) thank you thoug... (by owenkmc)
by ak16
using keyword
 
why using keyword required? class Top { int a; public: void read(){}; }; class Bottom:public Top { int b; public: using Top::rea...
[3 replies] Last: See Example 2a in:http://www.gotw.ca/publications/mill08.htm (by keskiverto)
i don't know what is the problem ,having a lot of errors ,etc (cout)
 
#include <iostream> #include <iomanip> using namespace std; int main() { char opt; int menu; int numdcp=0, numdbp=0, numsp=0, numms=0, numcw=0,nu...
[1 reply] : first of all post the code using the code ("<>") tags. Second, dont ma... (by codewalker)
I need help with my tic-tac-toe game, please!
 
It is almost complete! The only thing left that I am trying to accomplish is to initialize all of the elements of the array with an "*" symbol. //*********...
[1 reply] : check for valid symbols in your win function. I.e: if (num == num... (by pandasd)
Calculating Week of Day Help!
 
I wanted to ask what does it mean when my book asks to "create a top-level function named dayofWeek( int dayOfWeek ( int month, int day, int year);)" for this p...
[1 reply] : in your code getInput(month, day, year); void getOutput(int day, int... (by codewalker)
Overloaded Constructors: string& vs char* as param
 
Hi guys, I'm working on the examples from the Reference and need help with one. I added a constructor with a param char* in the following code: // copy c...
[7 replies] Last: Ahhh, ok. Thank you very much for the example! Thank you all bodies! ... (by closed account 2AoiNwbp)
Copying a vector to another according to a condition
 
Guys, I have a vector that holds information about people, in which one of the fields is "state", the state they live. How can I copy all the data of people ...
[1 reply] : Use std::copy_if() , which can be found in the <algorithm> header. ... (by benbalach)
using eclipse for java and c++
 
Hello: ive been trying to learn to use eclipse for c++ programming while reteaching myself to code as well. last time I coded in c++, I used a free program, ...
[no replies]
Breaking a string into substrings
 
Hello All. Im writing a program for my c++ class on strings. I have a program written and im stuck where it asking me to break apart a string that holds a dat...
[7 replies] Last: It can be made simpler with a string stream http://www.cplusplus.com/r... (by JLBorges)
Reading information from text file
 
Hello, I need to read some information from a text file. The program I'm working on is like a simple betting program. What I need to read are; match_code - tea...
[1 reply] : Maybe look at regular expressions: http://www.cplusplus.com/reference/... (by ShodanHo)
May 2014 Pages: 1... 4445464748... 55
  Archived months: [apr2014] [jun2014]

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