51,593 Topics

Member Avatar for
Member Avatar for QuantNeeds

Hello , My program works fine but I still have one error that appears and I would like to fix it. It is complaining about [code] srand( time(0) ); [/code] with the following error: .cpp(25) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data …

Member Avatar for mrnutty
0
810
Member Avatar for invisi

Okay I want to write a programme that saves a screen shot every second, but I don't want to use any print screen function: This is how I'd go about it, with my limited knowledge: first I'd calculate the resolution of the screen, and then loop through all the pixels …

Member Avatar for Ancient Dragon
-1
160
Member Avatar for gretty

Hello I have an array in a function that I am trying to copy into a private array named pic_links although I am getting an error, it wont let me copy the array into another array. Do you know why? :) Error message: [QUOTE] no matching function for call to …

Member Avatar for mrnutty
0
218
Member Avatar for invisi

Hi every one :) Well I wrote this code for deleting the pointers, and it compiles and runs. But at the end of the run it comes up with an Debug Assertion failed. WHY??? [CODE]#include <iostream> using namespace std; int main() { bool boolVar = true; int intVar = 50; …

Member Avatar for mrnutty
0
906
Member Avatar for jewelpervez

Hello, Anyone can send me c++ program for Testing LED Blinking which is attached in serial port. It will be simple ON or OFF Program. Actually I want to send data through the serial port (com1/com2 port). But at first i would like to test by using LED. Thanks in …

Member Avatar for ithelp
0
93
Member Avatar for adelphe

[CODE] void highscore1() { ifstream readfile; int score; readfile.open("highscore1.txt"); while(readfile >> score) { score += 1; ofstream writescore; writescore.open("highscore1.txt"); writescore << score; writescore.close(); } readfile.close(); cout << endl; game(); } [/CODE] how to i read from the text file, highscore1.txt and do a +1 to the integer inside the textfile …

Member Avatar for adelphe
0
167
Member Avatar for nuar046
Member Avatar for trikker

I'm using Programming: Practice and Principles Using C++ and I've hit a roadblock. Chapters 12-16 cover GUI programming and require the use of the Fast Light Toolkit. Here is what I've done so far. If you need more information I'd be happy to provide. 1. Using Dev-C++'s "Check for Updates …

Member Avatar for Sky Diploma
0
502
Member Avatar for gretty

hello How do I ensure that the same number does not appear more than once in my random number creator? Eg of output currently: [QUOTE] array = {30, 2, 12, 9, 2}; // has repeats [/QUOTE] Eg of what I am trying to do: [QUOTE] array = {30, 2, 12, …

Member Avatar for wildgoose
0
98
Member Avatar for dalj

I'm working on a simple program to analyse some data and I'm having trouble making multiple passes over my file. I've been trying to do something along the lines of for(n=0;n<Nmax;n++){ while (! inFile.eof() ){ crap done here; }; }; however it won't do more than one pass over the …

Member Avatar for dalj
0
85
Member Avatar for umair125
Member Avatar for DrDeadite

Ok, I have a program I'm trying to get to work, but I'm struggling to get right. I suspect its when it reads the data from the .txt file. I have to get the average of column 1 and the average of column 2, and get the highest of column …

Member Avatar for NathanOliver
0
90
Member Avatar for xAnubisx

Hello everyone, I am trying to write a program that gives you 3 options: 1 for encryption 2 for decryption 3 Exits the program If option 1, my program will ask for a password, an input file name and an output file name. My program will then read the file …

Member Avatar for mrnutty
0
186
Member Avatar for underground111

This what I have from my last assignment on creating a bank account. This is what i have to add for the next assignment and I'm lost. Can someone please help me do this!! Assignment: 1. Create 3 subclasses that inherit from the bank account class created in homework 3. …

Member Avatar for mrnutty
0
1K
Member Avatar for Nathan Campos

Hello, I want to know how i can build a program that reads what is in a parenthesis and print it using cout, but remember that i have to use this inserted a if method. Here is a sample of syntax: [code]test (test of output)[/code] Remember that this syntax is …

Member Avatar for poncho4all
0
84
Member Avatar for Nathan Campos

Hello, I'm learning C++ and i want to know how i can develop a program that reads a file like a database, but the program don't know how many lines or columns the file have, and the file is like this: [CODE]"Name Test" "1901" "email@test.com" "John Google" "6673" "john@test.com"[/CODE] And …

Member Avatar for Nathan Campos
0
101
Member Avatar for mybluehair

I'm trying to make a menu in my c++ console program where a user can hit the up and down arrow keys and this will scroll through the menu options. I got this snippet of code that I could modify to make it do what I want, but its not …

Member Avatar for mybluehair
0
2K
Member Avatar for avaitla

Hello There, Can anyone help me figure out how to get Winsock and the Windows SDK working with Netbeans? I am using the latest version of both the SDK(6.1) and Netbeans (6.5). I have downloaded the SDK but I don't know how to get the libraries to link to Netbeans. …

Member Avatar for Ancient Dragon
0
220
Member Avatar for Lukezzz

I need to convert a C# code into C++. I think I have almost done it except of one line of code wich is this line. First follows the correct C# version but how will that be converted to C++ in bold wich for the moment is wrong ? (C#) …

0
62
Member Avatar for shea279

so, I have a program that uses a keyboard hook, but starts it in another thread so that it can continue executing. The problem is, the only way I have to stop the mouse hook right now is to just kill the thread using TerminateThread(). However, this does not enable …

Member Avatar for shea279
0
119
Member Avatar for kashn

Hi, I'm compiling C# code to memory and running it from there, now what I want to do is pause, resume, stop that same code running in the memory. I'm using this currently to run the code: [CODE] private void compileRunToolStripMenuItem_Click(object sender, EventArgs e) { Thread runCode = new Thread(new …

Member Avatar for castegna
0
137
Member Avatar for zsady

Hi I have a vector which contains a number of objects. Inside these objects are 2 attributes. the X and the Y coordinates. How Can I sort them from top to bottom 1st then left to right? e.g 0,0 1,0 0,5, 3,1 2,5 the output would be 0,0 0,5 1,0 …

Member Avatar for mrnutty
0
105
Member Avatar for nihan1

Hi! :)))) I have to use sql connection to take queries from user by using textbox structure .How can I provide this .I don't find it anywhere . especially how can I connect sql and textbox structure together I do not know anything about this subject. I know c and …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for ryBowk

hey all. this is (if i remember correctly) my first post, i have done alot of reading on this forum though and have found the info invaluable. my program is a calculater that calculates the amount of sheets of plasterboard and bags of plaster needed for a wall, firstly: have …

Member Avatar for ryBowk
0
140
Member Avatar for Lukezzz

I am looking for a complete example for C++ where you connect to FTP-SSL. But is seems impossible to find a good example. The best I have found is: [url]http://blogs.msdn.com/adarshk/archive/2005/04/22/410925.aspx[/url] What I am looking for is a better example of how to Accept ALL certificates when connecting to FTP-SSL. I …

Member Avatar for Lukezzz
0
149
Member Avatar for Kracus

Yes I'm quite noobish I've been learning C# by myself reading various material I can scrounge online but I've run into a small issue while trying to write a small program. I'm simply trying to use a menuitem as a toggle between various instructions. The basic idea is simply to …

Member Avatar for jeremy.adamich
0
116
Member Avatar for Stefano Mtangoo

After building wxWidgets, I need to free space for any unneeded files. Should I uninstall wxWidgets after buidling? and what exactly building does?

Member Avatar for Hiroshe
0
121
Member Avatar for Software guy

Hi guys, i am working on this project, which has a C++ program for image processing. I have used Java and matlab for image processing in past so i never had to deal with Magick++ or ImageMagick. At the moment one of my main problem is i cant find Magick++ …

Member Avatar for Software guy
0
2K
Member Avatar for slawted

Hey folks, this is my first program and i dont know what to do to make it output my imput to a .txt file, can anybody tell me or show me what im doing wrong. thanks. [code]/*MuTech Computers Address Book by Michael Grayson.*/ #include <iostream> #include <fstream> #include <string> using …

Member Avatar for Sky Diploma
0
99
Member Avatar for kartik14

Hi, I'm kinda new to development using visual studio. I have a c++ program and I want to specify command line arguments to it from visual studio. Can anyone please tell me how to do it? Thanks (The version I'm using is visual studio 2005)

Member Avatar for tona70
-1
526
Member Avatar for yara naser

:icon_wink: hi now im take compiler subject so that if any one have parsing in c++ please help me because im write lexical code but i havent time to write parsing please help me soon thanks

0
66
Member Avatar for Frederick2

I can't figure out for the life of me how to import a class declared, defined and implemented within a dll into a host app using any GNU build systems. The two compiler suites I have are Dev C++ and the newer Code::Blocks. I have no problem with this using …

Member Avatar for dumrat
0
1K
Member Avatar for jko2326

I've been working on an assignment: Write a program that produces a bar chart of population growth for a small town, at 20 year intervals during the past 100 years. It should read the populations rounded to the nearest 1000 people. for each year it should display the date and …

Member Avatar for jko2326
0
413
Member Avatar for GDICommander

Hello everyone! I'm having a bad time trying to find a solution to my problem: I'm developping a client-server application. On the server side, I am calling a method, Recoit (receive), that calls internally msgrcv(), a UNIX system call for message-passing purposes. The problem is that I always receive a …

0
74
Member Avatar for Leniel

The problem ask to enter numb of students up to 100. but the user enter let's say 10. how do i manage to do that in arrays. Sorry if is a bother but i'm a newbie lol.

Member Avatar for Leniel
0
115
Member Avatar for Lukezzz

I wonder what the way is to Login to my FTP server with encrypted UserName and Password ? Normally when you login to a FTP Server, the UserName and Password travels as plain "text" wich could be "Hijacked" on the way. I wonder if there is a way to send …

Member Avatar for Lukezzz
0
180
Member Avatar for iamsmooth

So my program is taking input from the user, so it's storing it in a string known as x. But I don't want x to take the input after a hard return, it should keep reading until it hits a certain string, let's say "END", so until the user types …

Member Avatar for Duoas
0
324
Member Avatar for Silvershaft

Is there any good 2d game making library for kinda noobs? I've tried alegro but it doesn't work good somehow. If you know any tell please! Thanks

Member Avatar for swinefish
0
106
Member Avatar for metalclunch

Can anyone please tell me what does the this Function do? I understand everything till the "(n * GetPower(n, power - 1))" part. I just can't understand it. I do realise what the "n * " does, it multiplies N to the other side, and I also get what "GetPower" …

Member Avatar for metalclunch
0
91
Member Avatar for tazboy

I have an issue with my while loop (line 17) displaying the last donor in the list twice. I've looked around and I couldn't find any solutions that worked for me. Any ideas would be greatly appreciated. Here is my function: [CODE=C++]void delete_record( istream* file, string keyword ){ char response; …

Member Avatar for Ancient Dragon
0
92
Member Avatar for tomtetlaw

Is there any libraries that can connect two or more computers that are on a lan together and send data to eachother?

Member Avatar for Nick Evan
0
92
Member Avatar for nnhamane

Hi friends, there is a project which contains more than 10 small projects. These projects contains their respective exe's. Each project has some dlls to perform particular operation. Each dll is build by linking with either header1 or header2. My task is to integrate them in one project and make …

Member Avatar for Ancient Dragon
0
142
Member Avatar for Silvershaft

Hey, I have read windows API tutorial now but I am wondering how I can add things to main window itself, I know how to add things to dialogs and such but I just wonder how to add to main window, For example add button to main window? Sorry this …

Member Avatar for Silvershaft
0
131
Member Avatar for man4ish

I am working on STL(map) in shared memory. How can it be implemented. I am successsful in creating the two process process1 : writing a text to the sahred memory process2 : reading the same text from shared memory. But now i am planning to implement the shared memory for …

Member Avatar for kvprajapati
0
220
Member Avatar for tomtetlaw

Whenever I include this file more then once: [code=c++] #ifndef GFUNC_GAURD #define GFUNC_GAURD #ifdef _WIN32 #pragma once #endif #include "DarkGDK.h" // For getting the next unused ID int GetNextID( ) { int temp = 1; while( dbObjectExist( temp ) ) // Found an id == temp? temp++; return temp; } …

Member Avatar for Salem
0
101
Member Avatar for nrobidoux

I'm trying to figure out how to attach a class with pure virtual <</>> operators to other classes for the purpose of saving/loading the application state. So I started off with: [CODE]class IWriteable { public: IWriteable(): pCls(NULL) {} IWriteable(void *p): pCls(p) {} virtual ostream& operator << (const void * &p) …

Member Avatar for nrobidoux
0
132
Member Avatar for kashn

Hi, I'm trying to include a Intellisense in my Rich Text Box, but i'm having problems. I'm trying to implement the one from: [url]http://www.codeproject.com/KB/cs/diy-intellisense.aspx[/url] Can someone please point me to a much more simpler open source intellisense for C#, importing methods from a DLL file? - Thanks!

Member Avatar for kashn
0
154
Member Avatar for XodoX

Hello, I got the following code: [code] #include <iostream> #include <cstdlib> #include <ctime> using namespace std ; // Function Prototypes void pause(void); /** defines an abstract class */ class Jukebox { public: virtual void play() { cout << "Record unknown\n" ; } } ; /** defining subclasses */ class NewAge: …

Member Avatar for crazyboy
0
98
Member Avatar for azjherben

I have been using just SDL for alot, but it really olny does 2d things well. So I started learning OpenGL from the tutorials at [url]http://anomtech.uuuq.com/[/url] I was fine using Dev-C++ until the textures tutoiral, where the program would immedently crash as soon as I compiled/started it. So the maker …

Member Avatar for Ancient Dragon
0
260
Member Avatar for Leniel

well this a parallel array and also be able to process the arrays but it doesn't do so can some one give me a hint of what i might be doing wrong. Thank you before hand. ------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <new> using namespace std; int main () { int …

Member Avatar for Leniel
0
186

The End.