Beginners - April 2014 (Page 28)

by Riri
problem Derivative in C++
 
Write your question here. I have a project for school and the teacher gave us an old book, in which is the program needed is: Elliptic equations. Finite differ...
[no replies]
Storing each line of file with an array of pointers to each line
 
I have a text file with multiple lines. dog cat goat I want to save it using an array of pointers that point to each line. I have been trying things ...
[1 reply] : Why do you want to use pointers at all? Your line 1 might as well be ... (by LB)
return type for file
 
Hi! Is it possible to return a file in the return type of a function int main(){ ifstream fil = fileReturn(); return 0; } ifstream fi...
[1 reply] : You could always try compiling it and see for yourself.... But either... (by long double main)
Type conversion question
 
Hi all, i was wondering if any of you could tell me how to define(I.E. Correct syntax) a type conversion for a operator= for types i can not edit. //Can...
[3 replies] Last: Hmm I was afraid it was not possible.... although I thought I saw some... (by Precious roy)
Exit the program
 
Hi Guys! For the most part my program is working fine, but when i want to exit the program by provide the choice 4, the program should terminate but it does...
[2 replies] Last: Hi JLBorges The solution you have suggested exits the program in the ... (by menewbie)
Problems sorting arrays
 
Ok so I have been beating my head against the wall for 3 days trying to get this program done and I am so close but stuck on one thing. The program is supposed...
[8 replies] Last: MiiNiPaa i did miss the brackets. You are a lifesaver. Thankyou for ... (by nsmith1779)
gets()
 
Why gets() is deprecated in C++? And why it has been removed from C standard?
[5 replies] Last: Yes.. but it's very strange that many modern high-level languages had ... (by closed account jvqpDjzh)
Code::blocks - settings
 
Does somebody know how to modify the default initial page of the main.cpp when we open the IDE?
[4 replies] Last: Yes, but that option is not for setting the main.cpp, but the header o... (by closed account jvqpDjzh)
by iluv41
Loop, input problem?
 
nvm
[no replies]
by mcpilf
Just revision required
 
Hello, so this is my assignment: A bank charges $10 per onth plus the following check fees for a commercial checking account: $.10 each for fewer than 20 c...
[5 replies] Last: Mcpilf, as a beginner, I go for the simplest maths my brain can handl... (by mcpilf)
Read continuous data stream from serial port
 
I am interfacing SICK LMS 200 via serial port using visual c++ 2010. I send it commands to set the parameters and i receive proper reply. To start getting data ...
[no replies]
by CDavis
need help using functions and char
 
I have been spending a couple days working on a final assignment for my intro class The assignment is : Write a function that takes one double parameter, ...
[6 replies] Last: thank you now it works just fine (by CDavis)
Example - Static Const vector<vector>
 
Many People ask me all the time about how initialize a static vector, const vector, etc... So here is a really complex example, and this way always works. So do...
[1 reply] : Really? Where's Btype? (by iQChange)
by lafo
Reading a x-digit from a txt file
 
Hey guys, I have a question as you can see in the code below I am trying to read a digit from a txt file and save it into an array/variable. I have a txt file ...
[2 replies] Last: Hey, sry for the late answer but thanks for your help. It works great ... (by lafo)
understanding on how this program works
 
I have gotten so frustrated with this exercise i was working on for class and i googled the answer (which i normally hate doing because i like to understand the...
[1 reply] : you have count array containing 10 values (indices range - ) init... (by MiiNiPaa)
Code Blocks error?
 
This isn't really to do with C++ though earlyer today I delete one of my Code Blocks projects manually instead of doing it in Code Blocks and since then I haven...
[2 replies] Last: Well I just went to went my project was stored and deleted the folder.... (by closed account 9jNRX9L8)
Qt Creator
 
Okay so recently I started learning C++ and I decided to use Qt Creator as my IDE though I'm havining a BIG problem. I've coded my application and it compiles f...
[2 replies] Last: Yeah I fixed this problem though I don't think I'll work with Qt. Main... (by closed account 9jNRX9L8)
LinkList node template with multiple types
 
I am trying to create a LinkList node class template that has multiple types. This is what I have for the node class template: template <class T1, class T2>...
[8 replies] Last: Thank you JLBorges! I think this is what I'm looking for. I'm not com... (by Khillz3000)
Globally available Class functions
 
Suppose I have something like struct C { int number; void addOne(){number++;} C():a(0){} } struct B { }; struct A { B b; } I'm trying to ...
[3 replies] Last: Oh, I forgot about inability to assign non-const static variables in d... (by MiiNiPaa)
avoid automatic round of
 
I have a double variable with large value if I print that, it show like this 10000000000000000, how to avoid the automatic round off please help me int mai...
[3 replies] Last: double have about 15 decimal digits of precision long double have abou... (by MiiNiPaa)
April 2014 Pages: 1... 2627282930... 67
  Archived months: [mar2014] [may2014]

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