132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Hidden_mistakes

I am wondering why the right hand side of my split screen isn't in the middle and also why the game goes off of the background, any help would be much appreciated [code] #include "SDL.h" #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <Windows.h> #pragma comment(lib,"Winmm.lib") /* ---------------------------------------------------------------------- */ /* Defines/Enumerations …

Software Development c++
Member Avatar for Hidden_mistakes
0
108
Member Avatar for gregarion

Hey guyy , using getline allows us to read a file line by line. but is it possible to use getline to read individual words in a line? For example. Test.txt My name is John. Using getline will read the entire line... [CODE] int main (){ string templine; ifstream myfile("test.txt"); …

Software Development c++
Member Avatar for NathanOliver
0
143
Member Avatar for Dinglish

I am new to programming and i am teaching myself. (my teachers are not very good) I am attempting an old assignment that a colleage had completed in school. He told me it was pretty basic in terms of c++ programming. UELS is a company selling bicycles; Customers may opt …

Software Development c c# c++
Member Avatar for NathanOliver
0
118
Member Avatar for helpmepassclass

i am writing a program for my java class and have to create a calculator, i got the calculator to work for two numbers but can't get it to do more than two numbers and it needs to. any help will be greatly appreciated. If you take out the tnum …

Software Development java
Member Avatar for BestJewSinceJC
0
98
Member Avatar for mebob

Hey, i was wondering if there was a way to output really large decimals, either to a file or to the output stream? because when i do this: [CODE] file << setiosflags(ios::showpoint) << setiosflags(ios::fixed) << setprecision(50); [/CODE] or do that with cout, the program crashes.

Software Development c++ file-stream ios
Member Avatar for DinoBA
0
106
Member Avatar for squigworm

Hello everyone, I am writing a program that will read data from a txt file and for the life of me I cannot get it to do so ... Seems like no matter what ! I do it keeps telling me it cannot find the file .. I have used …

Software Development file-system java
Member Avatar for BestJewSinceJC
0
134
Member Avatar for kingnebula

Greetings, I am having an issue with calling both winsock and winsock2 libraries but i can't seem to find where i have called winsock from. I have a main.cpp calling a Socket.h main.cpp contains the following includes: [code] #include "stdafx.h" #include <iostream> #include <vector> #include <windows.h> #include <windowsx.h> #include <string> …

Software Development c++
Member Avatar for Ancient Dragon
0
277
Member Avatar for kadvar

Hi, I basically have a dictionary with a few key value pairs in it. [CODE] mydict = {} mydict['key1'] = 2000 mydict['key2'] = 3000 mydict['key3'] = 6000[/CODE] I have read that you can check if a particular key is present in a dict with the '[B]in[/B]' statement like: [CODE]if 'key1' …

Software Development python
Member Avatar for kadvar
0
152
Member Avatar for charqus

I have a question. Can i select a string from my RichTextBox ? For example: I have this text: English Francais Spaniol And i want to select Francais , but as string , not at int - lenght ... ( richTextBox1.Select(7,15); ) I want something like: richTextBox1.SelectString("Francais") , is there …

Software Development
Member Avatar for "ICode"
0
114
Member Avatar for Avatar99

My overloaded operator isn't initializing the value passed through it. Please help!!! and yes I am aware that my insert function isn't complete... [CODE=c]#include <iostream> using namespace std; struct Node{ int value; Node * next; }; class linkedList { public: linkedList () {first=0; length=0;} bool operator > (int a) ; …

Software Development c++ linked-list
Member Avatar for Sky Diploma
0
111
Member Avatar for ku95

I'm currently doing a model, however its occurred that I'm getting 1 error that which is saying that the && operator. I don't fully understand why that is. If there is a solution to this that would be great, also with a good explanation why I have made this mistake …

Software Development java
Member Avatar for BestJewSinceJC
0
3K
Member Avatar for fattymuffin

Hello, So my problem is that I am supposed to write code in order to prove whether or not text in a file is topologically sorted correctly. I have the algorithm on how to do this, but the specifications say that I should use an array of lists to keep …

Software Development algorithm c
Member Avatar for tcstom
0
107
Member Avatar for summey

The code below is for my assignment it works i just want to make sure i did this correct any advice is wanted. Also one thing that is bugging me see basepay well if the base pay is 133.20 it chops off the 0 and only displays 133.2 why iv …

Software Development c c# c++
Member Avatar for summey
0
132
Member Avatar for gregarion

Hey guys i need a bit of help in getting my answer correct. Basically , im trying to get my answer to 2 decimal places when i divide one number by another... [CODE]int main(){ int Totalgpa = 46; int e = 13; int SemesterGpa = Totalgpa / e ; cout …

Software Development c++
Member Avatar for Avatar99
0
83
Member Avatar for deeep

Hi we have a buffer say [COLOR="Red"]char array.[1].[/COLOR]so the size will be 1 byte. Now our problem is say we have 8 bits data say 10110101. now this must be assigned to array[0] variable as 1 byte. bit manipulation is not happening.kindly help us in this regard If possible post …

Software Development c
Member Avatar for jephthah
0
171
Member Avatar for gregarion

Hey guys , i am trying to write an array into a textfile. Here is the coding... [CODE]int main() { ofstream myfile("report.txt"); int g = 0; int billy [] = {16, 2, 77, 40, 12071}; for (int n=0 ; n<5 ; n++ ) { g = billy[n]; myfile << g …

Software Development c++
Member Avatar for Fbody
0
109
Member Avatar for jessiko555

Hi I've made a program but for some reason I am getting this error that I can't even begin to decipher because it won't point me to where the error has been made. I am using the PV=ZnRT formula. Here is the error: 1>C:\Users\user\Documents\Visual Studio 2008\Projects\lab24jess\Debug\lab24jess.exe : fatal error LNK1120: …

Software Development c++ visual-studio
Member Avatar for jessiko555
0
245
Member Avatar for rlhh

I'm trying to create a maze with a mouse inside moving up down left right in 200 moves. I've got everything working besides the fact that it duplicates the heart on the other side(If it exits on the left, it'll be duplicated at the right end) when the heart shape(mouse) …

Software Development c
Member Avatar for jephthah
0
196
Member Avatar for sanam2010

hello, I want to make a Report in C# Projetc, but I'm not intrested in using Crystal Report, I want to make it by MSReportViewer. PLS Help me, thanx.

Software Development c#
Member Avatar for sanam2010
0
63
Member Avatar for pringles08

[code]public String viewByItemCode(String icode) { String search = " "; for( ; x<recordNum ; x++) { if(itemRef[x].getItemCode() == icode) { search = ("\nItem Code: " +itemRef[x].getItemCode()+ "\nItem Description: " +itemRef[x].getItemDesc()+ "\nItem Unit Price: " +itemRef[x].getItemUnitPrice()+ "\nItem Quantity: " +itemRef[x].getItemQty()+ "\nItem Unit Measure: " +itemRef[x].getItemUnitMeasure()+"\n"); } } return search; }[/code] Supposed …

Software Development java seo
Member Avatar for pringles08
0
106
Member Avatar for Amresh.K

import java.awt.*; import java.awt.event.*; import javax.swing.JApplet; public class CarApplet { private Image carLeft = null; private Image carRight = null; private Image carUp = null; private Image carDown = null; private Image carImage = null; private int direction = -1; privte Point carLocation = new Point(25,25); ? /*Over here this …

Software Development java java-swing
Member Avatar for Katana24
0
112
Member Avatar for seaman34

Hello this is my first thread on the forum i tried to search everywhere for a solution but no result...:'( Im trying to figure out some easy pointer use but still get some stupid error... My fault. error C2440: '=' : cannot convert from 'char (*)[100]' to 'char' [CODE] void …

Software Development c
Member Avatar for p.y.
0
157
Member Avatar for asduae

how to select best 4 grade out of5 55,99,66,88,44 by java program

Software Development java
Member Avatar for jwenting
0
89
Member Avatar for tianxieng

Plesese help: i have no ideas to do with this problem. Write a program which allows the user to input several real numbers and then prints out the 2nd smallest number. The input sequence starts with a positive integer indicating the number of real numbers. For example, for the input …

Software Development c++
Member Avatar for Salem
0
153
Member Avatar for krishnisilva

hi, Question 1 i am developing a project in C#.Net, and when a form loads data from the SQL client database is added to four combo boxes in the form, i need to change the data in the combo box when the check box is ticked. I wrote a code …

Software Development c c# c++ sql
Member Avatar for gusano79
0
172
Member Avatar for Mattan360

Hi! (This is my first post on the forum) I'm trying to capture the desktop of the "not showing" desktop. I got two users, both logged in. I start the program on the first users desktop (to capture), and then the second one on the other user, which is supposed …

Software Development c c# c++
Member Avatar for Mattan360
0
234
Member Avatar for En-Motion

I'm trying to write an app in VB where a user can browse their computer, choose some images and have them display in a slideshow. A later feature will include an option for them to write text which will scroll across the screen - I haven't gotten to this yet. …

Software Development vb.net
Member Avatar for DGULLIVER
0
101
Member Avatar for Dcurvez

hi everyone :) I hate to do this but I gotta.. This is what I want to do but dont have the foggiest about how to accomplish it! I have 4 forms..frmWeekOne, frmWeekTwo, frmWeekThree, frmWeekFour. These 4 forms are all added forms to my original project. what I need to …

Software Development vb.net visual-studio
Member Avatar for DGULLIVER
0
119
Member Avatar for smackdown164

so my project is due tomarrow and im stuck i need to some help. This is what i have it came up with some errors and i need to finish it. The conditions are TOTAL BALANCE and need to withdraw only multipule of 20 [CODE]// This is a program that …

Software Development c++
Member Avatar for lakarr
0
616
Member Avatar for JwhateverJ

I have this program where I'm trying to find the file size with the boost library. I find the files fine, but it won't get the file's size, where am I wrong? Thanx for your help... Here's my code so far. It compiles fine, but won't return the file size. …

Software Development c c# c++ file-system
Member Avatar for JwhateverJ
0
4K
Member Avatar for squigworm

Hello everyone, I am interested in creating a program that A).. displays a picture at random from a specific pool of images as a screensaver ,, and B) allows the user to set a time frame in which one of the pictures will randomly pop up on the screen.... Can …

Software Development java
Member Avatar for squigworm
0
74
Member Avatar for Loranus

Hello for my C++ programming class I am programming a Dictionary program that allows the user to enter in definitions and stores them between 2 classes. Dictionary which will contain all my entries and Entry which will contain the definition for every word that the user inputs. Now when they …

Software Development c++
Member Avatar for mattjbond
0
109
Member Avatar for n.utiu

I am working at a project that is supposed to run a python script. Here is my main class: [CODE] #include <iostream> #include "scripting.hpp" int main(void) { cScripter oScripter; std::vector <double> vectMy (7, 32); oScripter.doRunScript (&vectMy, "test.py", "function"); return 0; } [/CODE] And here are respectively scripter.hpp and scripter.cpp : …

Software Development c++
Member Avatar for n.utiu
0
151
Member Avatar for jeff_mallatt

From within a template I'm trying to set a variable using a select= which references an absolute path. But when the "root" element specifies an xmlns= namespace, the select fails (returns an empty string). Here's the XSLT: [code=xml] <?xml version="1.0" ?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://foo.bar.com/something" > <xsl:output method="xml" indent="yes" encoding="windows-1252" …

Software Development xml
Member Avatar for jeff_mallatt
0
1K
Member Avatar for nahmartin

I am having problems with sending my array N_List [CODE]int** N_List = create_2d_int_array(len_N_List, 100, "voro:N_List"); double** atoms = create_2d_double_array((int) (8*box_x*box_y*box_z/(lattice*lattice*lattice)), 3, "voro:atoms"); for(i=0;i<len_N_List; i++) for(j=0;j<100;j++) N_List[i][j] = 0; [/CODE] The code runs fine with N_list send and recv omitted but with it, it causes a segmentation fault Send [CODE] if(rank …

Software Development c++
Member Avatar for nahmartin
0
469
Member Avatar for gnarly

I'm reading in a text file and want to parse based on labels within the text file. At first I was trying to do this with patterns, but after spending some time reading the API documents, I'm not sure what I need. I think I'm making this too complicated. Example …

Software Development api java regex
Member Avatar for BestJewSinceJC
0
100
Member Avatar for krishnisilva

hi, i am doing a project in C#.NET desktop application. how can I make a upload, retrieve functionality in C#.NET desktop application for pdf documents, I am using a sql client for the moment, so i need to upload the file(file path, content, title in to the database) how can …

Software Development c# file-system pdf sql
Member Avatar for kvprajapati
0
129
Member Avatar for manojkv

hi i am new to VC++ ,i want to read a .txt file and parse line by line and interpret the data on windows console ,can any one help me in this regard plz.. thanks in advance

Software Development c++
Member Avatar for daviddoria
0
83
Member Avatar for jellybeannn

hallo can someone please help me my Access Database ConnectionString does not work on the server [code] string strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|calculator.mdb"; [/code]

Software Development microsoft-access
Member Avatar for Gospp
0
100
Member Avatar for maddav

Hi, Recently (today) got an assignment to take a particular code that we've done previously, and split it into 3 files: 2 .cpp files and a header file. Now, i believe i've done it correctly, but the only thing that's throwing up errors is the use of friend for overloading …

Software Development c++ file-system
Member Avatar for maddav
0
3K
Member Avatar for scripter_tmrage

Hi buddys at school we are now working with functions and derivates (or how you spell it) and im getting kind of tired to write the same thing the hole time in the calculator and on the paper plus the fact that i need something to program. So i was …

Software Development java
Member Avatar for scripter_tmrage
0
189
Member Avatar for Gospp

I've a problem when trying to convert my sql-query to a SqlCommand. The query: [CODE] SELECT L1.[App_Name], DATEDIFF(ss,MAX(L1.MESG_DATESTAMP),GETDATE()) as Seconds FROM sbyn_csf.CSF_CME_LOG AS L1 JOIN sbyn_csf.CSF_LOGGER_LOG AS L2 ON L2.MESG_ID = L1.MESG_ID WHERE logger_code = 101 AND [App_name] in ('002','010','022','025','036','037','040') GROUP BY l1.[APP_NAME], L2.LOGGER_CODE ORDER BY 1, 2 [/CODE] The …

Software Development
Member Avatar for Gospp
0
128
Member Avatar for Cactusmania

Hi, I have two forms in my application. I created an instance of one in the other e.g. FileBrowse browse = new FileBrowse(); Then, I call browse.show() and the form appears. In the class FileBrowse, I have a few buttons etc. One such button opens a file dialog to the …

Software Development
Member Avatar for Cactusmania
0
94
Member Avatar for FlynnLags

This is quite literally driving me insane. I'm new to C++ so bear with me on this one. Basically, I've got two files. One header file (Package.h) and the C++ file (Package.cpp) I've got a class called [B]Package[/B] and function prototype in the header file as follows [CODE] private: string …

Software Development c++
Member Avatar for Fbody
0
803
Member Avatar for mmasny

Hello, I'd like to get started with PostScript. I'm completely new to it and would be very grateful to you for any hints. And my first question is (please don't ridicule me): how do I make a PostScript file? I mean, a plain text file with PostScript code, produced by …

Software Development
Member Avatar for mmasny
0
173
Member Avatar for LucyX

Hi Guys, im fairly knew to this world of programming, but it interests me greatly. In order to better my skills, ive decided to tackle a few personal projects in my spare time . . . . Ive been advised to give the Hilbert Curve a bash. However getting started …

Software Development python
Member Avatar for ultimatebuster
0
300
Member Avatar for erfanjan

I want to send fax with C# but i don't know how i can do it. can anyone help me?? Thanks

Software Development
Member Avatar for kvprajapati
0
160
Member Avatar for Danny_501

Hi all, I have a file called Client.cpp, which has main() contained in it. my problem is at the start of the file: [CODE]#include <iostream> using namespace std; #include "Student.h" enum User { NO_USER = 0, STUDENT = 1, ADMIN = 2}; [/CODE] I get errors on the line with …

Software Development c++
Member Avatar for Danny_501
0
126
Member Avatar for joshslaton

Hello, everyone..... its not an issue about how to connect to access using odbc since i did it already: [CODE] Imports System.Data.Odbc ...... Dim ODBC_CON As New OdbcConnection("dsn=DBMS Project") Dim ODBC_READ As OdbcDataReader Dim ODBC_COMM As OdbcCommand [/CODE] [CODE]although my problem is the code on how to select/insert/modify or update …

Software Development vb.net
Member Avatar for joshslaton
0
115
Member Avatar for vbahlam

i write this code to know if the combobox= any item in dataset.table("exemple") but is false what can i doing can you help me code: For i As Integer = 0 To ds.Tables("ligne").Rows.Count - 1 If ComboBox6.SelectedItem = ds.Tables("ligne").Rows(i) .....................

Software Development dataset vb.net
Member Avatar for kvprajapati
0
76

The End.