General C++ Programming - April 2015 (Page 23)

by xnitro
output stream creates the txt file but won't open
 
#include <iostream> #include <fstream> #include <cstdlib> #include <iomanip> #include <ctype.h> #include <cstdio> using namespace std; void name_organi...
[1 reply] : Could it help to actually write something to the stream? (by keskiverto)
creating a triangular matrix
 
i am struggling with producing the right output through this code which should take any normal matrix and convert it into an upper triangular matrix. here is m...
[9 replies] Last: oh i found my problem. the loop was taking the reference number from m... (by muthavhatsindi)
Undefined symbols for architecture x86_64: (1,2)
 
Im trying to build a Library Management System and I am getting this error: Undefined symbols for architecture x86_64:. Im not quite sure why I am getting this...
[20 replies] Last: I have something like this in the Book.cpp: while(file.read((char*)&b... (by saj1994)
Urgent Help
 
So if i don't have character and aphabet it suppose to add two number and send it to reason function but for some reason if i type 123 it won't print less char...
[1 reply] : kthxbye. Help with what?......................... Ask a specific ques... (by TarikNeaj)
by Lozy
---
 
---
[1 reply] : You're passing the variable 'var' to the function "search_by_name_or_s... (by Computergeek01)
by saisr8
destructors
 
please explain the concept of destructors in c++ i particularly don't understand the word that it de-initializes memory
[2 replies] Last: A destructor only ever does exactly what you tell it to at the end of ... (by Computergeek01)
get a token from a cstring
 
Hi. how can I use strtok to get a part of a string token get string of type string convert to cstring convert to tokens using strtok then how to get a to...
[3 replies] Last: yep. Click on the links you see and read, see if that helps. Also try ... (by TarikNeaj)
RAR archive. Password cracking.
 
I want to make a bruteforce rar password cracker, just for practice. I know that it's easy to google for programs that already do this, but I want to make one m...
[4 replies] Last: You'll have to find some documentation on rar archives and their compr... (by Disch)
by sofea
list
 
input : 3 4 5 5 0 output : 4: 3 4 5 5 #include<iostream> #include<list> #include<string> using namespace std; int main() { list<int> intList; l...
[1 reply] : This is your 5th post in the past hour. Stop Fucking spamming. If you ... (by TarikNeaj)
Need quick help on my reverse function
 
so out += s[I-1] is the problem but how can I make it reverse? #include <iostream> #include <string> using namespace std; void reverse(string s, int i); in...
[no replies]
by sofea
Stack (display integer that push onto stack with its size)
 
input : 2 //(number of case) 4 5 6 0 output : 3: 6 5 4 0 input : 1 2 3 0 output : 3: 3 2 1 0 #include <iostream> #include <stack> ...
[1 reply] : Please edit your post and use code tags - http://www.cplusplus.com/art... (by TarikNeaj)
Removing multiple spaces
 
Hello! I'm new to C++ and I am having some trouble programming a function that reads a sentence from a file such as: "Hello World! Today is Awesome!" (note ...
[1 reply] : see http://www.cplusplus.com/reference/sstream/istringstream/ (by sujitnag)
by sofea
Stack (postfix evaluator)
 
#include <iostream> #include <stack> #include <string.h> #include <stdlib.h> using namespace std; bool isOperator(char *); int evaluate(int, int, char...
[no replies]
by jackf
Need to Convert the files from .xls to .xlsx using c++ programming
 
Hi, Please help in code to convert .xls to .xlsx using c or c++ programming.
[1 reply] : See if you find anything useful here - http://www.cplusplus.com/forum/... (by TarikNeaj)
user'll only be able to enter predetermined vals
 
<code> #include <iostream> using namespace std; int main { char A ="47000000000"; char B ="47000000000"; char C ="47000000000"; cout << "Enter 3 numbers to mu...
[12 replies] Last: thanxx @TheIdeasMan... (by shadder)
by Lauke
Polymorfism and Abstract class
 
Hi guys, i have a situation like this class Base {...}; //this is an abstract class with one pure virtual method class Derivate1 : public Base {...}; cl...
[15 replies] Last: @ JLBorges Thanks, I see now. Regards (by TheIdeasMan)
Need help on my coding...
 
Write a program to validate a password using the following rules: • The password must be at least six characters in length • It must contain at least one up...
[2 replies] Last: I get error num2 is used without being initialized and if you guys co... (by Gamer2015)
Circular Linked List (1,2)
 
Would anybody know why this isnt working? Only error I keep getting is LNK2019 void print(circularLinkedList &head){ if(head = NULL){ return; }; ...
[21 replies] Last: you could also make a do-while loop. also: please try to avoid that s... (by Gamer2015)
by awkedd
I don't know where to start
 
Hi, I im a 9th grade student and haven't been learning c++ for long . I have to make this program below, but i don't know how to write that condition ... Can ...
[5 replies] Last: I feel like calling this an algorithm is a bit too much :p Why dont yo... (by TarikNeaj)
by awkedd
Need faster algorithm
 
I need to create a program which verifies if n is a perfect number or not. I made this program, but for some reason when i submit it, i only get 90p / 100, say...
[6 replies] Last: Thank you , i figured it out with your help ! (by awkedd)
April 2015 Pages: 1... 2122232425... 28
  Archived months: [mar2015] [may2015]

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