8,298 Topics

Member Avatar for
Member Avatar for Mushida

Sorry but I'm having a problem whit this function that is meant to let me edit records in a binary file. After I enter what I want to change an attribute to the file remains unchanged. [CODE]void updateStudent(fstream & file) { S students; long lenth; char snum[10]; char editChoice = …

Member Avatar for Mushida
0
202
Member Avatar for "roja"
Member Avatar for VilePlecenta

I am interested in being able to make a C++ win32 program that will simply display someones profile on a phpbb3 forum when they enter in their credentials. I've already made the GUI and other misc code needed for displaying the information, but I dont know how to make the …

0
99
Member Avatar for aznlitomik3

Hi I'm having calculation error is the function - fraction::GCD(int& gcd, int e, int f) Example: If u enter 1/3 for both first and second fraction The unsimplified fraction would be 6/9 And when u call the GCD function and do the calculation by urself u can see that it's …

Member Avatar for jonsca
0
150
Member Avatar for localp

I successfully configured MYSQL with VS2008, i executed the following code, and no errors were thrown. [CODE] #include <mysql.h> #include "stdafx.h" void main() { }[/CODE] Now i need to write a C++ code to retrieve some values from a Database, therefore i used the following code; [CODE] #include <mysql.h> #include …

Member Avatar for localp
0
275
Member Avatar for mzetka3

I'm new in c++ so please be patient. ;) I'm trying to create abstract fabric. My errors: [ICODE]1>ObslugaOkna.obj : error LNK2019: unresolved external symbol "public: __thiscall Figury_Produkoj::Figury_Produkoj(void)" (??0Figury_Produkoj@@QAE@XZ) referenced in function "public: static long __stdcall ObslugaOkna::WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@ObslugaOkna@@SGJPAUHWND__@@IIJ@Z) 1>C:\Documents and Settings\Mati\Pulpit\Nowy folder (4)\grs\Debug\grs.exe : fatal error LNK1120: …

Member Avatar for Fbody
0
90
Member Avatar for octavia

Hi i'd like to know how to store dynamic string into MySQL database from c#.net desktop application. I was able to store only fixed data . Help me pls as i 'm new in database . thanks

Member Avatar for smantscheff
0
679
Member Avatar for Jesi523

I have two different views in my ASP.Net application. I have a list view and a calendar view. I am trying to get the link to perform differently under certain circumstances. If the the class is full the link should be disabled and read class full. If there are available …

Member Avatar for crishjeny
0
863
Member Avatar for baldwindc

Could someone please explain the following code to me? It's not for class, more personal curiosity. Thanks in advance [code=cpp] while(!feof(infp)) { fgets(buf, MAXLINE, infp); fputs(buf, outfp); } [/code] what I'm mainly curious about is the argument o feof "infp."

Member Avatar for Ancient Dragon
0
146
Member Avatar for Rickay

[CODE]#include <iostream> #include <windows.h> #include <ctime> using namespace std; double time1; int main() { const double seconds1 = time(0); string string1; while(1) { long double seconds2 = time(0); if(seconds2 == seconds1 + 5) { cout << "Five seconds went by.\n\n"; break; } } cin.clear(); cin.ignore(255, '\n'); cin.get(); return 0; }[/CODE] …

Member Avatar for Rickay
0
231
Member Avatar for aznlitomik3

I need some help on the void plusEquals/minusEquals and etc function I'm not sure how to start it Please can anyone help me do the plusEquals function so I know what I'm suppose to do or maybe some guides on how to approach it Below the problem is my current …

Member Avatar for aznlitomik3
0
1K
Member Avatar for Hassan.shah

hi need to write a program to read or write data to PLc by rs232 using modbus protcol how can i do it Thanks in Advance

Member Avatar for daviddoria
0
137
Member Avatar for skorm909

So i haven't been coding in awhile and i just decided to try and make a game again. nothing fancy just a simple text rpg. here's my code so far there's a few errors and if you know how to fix them that would be great... also i have some …

Member Avatar for alexchen
0
94
Member Avatar for ScreamingPsycho

Hello, first time here.This program reads in a file of different names and uses void options to put them in various order. On line 111, 116, 121, 126, 131, I am not sure what to put inside the parenthesis. [EX: option1(NotSureWhatToPut)]. I have tried to put 'nextStudent' and get a …

Member Avatar for ScreamingPsycho
0
201
Member Avatar for darkelflemurian

Hi, everyone this is my first post here and let me tell you my problem I have a C# application, i have SQLServer 2005 installed on my computer my database is there and the program works fine the problem I'm facing is that i need to make an installer for …

Member Avatar for Mitja Bonca
0
178
Member Avatar for hobokook

Hi, I have an assignment where I have to implement a singly linked list of integers. Can you look at my pop front function below to see if it would work. I think it works, but I get this weird error whenever I test it. Also, how would I do …

Member Avatar for group256
0
181
Member Avatar for Dink3465

Hello, I am currently assigned a project to simulate a carwash in C++ using a priority queue and a heap. Basic synopsis: 1. a car enters the carwash. 2. if there are no parking spaces the car departs (must keep track of number of cars that depart without getting a …

Member Avatar for Dink3465
0
643
Member Avatar for mscutie33

Hi, I created a data file, which seems to work perfectly, but as far as reading it into an array is where I get stuck. It should be 20 random #s 1 to 99 read into this array in a single line. In my data file, they are all on …

Member Avatar for mscutie33
0
2K
Member Avatar for stevetaylor15

Hi i have a string array, such as: [CODE] string[] test = {"one@test.com","@test.com","@contoso.com"} [/CODE] And I want to modify values only where the address has no first portion that is "@domain.com", so the example return would be: [CODE] string[] test2 = {"one@test.com","*@test.com","*@contoso.com"} [/CODE] ANy ideas how to do this please?

Member Avatar for stevetaylor15
0
7K
Member Avatar for yogibear13

Hello there, This is my first time posting on these forums. I was wondering if I could please get some help, there is a minor glitch in my code but I cannot figure it out. Basically, I have to create a class called XYPoint, and according to given criteria, have …

Member Avatar for SgtMe
0
191
Member Avatar for tdba.316

Hey :D this is my first post here^^, and it's a problem with an exercise from the book C++ Primer Plus, which I have been self-studying (I'm the beginner). The following code is how I did the exercise, which is in the header comment. It was built in VC++ 2010, …

Member Avatar for tdba.316
1
1K
Member Avatar for halopower67

Hey guys, so i have this project due on the 13th of Dec. I have been trying to work on it but im at a roadblock pretty early on and im just at a loss as to what to do, so i would appreciate a ton if you guys an …

Member Avatar for SgtMe
-1
126
Member Avatar for badllama

Otay, I was brushing up my coding skills by creating a basic, coding 101 list class. At this point it works fine with a generic value, either primitive type or class. If it's a class, all the relational operators need to be overloaded to match the class key. I suddenly …

Member Avatar for badllama
0
140
Member Avatar for Kyaw Thi Thi Sa

Dear all, Now,we are developing e-learning system written in C# asp.net.We also creating flash learning games.The problem is how can we load those flash game from our asp.net page and how can we save score into database and how should we start.I have no idea.We want like this flow. 1.LearnerAAA …

0
52
Member Avatar for "ICode"

hi all, ---put in mind that im doing an ASP.NET website.... i made a DB using VS2010 (installed SQL server 2008 with the VS 2010 installation). the DB is in the App_Data folder. in the default.aspx.cs file i wrote this [CODE] Sqlconnection con = new sqlconnection(); con.connection = "server=.\\SQLEXPRESS;AttachdbFile=|DataDirectory|\\Database.mdf;Database=Database;Trusted=true;" [/CODE] …

Member Avatar for Momerath
0
932
Member Avatar for KLane

I have written the program below to calculate Standard deviation and mean of a given file of data. If I run it gives the wrong answers. Can someone help me go along? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double x; int n; double …

Member Avatar for mrnutty
0
118
Member Avatar for mahdi68

Hi can any body tell me how can i send arabic sms with at-command in C# ? i try with this code but the message show incorrect on phone ! [CODE]serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," …

Member Avatar for Mitja Bonca
0
904
Member Avatar for waleed.makarem

Dear All , I need your support to convert the below C++ 6 lines code to C# or vb.net . this function calculates the checksum for a given text. GUCHAR GenerateCkSum(GUCHAR *pure_data, U2 size) { GUCHAR chksum; I2 i; chksum = pure_data[0]; for(i=1; i<size ; i++) chksum ^= pure_data[i]; return …

0
87
Member Avatar for tastyTreeHUGGER

I need help writing an anagram that test 2 strings. [COLOR="red"]os[/COLOR]: microsoft [COLOR="red"]compiler[/COLOR]: visual studio Here are some of the directions: Read the first string, then write a loop that uses an array of 26 ints to count how many times each letter has been seen. Read the second string, …

Member Avatar for tastyTreeHUGGER
0
453
Member Avatar for ntaraaki

Can you please suggest an algorithm that uses pointers and I also have to read and save the text file, which I#m having trouble with. Here is a rough translation of the task into English(I used google translator so it's bit jumbled, my german's not that good): Define a structure …

Member Avatar for geojia
-1
232
Member Avatar for ntaraaki

Hi,everyone! I have to write a program that can find zip codes. I have to read the codes from a txt. file, so i have to use struct arrays In the main program, I just have to enter any random zip code and the program should be able to tell …

Member Avatar for ntaraaki
0
900
Member Avatar for localp

I am new to conneting to MYSQL through a C++ code; so this is what i did i installed MySQL Server 5.1 (it was a EXE), and thats it. i opened the MYSql command line client and created a DB, and added a table and values to it. This is …

Member Avatar for aradicev
0
332
Member Avatar for geryin

Write a program which initializes two vectors, one of type integer, the other of string. Populate the string type vector with five strings (‘one’, ‘two’, ... ‘five’). Populate the integer vector with [ 5 4 3 2 1 1 2 3 4 5 ]. Write a function that empties the …

Member Avatar for jonsca
0
160
Member Avatar for Stefano Mtangoo

I know many will start with ODBC, but slow down ;) I have searched for ODBC and all I find is UnixODBC. Is this the same as ODBC? Also how stable it is? I will be happy to know some apps/companies behind it! I need support for MySQL, PostGreSQL, DB2, …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for Hayzam_#include

Hi i wanted to make a software that can "Off" and "On" a computer fan connected with a usb can i make it in c++?? i have 1 year experience doing C++ Thanks,

Member Avatar for Hayzam_#include
0
141
Member Avatar for Defoe

Hey guys. I'm learning by myself the C Development... But I've got a serious problem with one my application. The exercice is: Create a board of 10 lines and 3 columns. Scanf this board. Check the 3 highest numbers of each line, add them And just printf the highest sum …

Member Avatar for Defoe
0
109
Member Avatar for sha11e

The error i get is: 'user:input' undeclared[first use this function] [CODE]#include <iostream> #include <cmath> using namespace std; int main() { // declaring variables \\ string user_input; // end of declaring variables \\ cout <<"Hello and welcome to Mr. Nightwish's lab of crazy!" <<endl <<endl <<"Please choose one of the following …

Member Avatar for mitrmkar
0
89
Member Avatar for Annettest

I am trying to compile a program using make on Mac OS X with gcc4.2. But I'm getting this error: fpu_control.h: No such file or directory I have never had a problem with an include file before and I'm rather confused! I have googled fpu_control.h, but I can't find anywhere …

Member Avatar for SgtMe
0
1K
Member Avatar for Weird Nerd

Hello, I am using OpenGL in C++ to create graphics in a program of mine. In the window, there is the main section and a sidebar. My problem is that I do not know how to relocate the vanishing point in my window. Currently, it is at (0, 0), which …

Member Avatar for Weird Nerd
0
516
Member Avatar for rohit_static

Hi, I was trying to code the shell sort algorithm ,which compares data over distances of n/2,then n/4,n/8 and so on till the array finally gets sorted .As far I understood I implemented the code as follows but it doesn't seem to work.Can someone help! here is the c code[code=c] …

Member Avatar for Adak
0
191
Member Avatar for arvin.gh

Hi, I need to be able to upload a photo from a datagridview. I am using the C# ready database (I don't know what excatly it is called. But I have made a login page using login control and created a few users). I have added a new table or …

Member Avatar for Mitja Bonca
0
145
Member Avatar for iamsmooth

Hi. So I'm new to Visual Studio, and created a project with lots of windows. The problem is I want the program to be seamless, i.e. when you progress through a dialogue that goes to another windows form, I want it to remain in the same location and seem like …

Member Avatar for Antenka
0
151
Member Avatar for Eevee204

I've started using Dev-C++ and was creating a game with Allegro, I've created a background named 'Script1.c' and I also made a game map called 'Script2.c'. I've done this at the end of 'Script1' while(!key[KEY_ESC]); exit_allegro(); and I put at the top of Script1 #include <Script2.c> But I'm unsure if …

0
44
Member Avatar for xxunknown321

I believe the error has something to do with my mergeArray function. Its a modified version of the insertNode function. i tried to make it so that i can loop through and insert an entire array of elements into a linkedList. My program compiles without error but gives me a …

Member Avatar for xxunknown321
0
174
Member Avatar for TJVR

Hi Please help with the following. This is my code: [CODE]<%@ Page Language="C#" Debug="true" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Configuration" %> <%@ Import Namespace="System.Xml.Linq" %> <%@ Import Namespace="System.Data.SqlClient"%> <%@ Import Namespace="System.Data.OleDb"%> <html> <head> <title>Session Page 2</title> </head> <body><p>ASP.NET C# session page 2</p> <p>first name: …

Member Avatar for catherine sea
0
206
Member Avatar for glenc70

OK im not sure if this is a programming or pc problem but please read on ok i made a program to display playing cards in random locations using cards.dll just for a bit of fun but on my main PC which has 2.19 GHZ processor and 1 GB ram …

Member Avatar for glenc70
0
172
Member Avatar for babaidebnath

Hi, I compiled the sample provided by Microsoft which created 3 files. Those are instlsp.exe, nonifslsp.dll, ifslsp.dll. So I installed it with instlsp.exe -i -o 1002 -o 1003 -o 1004 -n "Foobar" -d nonifslsp.dll Well its installed perfectly. But when now I tried open any web page, not opening. 1) …

0
50
Member Avatar for rsantoosa

I am trying to write a program that does operations with rational numbers. My program runs and is able to add, subtract, multiply and divide. However, it does nto reduce the fraction and when printing in decimal form, it returns an int rather than a double. For example, it would …

Member Avatar for geojia
0
193
Member Avatar for survagya

hi friends, I am visual foxpro programmer with the experience of 22 years in FOXPRO and VFP. I studied ASP.NET and C# from last 2 years myself. As i have started my ASP.NET project, I faced the difficulty in displaying the data into text box before updating. For Example, I …

0
44
Member Avatar for tooqt4u_777

Hi guys, My group is having a software development project for our academics at a university. The software we want to develop is an inventory system which will be installed in a Local Area Network. We have decided to use Visual Studio C# (2005 or higher) as the front-end while …

Member Avatar for dValue
0
596

The End.