132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ambarisha.kn

I have input files like this a.iup b.iup c.iup....... i have these input files in a variable called fname; like this char *fname="c:\\iupfiles\\a.iup"; every time i will get file name in this variable. But how to concatenate the variable with some other name like as follows in output file name. …

Software Development c file-system
Member Avatar for ambarisha.kn
0
78
Member Avatar for PuQimX

"I want to write a program that determine a student’s grade. It reads three test scores (between 0-100) and calls a function the calculate and return a student’s grade based on following rules: (a) If the average score is 90% and more, the grade is ‘A’ (b) If the average …

Software Development c++
Member Avatar for AceofSpades19
0
553
Member Avatar for laghaterohan

Can ne one of u plz tell me how to search a particular record in the database ? my prob is that when i enter say an ID / Name it should search into database for the same and accordingly if the record is found my cmdbutton will be enabled …

Software Development vb.net
Member Avatar for laghaterohan
0
107
Member Avatar for PuQimX

somebody please help me to correct this coding program [code=c] #include <stdio.h> void readmarks (int* num1,int* num2,int* num3); void grademarks (int num1,int num2,int num3,int* num4,int* num5,char* grade); void printmarks(char grade); int main ( void) { int num1; int num2; int num3; int num4; int num5; char grade; readmarks (&num1,&num2,&num3); grademarks …

Software Development c
Member Avatar for Aia
0
127
Member Avatar for JoseCarlos

Hey..i'm new here and i'm actually taking a course related to C++ Programming. My assignment is to create a simulation on an agenda.. the agenda is a daily agenda, it only works for one day (so you will not see what day it is, it's general) it stores info in …

Software Development c++
Member Avatar for JoseCarlos
0
102
Member Avatar for monkey_king

Hi, given a char(8bit's), I want to get the value of every 2bits, so that a char will contain 4 values. This is easily done with a shift left command (<<2). As far as I understand, char arrays are simply the different chars in consecutive order in the memory. so …

Software Development c++
Member Avatar for monkey_king
0
2K
Member Avatar for sciwizeh

I am using Visual Studio 2008, and i am working with a single document application, it is CView Based, and i want to know how i can in addition to the view, that i will be drawing on, how i can add controls, like CButton and CListBox. do i have …

Software Development c++ visual-studio
Member Avatar for sciwizeh
0
2K
Member Avatar for bajanpoet

Hi guys! Long time no see! I'm trying to get a datagrid to work, but although when I run it there is no error, nothing appears on the datagrid. Yet, there seems nothing wrong with my code: [code=VB.NET] SQL = "select * from upload " & _ "where field003 like …

Software Development dataset vb.net
Member Avatar for bajanpoet
0
207
Member Avatar for justvince

sorry no well wrote code snippet , but my problem is although an absolute novice with VB6, I have created , well a specialist calculating programme, it is only a glorified calculator but using a lot of trigonometry functions, on the PC I created it on it works 100%. The …

Software Development visual-basic
Member Avatar for justvince
0
95
Member Avatar for rocosd

Hello , I am trying to create threads using makecontext function. The code is sth like this.. [CODE=C] #include "mythread.h" #include <malloc.h> #include <stdio.h> #define FIBER_STACK 1024*64 int mythread_create(mythread_t *new_thread_ID, mythread_attr_t *attr, void * (*start_func)(void *), void *arg) { // Get the current execution context mythread_t t2; t2 = (mythread_t)new_thread_ID; …

Software Development c
Member Avatar for ArkM
0
149
Member Avatar for freelancelote

Hi, I'm learning c++ at the moment and the problem I have is probably very simple. I wrote some code to calculate prime factors of a given number. If I define variables as unsigned long, the code compiles and the program runs. If I define variables as double then compiler …

Software Development c++
Member Avatar for freelancelote
0
146
Member Avatar for PuQimX

What's wrong with this program?? [code=cplusplus] #include <stdio.h> int main void { int a,b,c,d; float avg; printf("Please insert score test 1: "); scanf("%d",&a); printf("Please insert score test 2: "); scanf("%d",&b); printf("Please insert score test 3: "); scanf("%d",&c); avg=(a+b+c)/3; } { if (avg>=90); printf("Your Grade is A"); else if (avg<90); if …

Software Development c++
Member Avatar for VernonDozier
0
97
Member Avatar for gispe

hi ppl, im having a problem with this program. The thing is that i need to enter the license, age and level of education of an amount of ppl, but dont know how many. then i have to get the percentaje of runners and sellers, the average age, amount of …

Software Development c++
Member Avatar for ArkM
0
120
Member Avatar for onemanclapping

hi, when I try string.size on accentuated words, the result is bigger than it was "supposed" to be, as accentuated characters count as 2 size units instead of one. how can I count them as one? cheers

Software Development c++
Member Avatar for onemanclapping
0
182
Member Avatar for csm_tC

I have searched the forums and could not find a direct answer to my question, it's probably too simple and i'm over looking something. It's my first day with Python, I'm in the process of developing a program that converts a given float integer into a variety of different things. …

Software Development python
Member Avatar for Shadow14l
0
263
Member Avatar for Clockowl

Hey guys, How would one create a vector of pointers to functions? I know from C to create an array of functions, but I'd like to learn how to do it with vectors as well. Here are my efforts so far: [code=cpp]#include <iostream> #include <valarray> #include <vector> #include <ctime> #include …

Software Development c++
Member Avatar for Clockowl
0
148
Member Avatar for yana2

Hi, I study C++ myself and can't solve a little problem. I created class konto (account) and it works fine. Now I want to create a class bank which contains several accounts and it should be possible to add a new account and to find a necessary account by number. …

Software Development c++
Member Avatar for Duoas
0
105
Member Avatar for Soundgarden

Howdy all, Great to see the community up an running still. I'm just Hoping you guys/gals could help me again with something. Thanks in advance.. Ok Sit rep. Need to be able to scan through all files in Given folder and list them with out tree in plain list box... …

Software Development
Member Avatar for vckicks
0
105
Member Avatar for Gaurav arora

Hi there I want to import Printing in my Application. But I m Unable to send the values to be printed in the Printing Class. i Initialize the Printing Class Variables from other class by Creating an object of the printing class. But when i tried to get values of …

Software Development
Member Avatar for vckicks
0
81
Member Avatar for plike922

I having trouble... for some reason strcpy(b,a) is not working... it says b is not identified [CODE]#include <stdio.h> #include "simpio.h" #include "genlib.h" int main() { string a, b, c; printf("Please enter a word: "); a = GetLine(); b = strcpy(b,a); b = strrev(b); if(strcmp(a,b)==0) { printf("\n%s is a palindrome\n",a); } …

Software Development c
Member Avatar for Aia
0
85
Member Avatar for clickranju

Hi i am a web developer i used to create site using php..i have little knowledge on java(only basic school level knowledge)..but now i want to develop software for one of the NGO which is working for helping blind students..that i have decided to build the software in JAVA...the system …

Software Development developer-tools java java-jsp
Member Avatar for clickranju
0
146
Member Avatar for less123

Hi guys , i m doing a programme that can read a text files that contains number, student's ID,1st exam and final exam marks and it can calculate the total of 1st and final exam in order to grade the students. the programme then prints out the calculated total marks …

Software Development c
Member Avatar for Aia
0
135
Member Avatar for scratchnloved

hi again :) i was wondering how i would make a file automatically open with a program, eg: like after you install dev c++, .cpp files automatically open in the editor. how does the editor get the file's location? and how does it process it?

Software Development c++
Member Avatar for scratchnloved
0
97
Member Avatar for EkoX

Hi all... i new to this language. so i m sorry if my question is very basically. I have two forms in my project. in first form i have a button. i want when i click this button form2 can be opened. Please help... Thank you

Software Development vb.net
Member Avatar for nileshsarode
0
175
Member Avatar for TompIfe

Hei, I have an Access database with a querry containing 40,000 rows. When I use "SELECT (*) COUNT FROM Querr" in ExecuteScalar, I get only about half of the rows. However, whem I copy the contents of the querry to a Table, a get the full 40,000 number of rows. …

Software Development
Member Avatar for LizR
0
108
Member Avatar for HecB

just one problem my program is about high school dance cost report its project 07 1 of 2 projects left in the class and im almost done with im only having one problem i been trying to fix this problem for a few hours with function, and anything that could …

Software Development c++
Member Avatar for vmanes
0
107
Member Avatar for ferret_90

I want to be able to activate an easter egg in this program, but passing and reading these arguments is making me pull my hair out. Any ideas? [CODE]#include <cstdlib> #include <iostream> using namespace std; //(cc) 2008 Nathan Barndt //Attribution-Share Alike 3.0 United States License void easteregg() { //easteregg code …

Software Development c++
Member Avatar for ferret_90
0
78
Member Avatar for asymmetric

hi! i'm starting to program in asm (i have a school project). i'm programming in intel asm for an 8088 simulator (the one in tanenbaum's "structured computer organization" book) i have a question: is it a mistake to write subroutines that use variables to store (intermediate and return) values? shouldn't …

Software Development assembly
Member Avatar for asymmetric
0
62
Member Avatar for fsemilla

good day! can anyone teach me how to access images and display these images using c++?because i have a project regarding accessing and viewing images in mobile phones...kindly help me...:sad:

Software Development c++
Member Avatar for fsemilla
0
117
Member Avatar for daviddoria

I would like to have a global way to do something like this [code] #ifdef GRAPHICS //do some stuff that relies on graphics libraries that may or may not be installed #endif [/code] The problem with defines is that they have to be defined in every file, or at least …

Software Development c++
Member Avatar for daviddoria
0
105
Member Avatar for Ninabox

I need to run simple tests on a Linux cluster fro parallel programing. I have used only C++ before, but this Compositional C++ is not that good idea as I thought at first. I have read that there is also MPI libraries and High performance Fortran, but I have no …

Software Development c++
Member Avatar for Ninabox
0
122
Member Avatar for mairtin.obrian

Im using regular expressions to identify currency characters from a html string I cant identify the £ symbol from a number of sites including amazon So Im looking for the syntax to identify that symbol <oRegEx = New RegEx("£[0-9]") > is not working and what is the syntax to identify …

Software Development regex vb.net
Member Avatar for learnerbm
0
101
Member Avatar for sancti

hi all, I am writing some text to rich text box using different fonts for different lines.But i cannot be able to copy the same font to the print prieview page.When i take out the print out, all lines will be of same font.How how can i solve this problem. …

Software Development
Member Avatar for LizR
0
299
Member Avatar for vvtc

Hi, What is the dynamic array equivalent to this? int *array[10] --- int *array array = new int[10] I want something like the above, but I can't seem to figure out the correct way to do it Any help would be appreciated! Thanks!

Software Development c++
Member Avatar for grumpier
0
145
Member Avatar for ocreds

I try add this code(below) after "else if(token.equals("*"))" in PostfixEvaluator.java but it doesn't work like exponent. Can you help me to figure it out what is the right code for exponent. [CODE=java] else if(token.equals("^")) { val1 = Integer.parseInt(stack.pop().toString()); val2 = Integer.parseInt(stack.pop().toString()); result = val2 ^ val1; stack.push(new Integer(result)); } [/CODE] …

Software Development java java-swing
Member Avatar for peter_budo
0
232
Member Avatar for nirajshah

I am newly join to this forum and I am new with C#. Currenlty i am developing an application in C# as, Each second the application receives data from a sensor wich is attached on RS485 port of the PC. To take data at each second i have used timer …

Software Development
Member Avatar for LizR
0
129
Member Avatar for shijunair

hello , I am facing a problem when i am trying to get the difference between two dates which is been taken from html page through datepicker. now i am selecting two different dates with different month.for example d1 dd/mm/yyyy = 12/09/2008 d2 dd/mm/yyyy = 2/10/2008 now i am getting …

Software Development java
Member Avatar for shijunair
0
99
Member Avatar for hanzi_ru

my data report does not provide the data that i need. instead it provides some integers. can someone please help. ive attached my programme herewith

Software Development visual-basic
0
82
Member Avatar for lmastex

Hey guys. I'm just trying out something with the fstream library. In the next code, I'm trying to read from the beginning of the array (num1) and from the end of the array (num2) the file I have as an "entry" called "entrada.txt", which has the numbers 1 up to …

Software Development c++
Member Avatar for vmanes
0
116
Member Avatar for Hannahlv

Hi, everyone! I want to make the user authentication for mysql database. I write the code and test it, but can't run. Let's I talk about my project idea first. I have a server, a client and a mysql database. Before entering the server, the user must login first, After …

Software Development c client-server mysql
Member Avatar for Salem
0
193
Member Avatar for vidit_X

This is strstr() function made by me as given in the practice problem. [code=c++] char *cstrstr(char s[],char ss[]) { int l1,l2,i,j,k,flag=0; char *p=NULL; l1=strlen(s); l2=strlen(ss); for(i=0;i<l1;i++) { //cout<<"i:"<<i; p=&s[i]; if(ss[0]==s[i]) { for(k=i,j=0;j<l2;j++,k++) { //cout<<"j:"<<j<<"k:"<<k; if(ss[j]==s[k]) { flag=1; continue; } else { flag=0; break; } } } if(flag) return p; } …

Software Development c++
Member Avatar for ArkM
0
143
Member Avatar for monogana

assigning the address of a variable in c++ hi all, im very new to c++ and programming, googled this but couldnt find an answer if i want a instance of a variable, i can do this int a = 10; int & b (a); so now the address of both …

Software Development c++
Member Avatar for Ancient Dragon
0
162
Member Avatar for prasannapower

I m using LAN Connection,My system used as remot , When i going to run , my system become HANG!!! i m doing VB.Net Programs , using sql2000 backend What shoud i do ??? Can u help me......??????????

Software Development sql vb.net
Member Avatar for prasannapower
0
128
Member Avatar for jithusdani

hi folks.. In my application am storing some textbox values to a datatable inside a dataset.Now I want to save the multiple rows of datatable to my sqltable..ll anybody plz help me.. with thanks and regards. jithesh.P.

Software Development dataset sql
Member Avatar for vuyiswamb
0
99
Member Avatar for vijaysoft1

my program is [ICODE] class stack { protected: int tos; int store[10]; stack() { tos = 0; } public: void push(int x); int pop(); }; void stack::push(int x) { cout<<"put the values into stack"; store[tos++] = x; } int stack::pop() { cout<<" get the values from stack "; return store[--tos]; …

Software Development c++
Member Avatar for mahlerfive
0
87
Member Avatar for hanzi_ru

ive attached my programme herewith. the report doesn't function properly in the tab 2 i have put a command button which generates the report could you please help

Software Development visual-basic
Member Avatar for hanzi_ru
0
103
Member Avatar for alecho

Hi!, i'm writing from Argentina. I need your help! I'm doing a project for the university and i have to make a Restaurant management. Well that´s not the problem. I have to log into the software, so i need to read from a file that have the user and password. …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
120
Member Avatar for jianxu

Hi, I am currently working on a homework assignment with the topic being a boggle game. We are creating the boggleboard class and one of the function that must be included is this: bool playWord (string word, string player) This method returns false if word does not appear in the …

Software Development c++
Member Avatar for VernonDozier
0
499
Member Avatar for Shaftage

This is the problem I need to solve. It comes directly out of a C++ Programming book: [QUOTE]A right triangle can have sides that are all integers. A set of three integer values for the sides of a right triangle is called a Pythagorean triple. These three sides must satisfy …

Software Development c++
Member Avatar for Ancient Dragon
0
146
Member Avatar for vijaysoft1

how to create a dynamic string array to store string items using new ...

Software Development c++
Member Avatar for entei
0
254

The End.