49,761 Topics

Member Avatar for
Member Avatar for emorjon2

Hi All! I'm try to make a game in C++ with OpenGl. So far i've programmed the sprite and the platform. the next thing is to create a AI bot who will try to kill you in the game. but I've got the most bisarr problem with that: The AIBot …

Member Avatar for emorjon2
0
224
Member Avatar for sadsdw

Hi there, I have a file with 500.000 columns and 300.000 lines. The format is like that: ColXX ColWW ColQQ ColTT ... ColEE H1 G1 H1 K1 ... L1 G1 H1 K1 L1 ... O1 . . . Based on the first line information, (ColXX to ColEE), what is the …

Member Avatar for Ancient Dragon
0
129
Member Avatar for PratikM

Hi guys, I'm running Visual Studio 2010 C++ Express on Windows 7 and I was just wondering how to make the debug screen in full screen. So Any Help is Appreciated. Thanks

Member Avatar for pseudorandom21
0
571
Member Avatar for I<3CPP

Why doesn't this code work [CODE]class myclass { public: int *ptrarray; myclass() { ptrarray = new int[2]; *ptrarray[0] = 5; //here I want to set the value of ptrarray[0] to 5, not its adress *ptrarray[1] = 10;//here I want to set the value of ptrarray[1] to 10, not its adress …

Member Avatar for I<3CPP
0
109
Member Avatar for senator22

I am relatively new to C++ programming but conversant with C# programming. I am currently working on connecting to Avaya Aura Contact Centre RTD tables. The issue I am having is that the compiled software download from Avaya website connects to the server and download data to the console screen, …

0
154
Member Avatar for jonnyboy12

Hello, i have been coding for quite a while now. Up until now i have not figured out weather or not to do this. [CODE] somthing * newsomthing; newsomthing->funtion(); [/CODE] or this [CODE] somthing newsomthing; newsomthing.function(); [/CODE] I know what a pointer is , but often i dont know weather …

Member Avatar for mrnutty
0
109
Member Avatar for [Prototype]

Hello DaniWeb! How can I check the state of a socket to see if it's connected or not? [CODE] SOCKET sock = socket(AF_INET, SOCK_STREAM, 0); SOCKET client; //I know that this isn't binded to an address but nevermind that. client = accept(sock,NULL,NULL); if (client == [COLOR="Green"]HERE - Need to see …

Member Avatar for L7Sqr
0
129
Member Avatar for lukename

Hi. I have visual studio 2005 and i'm wondering does every header file has source (*.cpp) file with same name? For example windows.h and windows.cpp? If yes then where are all these source files? When using search on my computer i can find 3 times less cpp files than headers...

Member Avatar for venomxxl
0
104
Member Avatar for mars001

hello people, I have got a problem. I have written a program to simulate round robin scheduling program using visual c++ , version 6.0. Now, I want to add some simple graphics in my code so that a graphical representation of RR scheduling can be made. But, I don't know …

0
118
Member Avatar for ChaseRLewis

My current project requires quite a bit of function pointer passing to guarantee the flexibility desired. Given how messy and annoying I find functions pointers to be I decided to create a wrapper class listed below. Works fine, however it would be nice if their was a method so I …

Member Avatar for Narue
0
100
Member Avatar for Martin C++

Hello, Is there any infinty sign to assign to a variable ? I need my program to check if the value of one variable is smaller than the other, but i cant do it cause if i dont set a value to my variable at the beginning of the program …

Member Avatar for Fbody
0
4K
Member Avatar for ialuvtimos

[CODE]# include <iostream> # include <string> using namespace std; int main () { string s1,s2; getline(cin,s1); for (int i=0;i<s1.length();i++) { if (s1[i]!='.' && s1[i]!=' ') { s2[i]=s2[i]+s1[i]; } s2=s2+' '; } }[/CODE] //string subscript out of range error why??

Member Avatar for Fbody
0
113
Member Avatar for iAMyours

ahmm. let me ask, how do you make a program that saves a data that has been inputted by the user? and when you go back to that same menu, youll be able to review the datas you inputted .thanks alot for thos who'll reply.

Member Avatar for [Prototype]
0
2K
Member Avatar for mehas

Hello everyone! I'm new to this forum and I wanted to know if there's a book to learn C++ on windows form! If so then please give it's name to me! Thank you!

Member Avatar for jonsca
0
108
Member Avatar for jerryvdk

Hi, Iam newbie in visual c++. I want a windows application such that when i click the executable file it should ask for the file to be opened.How can i dothis ?

Member Avatar for caut_baia
-1
81
Member Avatar for ljohan

What code will i use in c++, if i input 6 numbers and then i will get the 3rd, 5th, and 6th number? Example: Enter number :123456 3rd, 5th and 6th number : 356

Member Avatar for pratikkamble
0
174
Member Avatar for manugm_1987

Hi Since i am a newbie to win32 programming i am facing difficulty in understanding how to use these GetMessage(), SendMessage(), PostTHreadMessage() apis, please help me ... Here is the code [CODE]#include "stdafx.h" #include "windows.h" #include "stdio.h" #include "conio.h" #include "windef.h" #include "winbase.h" HINSTANCE hins; HOOKPROC hkprc; HHOOK hk; HANDLE …

Member Avatar for manugm_1987
0
2K
Member Avatar for manugm_1987

HI Can any one please give some idea on how to read contents of active window. i.e say i have opened some notepad file say somefile.txt n it contains some text data ....how to read the contents and display it on console or write to some log file .... user …

Member Avatar for triumphost
0
162
Member Avatar for Cross213
Member Avatar for ben1996123

Just tried to make a quick prime number checker: [CODE]#include <iostream> #include <cmath> using namespace std; void askForNumber(); bool checkPrime(); void printPrime(); void printNotPrime(); int numberEntered; int x = 2; bool isPrime = true; int main(){ askForNumber(); if(checkPrime(numberEntered) == true){ printPrime(); } else{ printNotPrime(); } return 0; } void askForNumber(){ …

Member Avatar for VernonDozier
0
107
Member Avatar for PratikM

Hey guys... I have this code and i need to make the temperature part work with a function but i don't know how. So Any help is appreciated. Thanks *edit* Also, if there is any way to make this simpler, then please tell. [CODE] #include <iostream> #include <time.h> #include <string> …

Member Avatar for PratikM
0
214
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << …

Member Avatar for thecoolman5
0
301
Member Avatar for Comega

Sorry if this might be a stupid question, I'm still new, I've been doing C++ for 3 days so far and I just reached objects.. Anyway. I made one thing to additionate seconds with seconds, minutes with minutes and hours with hours. The thing compiles but crashes as soon as …

Member Avatar for ChaseRLewis
0
143
Member Avatar for Cross213

The error I'm getting when debugging (dynamic arrays): Unhandled exception at 0x5bfa782d in Ass4DynamicArrays.exe: 0xC0000005: Access violation writing location 0xabababab.

Member Avatar for Cross213
0
231
Member Avatar for shadowscape

Hello Developers, Is their a [B]c++[/B] alternative to the windows shell 2.0 command "[B]Get-AuthenticodeSignature[/B]", i really need some help making a [B]DLL[/B] that can check if a [B]authenticode[/B] signature exists before attempting to sign a file. Kind Regards, [B]Nathaniel Blackburn[/B]

Member Avatar for shadowscape
0
797
Member Avatar for MrAppleseed

'Ello again, I have a question about C++ GUI's, with Code::Blocks as my IDE. Whenever I make a basic GUI with the Win32 API, it always creates a console _and_ the GUI (as shown in the picture attached). I was wondering how to only create the GUI, or at least …

Member Avatar for gusano79
0
1K
Member Avatar for lupacarjie

Hello, I'm a huge c++ beginner and i was given a task to write a program that will accept continuous inputting of binary, decimal, octal and hexadecimal numbers. The program will only terminate if the user inputs an invalid value and it would display the total number of binary, decimal, …

Member Avatar for Duoas
0
151
Member Avatar for Tiancailee

Hi i am having problems with my assignment. i am supposed to make a 2d top down view game and i started on doing the main menu. i tried at making a main menu and it worked. after that i changed the codes and put them into classes and this …

Member Avatar for daviddoria
0
252
Member Avatar for r.cromwell

This one is confusing me, is it if else statement or case?... :?: The month to be used will be July and the month starts Monday. I need to make a program that will ask a user to input a number (1-31) and out put the day of the week …

Member Avatar for r.cromwell
0
138
Member Avatar for thecoolman5

hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions?

Member Avatar for thecoolman5
0
341

The End.