General C++ Programming (Page 2)

by Ulutay
Need help please, Traversing a linked list.
 
Hi, first of all im no expert, so i have been trying to create a linked list of "Minions" where eac...
[3 replies] Last: ohh it worked now by adding the reference, i though passing a pointer ... (by Ulutay)
Sorting integers without arrays
 
Hello, thanks for reading. I have been tasked with sorting a text file with some numbers in it. ...
[5 replies] Last: > How do you read in the file in pairs? Something like this: // Pass... (by JLBorges)
File Openings (1,2,3)
 
Hey guys, so I need to create a program that will prompt the user for an input, then it will save th...
[41 replies] Last: Well I have only run this program at school, with the correct director... (by xHyperionx)
Fill in code
 
I am completing an assignment and I am trying to fill in my missing pieces of code. I have competed ...
[8 replies] Last: Variable. How does one declare a variable? How does one change the v... (by keskiverto)
error C1004: unexpected end-of-file found & '{' : missing function header (old-style formal list?)
 
#include <iostream> #include <string> using namespace std; { int counter=0; string Userna...
[1 reply] : using namespace std; { //<Why is this brace here? int counter=0; ... (by MiiNiPaa)
Memory allocation wrapper affects caller function parameters?
 
I'm using wrapper functions to allocate and check all my pointers, which are allocated/freed with ma...
[3 replies] Last: @cire: Do you mean the dealloc variable? This points to a function whi... (by superfury)
can i convert a class?
 
can i do macros\class for convert these class: class Button1 : public Button { public: Bu...
[1 reply] : There's nothing wrong with your code, I'm just wondering what you mean... (by Little Captain)
Confusion with the auto type and other types
 
constexpr size_t rowCnt = 3, colCnt = 4; int ia = { { 3, 6, 9, 12 }, {...
[2 replies] Last: Thanks for the response. I tried a similar approach but I had forgotte... (by Vesparo)
delete
 
delete
[4 replies] Last: Probably he did it so that his teacher cannot find this post. (by TheHardew)
How to delete a line in a textfile using c++?
 
The program i wrote can run but did not work. I want to delete a line from the textfile "StaffList.t...
[2 replies] Last: It worked!! Thank you :) (by krystalting2)
by Dkob1
Check solutions C++ operator quetion
 
Need help/ check if they are right, thanks. int a=3, b=5, x; x= a/b + b/a +a%b + b%a; cout <<...
[1 reply] : Don't double-post across boards. http://www.cplusplus.com/forum/begin... (by booradley60)
Problems using pointers with Function
 
Hi. I always have confusions while using pointers with functions both as arguments and as return...
[1 reply] : //return_type (*fp)(argument_type); #include <iostream> #include<vec... (by sujitnag)
Passing Dynamic Multi-Dimensional arrays
 
If any one is on this late I could really use some help. I need to create subfunctions to do basic M...
[1 reply] : The parameter are passed like so: Matrix_Addition ( Matrix_A , Ma... (by coder777)
by Dkob1
How do you use e to power of in this case? (1,2)
 
so I have this, I'm trying to use the formula B=Pe^(rt) , P is dollars deposited in an account for t...
[25 replies] Last: Wow, it looks so much easier than I made it out to be. Thanks (by Dkob1)
by zevxc
Big O help
 
Would the big oh notation of the Algorithm of: for ( j = 0; j < n; j++ ) { for ( k = j; k ...
[4 replies] Last: It's a bit more complicated (due to k=j) : O(n 2 - ((n 2 - n) / 2)).... (by coder777)
Convert "string" functions into "char ...[]" functions
 
Hey I used a XOR-encryption method to en- and decrypt strings. Link to this article: http://www....
[1 reply] : Oh never Kind, I found out how :) (by ANproCUBE)
issues saving and loading from txt file(strings w/ whitespaces)
 
hey guys, I am having issues with loading the string "Dirty T-Shirt" from a text file i use to sa...
[5 replies] Last: Thank you, that took care of it! (by Skwidman157)
by Dkob1
Menu question ?
 
cout << left << setw(5) << "Menu" << right << setw(5) << endl; cout << left << setw(5) << "Coke......
[1 reply] : #include <iomanip> #include <iostream> #include <string> int main() ... (by MiiNiPaa)
by Dkob1
Help, why is it not working?
 
#include <iostream> #include <string> #include <cmath> #include <iomanip> using namespace st...
[7 replies] Last: Thanks, think I got it. (by Dkob1)
Why isn't this program running?
 
Hey guys, I am pretty new to C++ programming, but I don't know what is wrong with this program. Any ...
[2 replies] Last: thank you so much, it works now! (by maximus87)
Pages: 1234... 54
  Archived months: [nov2014]

Cannot post in this page. To post a new message, go to the first page.