General C++ Programming - January 2015 (Page 7)

Character Array Complement
 
thanks
[1 reply] : I would write a complement() function. Use switch-case syntax could he... (by Ganado)
by jdmic
Thread-safety
 
Hi, I'm not very used to thread-safety and synchronization and stuff like that but I have this piece of code that I want to be thread-safe and I'm out of ide...
[3 replies] Last: I'm pretty sure that critical sections and mutexes are exactly the sam... (by poteto)
by Kubani
How use unicode characters in VC++
 
Hello, I'm trying to have a button marked by the sqrt sign, '√'. I wrote below code and typed that sign by holding down " alt " and typing 251 using num...
[3 replies] Last: Thanks for the reply. So how to set a character to that U+221A ? >... (by Kubani)
Need time representation that cannot be adjusted and can be serialized
 
I'm looking for something that can hold the current time, but is independent of the user adjusting the OS's time, and that can be converted to a std::string a...
[5 replies] Last: @JLBorges Thank you so so much for helping me! (by benbalach)
SDL_SetVideoMode is undefined
 
I'm trying to get into programming with SDL. Currently I'm using "Focus on SDL" by Ernest Pazera. I'm having trouble setting up my system to work with SDL. My...
[2 replies] Last: Ah, so that's what the issue is. I didn't realize the book was using S... (by Justice361)
climate temperature
 
I don't know where went wrong can somebody help me my menu.c #include <stdio.h> #include <conio.h> extern int Jan13Max,Jan13Min,Jan13Mean,Jun13Max,Jun13Min,Jun...
[1 reply] : You really should explain more than just "it won't work" if you want g... (by Ganado)
Libary not found in QT creator
 
I am trying to link OpenCV to my qt project, but for some reason it doesn't seem to able to find my files. my .pro file looks like this QT += core gui ...
[4 replies] Last: solution found https://qt-project.org/forums/viewthread/35646 (by DrJones)
by enny1
How to calculate the time and space complexity of an algorithm c++?
 
I have spent lots of time trying to find a complete explanation about the manner to define the time and space complexity of an algorithm and about what can i do...
[1 reply] : First, have a look at this simple example: https://en.wikipedia.org/w... (by JLBorges)
Can anyonne please tell me that what are the errors in this programme? ALL OF THE HEADER FILES ARE INCLUDED
 
void welcome_screen(); void welcome_screen() { clrscr(); gotoxy(20,10); cputs("**************** W E L C O M E *********************** "); gotoxy...
[2 replies] Last: > Header Files that I used are this.... The standard C++ headers are... (by JLBorges)
by brh11
Question about parameter variables
 
Hello Everyone, For the past few years I've been learning c++ but only these few months to really get into it. I've been thinking about this non stop an...
[2 replies] Last: In this case parameters are not needed. However it is not a good style... (by MiiNiPaa)
by MexUK
LZO1x-999 Decompression
 
Hi there I am trying to decompress a file, as it is compressed with LZO 1x-999 compression. Here's my code: ... size_t uiCompressedSize = pEntry...
[10 replies] Last: I read the entry data from file, one entry at a time. The file is open... (by MexUK)
c++ help.
 
i am writing a program that asks the user for there name. with that we have to convert the name into numbers. for example a=1, b=2 and so on. once we do that we...
[1 reply] : std::cout<<std::accumulate(name.begin(),name.end(),0, (int x, int y)-... (by poteto)
Classwork Program Trouble
 
I am supposed to be writing a program in class, here is the whole worksheet: [quote=Classwork] Write a program that assists in a study of rolls of a die. The pr...
[7 replies] Last: In the absence of arrays. define 6 variables (initializing them to zer... (by Alrededor)
Structure in a class HELP ME!!!
 
i am having a lot of trouble! I am knew to c++! class farm_animals { public: struct cow { int value; }; }; farm_animals farm_object; farm_object.cow an...
[11 replies] Last: oh my god it works, thank you, you know your stuff! (by Belldore)
c++ how to convert int to char?
 
hello if we have int x = 5; and we want to convert x which is == 5 to char so for example char number = x doesnot work i understand why , but how to convert it ...
[14 replies] Last: int x=5; char(x); (by RSR102782)
how to store test scores?
 
hey guys, this is what i have so far, and im having trouble finding a way to store 5 test scores for each student that has been entered. for example: enter nam...
[1 reply] : Use std::vector<> http://www.mochima.com/tutorials/vectors.html #i... (by JLBorges)
Input Value(arrays)
 
Guys, I am stuck where it says if user want to put wrong order then program should not accept it. I don't know how to put that in code- Pls Help --------...
[1 reply] : #include <iostream> #include <vector> // http://www.mochima.com/tutor... (by JLBorges)
C++ Program does not catch any exception
 
I'm developing a game, well a library to make games based on SFML and a game based on that library. The problem is that when the program throws a exception t...
[5 replies] Last: I solved the problem. I had the idea that a compiler flag was causing... (by johnf9896)
this my task.. hope can help..
 
hi all :).. this my task.. hope can help.. already try again and again can't find the solution... :( how to make a c++ program using while loop to output this: ...
[2 replies] Last: thank you so much... :) (by alifiskandar)
long long int through scanf()?
 
how to get long long int input through scanf(). i tried using "%lld" and "%lli" placeholder ,but program always crashes. the program should execute within an t...
[4 replies] Last: you didn't answer the first response. You need show the compile fla... (by kbw)
January 2015 Pages: 1... 56789... 24
  Archived months: [dec2014] [feb2015]

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