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

Printing! - With a C++ program
 
Hi, you have probably misunderstood the title of this topic. I don't mean printing messages to the console, I mean using my printer to put something in a piece ...
[1 reply] : https://developer.gnome.org/gtkmm-tutorial/unstable/chapter-printing.h... (by poteto)
Outputting the shortest path in a Directed Acyclic Graph
 
Can someone explain how I can modify the code below to actually output the shortest paths (using the topological sort, and hence in O(V+E) time)? The code was ...
[10 replies] Last: Uh, no. I'm not sure you quite understand how to formulate the proof c... (by Duthomhas)
Can someone help me understand the concept of the COM "interfaces"?
 
I went to the msdn page where they explain the COM interfaces in a very complex way, but i have a hard time understanding the concept of these COM interfaces. ...
[4 replies] Last: Thank you very much for those links, they really are helping a lot. B... (by SomeAmazingGuy)
Make class hidden from project
 
I have a dll project and many classes on it. It's something like that: namespace x { class A {}; __declspec(dllexport) class B : public A {}; __dec...
[1 reply] : If the error is unknown identifier rather than some undefined referenc... (by helios)
Help deleting person from database
 
I have tried a lot of stuff to try and make it delete a student from a file...Need some ideas/help please The struct: typedef struct student { int stdnum; ...
[2 replies] Last: Vector would be more suitable than an array, arrays you would need to... (by Codermik)
Need help on a recrusive function
 
the program works fine but int number can't go over on certain number lets say x and y are are input here from main function so cin >> x,y NT(x), ET(y), NET(z) ...
[1 reply] : Without seeing more code I cannot really say, but I strongly suspect y... (by Duthomhas)
by zepix
const char* vs const char[]
 
Is there any difference between const char* and const char ? const char* word = "word"; const char word1 = "word"; I would like to determine t...
[1 reply] : const char* word = "word"; Type of word is 'pointer to const char'... (by JLBorges)
Linear Regression with gradient descent
 
Hi , I have a problem . I need to write C ++ code , where the program will download data X and Y from data.txt. Data.tx contains the dataset for our linear regr...
[14 replies] Last: I do suggest forgetting the gradient descend with Python and choosing ... (by keskiverto)
by i9try
iterator: end-1
 
how can i find the iterator end-1? I want this one: list<Athlete> athletes; list<Athlete>::iterator athl; for(athl=athletes.begin();athl!=at...
[1 reply] : do not double post. (by mutexe)
by ngure
Create class Students
 
hi i need help in finishing the program code using a class called Student that will capture the following details; 1. registration number 2. student name 3. ...
[2 replies] Last: It would be better form to use the constructor init list. Student::S... (by andywestken)
What is protecting range of "std::lock_guard"?
 
I am learning multithread programming in C++. I have a question about :std::lock_guard. In following example code: void print_thread_id (int id) { std:...
[9 replies] Last: That's right. (by doug4)
by dej26
c++ writing in files
 
Hi guys, I am having difficulties in writing in a file using C++.I can't figure out why I can not add another "persons surname" in my text file. In the if state...
[2 replies] Last: Thank you newbiee999 (by dej26)
Print errors
 
Is possible to print error if a function isn't called after another function?
[9 replies] Last: http://en.cppreference.com/w/cpp/error/assert cout and cerr refer to... (by ne555)
by i9try
list of classes in list of class
 
help!
[no replies]
Input/Output file help
 
The goal of what I'm doing is to take input from InputFile1, check it against all the values of InputFile2 to find a matching account number and amount and then...
[4 replies] Last: If I take it as one string, the input from the second file is going to... (by rlindholm)
Forex Signal
 
Forex Profit Signal is an exclusive signal provider site on online service. Forex Profit Signal only provide 100% guaranteed signal and 100% money back guar...
[no replies]
by pardi
bug!
 
hey all! what i've been trying too do is change the first alphabet of each word (in a text) to captal form. then i wrote the code bellow; would u tell me why ...
[3 replies] Last: i didnt know about <stdio.h> and it worked! i love you!!! :D (by pardi)
How can I make my application open a window that gives you access to all the directories on your computer?
 
I am currently working on a word processor and i want to make the option that lets users open and save files in any place of the hard drive. I want this "opt...
[3 replies] Last: @SomeAmazingGuy The problem with a number of your posts is that you d... (by andywestken)
Code blocks won't run my application
 
Every time i try to run my windows application, nothing shows up. All i see is a black screen with nothing on it. Code blocks compiles the application corre...
[2 replies] Last: In many issues ; that's the guy who needs to be fixed not the tool or ... (by mmw)
My menu will not show up in my win32 application
 
I just defined my own resource file (.rc) and a header that contains all the #defines for the menu items.. but once i include the header file in my .cpp file, t...
[1 reply] : Nevermind I figures it out. Turns out that i was supposed to add the ... (by SomeAmazingGuy)
June 2015 Pages: 1... 7891011... 16
  Archived months: [may2015] [jul2015]

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