General C++ Programming - June 2015 (Page 10)

Puting strings together
 
So i have a program that asks for a http link and puts that into a string. I get errors when i do th...
[1 reply] : Hello std::string link = "https://www.google.com"; std::string cmd... (by mmw)
string manipulation
 
How can this code be made more better? Besides removing the namespace. I wrote this and understa...
[4 replies] Last: Consider a pathological case where str is a million 'X' characters and... (by dhayden)
delete struct member
 
i have 2 files, let say tes.bin and tes2.bin both is binary files, tes.bin have this struct : struc...
[11 replies] Last: Computers are fast and life is short, don't try to over think this. J... (by dhayden)
pointers
 
Why doesn't my insert function work correctly? My print function is purposely done this way for ...
[4 replies] Last: Create a constructor for your Node class: Node(int d) : data(d), left... (by dhayden)
Static Analyzer Monitor System
 
Can anyone suggest a static analysis tool which has the ability to run every day and generate a repo...
[no replies]
by mat106
fstream::open sets the fail flag up.How to find the cause?
 
this is the line with fstream::open std::fstream file; file.open("flights",std::io...
[2 replies] Last: Make sure the file isn't open somewhere else for writing. By the way,... (by LB)
C++ Derived Class Pointer
 
Hi, How can I get a base class pointer? Let's say the class is Existence:Existence(Context *conte...
[4 replies] Last: I want the Singleton class to get the SharedPtr (applicationPtr) in th... (by vivienneanthony)
Distance traveled program problem.
 
Can anyone help me write a program for school? I am fairly new to programming and would appreciate s...
[4 replies] Last: @hello, you meant: // pseudo code // pick out your unit system, I '... (by mmw)
by scs
read file from directory every minute
 
read a file located at the specific directory every minute, if file is not updated for more than a m...
[7 replies] Last: Hello, if I may for each timer cycle ; I would checksum the file and... (by mmw)
corrupted double linked list error in runtime
 
Hi, I've been working on a maintenance C++ project. When I add a new pointer to the header of the r...
[1 reply] : The problem is in line 37 of your code. You're forgetting to initiali... (by MikeyBoy)
A C++ Problem
 
n=5; x=0; x= --n + --n; x= ; ? Which is the final value of X ? ---> No loop. ...
[9 replies] Last: Hello, I mentionned it as an example which perfectly fits the situat... (by mmw)
cannot convert from 'const char *' to 'LPCTSTR'
 
Hello i am using visual studio 2013 on a windows 7 64 bit. I am trying to build a huffman tree, i ha...
[6 replies] Last: Yes i am heading to that direction using Unicode or UTF-8, ANSI is jus... (by guilpter)
reversing a string
 
Can someone provide feedback on my reverse function and how it can be made better? Or more correct? ...
[5 replies] Last: If you're talking about reversing a sequence of words (no punctuation ... (by andywestken)
C2995->'std::complex': use of class template requries template argument list
 
This is FFT program ,i got the error like 1.C2995->'std::complex': use of class template requries...
[1 reply] : First, please add the code tags and indentation. See http://www.cplusp... (by keskiverto)
How can i use the resource compiler to compile my resource file?
 
I've been digging around the menu of codeblocks and i can't find an option that enables me to use th...
[2 replies] Last: windres is the GNU tool that corresponds with the Microsoft rc.exe too... (by andywestken)
Exporting d'base table to .csv
 
I understand the rules for exporting a d'base table to .csv and there are plenty of links explaining...
[2 replies] Last: Thanks. I started building this library earlier on. Maybe that's the... (by dominover)
Don't know how to compile with the a space in the name of the source code file...
 
I'm writing my code in simply notepad. I'm very beginner to C++ also. Here is my basic source code.....
[2 replies] Last: That said, you would do well to avoid file names with spaces. There ar... (by Duthomhas)
converting int to string
 
How exactly does this code work? string convertInt(int number) { if (number == 0) ...
[2 replies] Last: Hey Andy, thanks so much for that explanation. I completely understand... (by cppnoob25)
how do I just compare first address?
 
list<short int>::reverse_iterator it1 = myList.rbegin(), it2 = addend2.myList.rbegin(); so if ...
[1 reply] : When you say = 333 = 123 = 456-1 are these stored in the list ... (by andywestken)
Need help with solving this compiler error
 
I am trying to make a .rc (run command) file so that i can make a windows menu for my word processor...
[5 replies] Last: Nevermind, i figured it out. It turns out that i wasn't supposed to i... (by SomeAmazingGuy)
June 2015 Pages: 1... 89101112... 16
  Archived months: [may2015] [jul2015]

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